| 12345678910111213141516171819202122232425262728293031323334353637 | #!/bin/bash# Adjust these to reflect the location of NUnit in your system,# and how you want NUnit to runNUNIT=~/protobuf/NUnit-2.5.0.9122/bin/net-2.0/nunit-console.exeNUNIT_OPTIONS=-noshadow# The rest should be okay.SRC=../srcLIB=../libKEYFILE=../keys/Google.ProtocolBuffers.snkrm -rf binmkdir bin# Running the unit tests requires the dependencies are# in the bin directory toocp -f $LIB/{Rhino.Mocks.dll,nunit.framework.dll} binecho Building main librarygmcs -target:library -out:bin/Google.ProtocolBuffers.dll `find $SRC/ProtocolBuffers -name '*.cs'` -keyfile:$KEYFILEecho Building main library testsgmcs -target:library -out:bin/Google.ProtocolBuffers.Test.dll `find $SRC/ProtocolBuffers.Test -name '*.cs'` -keyfile:$KEYFILE -r:bin/Google.ProtocolBuffers.dll -r:$LIB/nunit.framework.dll -r:$LIB/Rhino.Mocks.dllecho Running main library testsmono $NUNIT bin/Google.ProtocolBuffers.Test.dll $NUNIT_OPTIONSecho Building ProtoGengmcs -target:exe -out:bin/ProtoGen.exe `find $SRC/ProtoGen -name '*.cs'` -keyfile:$KEYFILE -r:bin/Google.ProtocolBuffers.dllecho Building ProtoGen testsgmcs -target:library -out:bin/Google.ProtocolBuffers.ProtoGen.Test.dll `find $SRC/ProtoGen.Test -name '*.cs'` -keyfile:$KEYFILE -r:bin/Google.ProtocolBuffers.dll -r:$LIB/nunit.framework.dll -r:bin/ProtoGen.exeecho Running ProtoGen testsmono $NUNIT bin/Google.ProtocolBuffers.ProtoGen.Test.dll $NUNIT_OPTIONS
 |