aboutsummaryrefslogtreecommitdiff
path: root/csharp/buildall.sh
diff options
context:
space:
mode:
authorJie Luo <anandolee@gmail.com>2015-05-14 14:54:36 -0700
committerJie Luo <anandolee@gmail.com>2015-05-14 14:54:36 -0700
commitaa8c951ef58dbc6a5c1ec8118980938f20916ce8 (patch)
tree07075ec40b4ebb013bd2f12c82d2f7f0c47b7b1b /csharp/buildall.sh
parentb481a4f920d2f5872bc1e9bfd6b0656f6ad0b713 (diff)
parent2d9b1c592ff7319ee9d6520c9df4838087522e05 (diff)
downloadprotobuf-aa8c951ef58dbc6a5c1ec8118980938f20916ce8.tar.gz
protobuf-aa8c951ef58dbc6a5c1ec8118980938f20916ce8.tar.bz2
protobuf-aa8c951ef58dbc6a5c1ec8118980938f20916ce8.zip
Merge pull request #384 from google/csharp
Merge protobuf C# into master (only C# proto2 is supported)
Diffstat (limited to 'csharp/buildall.sh')
-rwxr-xr-xcsharp/buildall.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/csharp/buildall.sh b/csharp/buildall.sh
new file mode 100755
index 00000000..164707cb
--- /dev/null
+++ b/csharp/buildall.sh
@@ -0,0 +1,22 @@
+#!/bin/bash
+# Use mono to build solution and run all tests.
+
+# Adjust these to reflect the location of nunit-console in your system.
+NUNIT_CONSOLE=nunit-console
+
+# The rest you can leave intact
+CONFIG=Release
+KEYFILE=../keys/Google.ProtocolBuffers.snk # TODO(jtattermusch): signing!
+SRC=$(dirname $0)/src
+
+set -ex
+
+echo Building the solution.
+xbuild /p:Configuration=$CONFIG $SRC/ProtocolBuffers.sln
+
+echo Running tests.
+$NUNIT_CONSOLE $SRC/ProtocolBuffers.Test/bin/$CONFIG/Google.ProtocolBuffers.Test.dll
+
+$NUNIT_CONSOLE $SRC/ProtocolBuffersLite.Test/bin/$CONFIG/Google.ProtocolBuffersLite.Test.dll
+
+$NUNIT_CONSOLE $SRC/ProtocolBuffersLite.Test/bin/$CONFIG/Google.ProtocolBuffersMixedLite.Test.dll