0698aa9737
The solution as a whole doesn't build yet - we probably want to remove ProtoDump and ProtoMunge entirely, and ProtoBench should use Jan's new benchmarks for parity with Java. The version of NUnit on my machine, packaged with Mono 3.12.1, is only NUnit 2.4.2, which is extremely old - it still requires an explicit [TestFixture] attribute on test fixtures. I've added one just for ByteStringTest for the moment so that we can see some tests passing in Travis, but as part of a separate PR we should work on making sure we're using a recent NUnit version. (It may already be doing so, but we can check that once it's working and merged.)
24 lines
770 B
Bash
Executable File
24 lines
770 B
Bash
Executable File
#!/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.
|
|
# TODO(jonskeet): Re-enable building the whole solution when we have ProtoBench et al
|
|
# working again.
|
|
# xbuild /p:Configuration=$CONFIG $SRC/ProtocolBuffers.sln
|
|
|
|
xbuild /p:Configuration=$CONFIG $SRC/ProtocolBuffers/ProtocolBuffers.csproj
|
|
xbuild /p:Configuration=$CONFIG $SRC/ProtocolBuffers.Test/ProtocolBuffers.Test.csproj
|
|
|
|
echo Running tests.
|
|
$NUNIT_CONSOLE $SRC/ProtocolBuffers.Test/bin/$CONFIG/Google.Protobuf.Test.dll
|