Last change
on this file since 6095 was
3857,
checked in by abeham, 15 years ago
|
#866
- Added protobuf-csharp-port project source to ExtLibs
|
File size:
1.6 KB
|
Rev | Line | |
---|
[3857] | 1 | #!/bin/bash
|
---|
| 2 |
|
---|
| 3 | # Adjust these to reflect the location of NUnit in your system,
|
---|
| 4 | # and how you want NUnit to run
|
---|
| 5 | NUNIT=~/protobuf/NUnit-2.5.0.9122/bin/net-2.0/nunit-console.exe
|
---|
| 6 | NUNIT_OPTIONS=-noshadow
|
---|
| 7 |
|
---|
| 8 | # The rest should be okay.
|
---|
| 9 |
|
---|
| 10 | SRC=../src
|
---|
| 11 | LIB=../lib
|
---|
| 12 |
|
---|
| 13 | rm -rf bin
|
---|
| 14 | mkdir bin
|
---|
| 15 |
|
---|
| 16 | # Running the unit tests requires the dependencies are
|
---|
| 17 | # in the bin directory too
|
---|
| 18 | cp -f $LIB/{Rhino.Mocks.dll,nunit.framework.dll} bin
|
---|
| 19 |
|
---|
| 20 | echo Building main library
|
---|
| 21 | gmcs -target:library -out:bin/Google.ProtocolBuffers.dll `find $SRC/ProtocolBuffers -name '*.cs'` -keyfile:$SRC/ProtocolBuffers/Properties/Google.ProtocolBuffers.snk
|
---|
| 22 |
|
---|
| 23 | echo Building main library tests
|
---|
| 24 | gmcs -target:library -out:bin/Google.ProtocolBuffers.Test.dll `find $SRC/ProtocolBuffers.Test -name '*.cs'` -keyfile:$SRC/ProtocolBuffers.Test/Properties/Google.ProtocolBuffers.Test.snk -r:bin/Google.ProtocolBuffers.dll -r:$LIB/nunit.framework.dll -r:$LIB/Rhino.Mocks.dll
|
---|
| 25 |
|
---|
| 26 | echo Running main library tests
|
---|
| 27 | mono $NUNIT bin/Google.ProtocolBuffers.Test.dll $NUNIT_OPTIONS
|
---|
| 28 |
|
---|
| 29 | echo Building ProtoGen
|
---|
| 30 | gmcs -target:exe -out:bin/ProtoGen.exe `find $SRC/ProtoGen -name '*.cs'` -keyfile:$SRC/ProtoGen/Properties/Google.ProtocolBuffers.ProtoGen.snk -r:bin/Google.ProtocolBuffers.dll
|
---|
| 31 |
|
---|
| 32 | echo Building ProtoGen tests
|
---|
| 33 | gmcs -target:library -out:bin/Google.ProtocolBuffers.ProtoGen.Test.dll `find $SRC/ProtoGen.Test -name '*.cs'` -keyfile:$SRC/ProtoGen.Test/Properties/Google.ProtocolBuffers.ProtoGen.Test.snk -r:bin/Google.ProtocolBuffers.dll -r:$LIB/nunit.framework.dll -r:bin/ProtoGen.exe
|
---|
| 34 |
|
---|
| 35 | echo Running ProtoGen tests
|
---|
| 36 | mono $NUNIT bin/Google.ProtocolBuffers.ProtoGen.Test.dll $NUNIT_OPTIONS
|
---|
Note: See
TracBrowser
for help on using the repository browser.