c9651b7420
* Add overloads to Add/Put for ArraySegment and IntPtr In order to allow using code to reduce memory allocations, add overloads to ByteBuffer's and FlatBuffersBuilder's Put/Add methods that take ArraySegment<T> or IntPtr respectively. Also, adaptions to the c# code generator in flatc to emit corresponding CreateVectorBlock() overloads * Add missing files generated with generate_code.py The previous commit changed the C# code generate, but didn't contain the updated generated test files. * Incorporate review findings (1) Adhere to 80 characters limit. (2) In FlatBufferBuilder.Add(IntPtr,int), move zero length check topmost and add sanity check against negative input |
||
---|---|---|
.. | ||
Properties | ||
.gitignore | ||
Assert.cs | ||
ByteBufferTests.cs | ||
FlatBufferBuilderTests.cs | ||
FlatBuffers.Core.Test.csproj | ||
FlatBuffers.Test.csproj | ||
FlatBuffersExampleTests.cs | ||
FlatBuffersFuzzTests.cs | ||
FlatBuffersTestClassAttribute.cs | ||
FlatBuffersTestMethodAttribute.cs | ||
FuzzTestData.cs | ||
Lcg.cs | ||
NetTest.bat | ||
NetTest.sh | ||
Program.cs | ||
README.md | ||
TestTable.cs | ||
clean.sh | ||
packages.config |
README.md
.NET Tests
Running on Linux
Prerequisites
To run the tests on a Linux a few prerequisites are needed:
- mono
- msbuild
Running
To run the tests:
./NetTest.sh
This will download the .NET installer and core SDK if those are not already
installed. Then it will build the tests using msbuild
and run the resulting
test binary with mono
.
After running the tests, the downloaded .NET installer and SDK are not removed as they can be reused in subsequent invocations. The files are ignored by git by default, and can remain in the working directory.
Cleaning
If you want to clean up the downloaded .NET installer and SDK, run:
./clean.sh
This will wipe away the downloaded files and directories. Those will be
automatically re-downloaded when running NetTest.sh
.