1#!/bin/sh 2 3# Testing C# on Linux using Mono. 4 5mcs -debug -out:./fbnettest.exe \ 6 ../../net/FlatBuffers/*.cs ../MyGame/Example/*.cs ../MyGame/*.cs ../union_vector/*.cs \ 7 FlatBuffersTestClassAttribute.cs FlatBuffersTestMethodAttribute.cs Assert.cs FlatBuffersExampleTests.cs Program.cs ByteBufferTests.cs FlatBufferBuilderTests.cs FlatBuffersFuzzTests.cs FuzzTestData.cs Lcg.cs TestTable.cs 8mono --debug ./fbnettest.exe 9rm fbnettest.exe 10rm Resources/monsterdata_cstest.mon 11rm Resources/monsterdata_cstest_sp.mon 12 13# Repeat with unsafe versions 14 15mcs -debug -out:./fbnettest.exe \ 16 -unsafe -d:UNSAFE_BYTEBUFFER \ 17 ../../net/FlatBuffers/*.cs ../MyGame/Example/*.cs ../MyGame/*.cs ../union_vector/*.cs\ 18 FlatBuffersTestClassAttribute.cs FlatBuffersTestMethodAttribute.cs Assert.cs FlatBuffersExampleTests.cs Program.cs ByteBufferTests.cs FlatBufferBuilderTests.cs FlatBuffersFuzzTests.cs FuzzTestData.cs Lcg.cs TestTable.cs 19mono --debug ./fbnettest.exe 20rm fbnettest.exe 21rm Resources/monsterdata_cstest.mon 22rm Resources/monsterdata_cstest_sp.mon 23 24