blob: 45af705f385782dcdbeafd149cd85359aca4fb6c [file] [log] [blame]
Jan Tattermuschb1a921c2015-05-12 19:27:53 -07001#!/bin/bash
2# Use mono to build solution and run all tests.
3
4# Adjust these to reflect the location of nunit-console in your system.
5NUNIT_CONSOLE=nunit-console
6
7# The rest you can leave intact
8CONFIG=Release
Jan Tattermuschb1a921c2015-05-12 19:27:53 -07009SRC=$(dirname $0)/src
10
11set -ex
12
Jon Skeete75a10d2015-06-25 12:25:49 +010013echo Building the solution.
Jon Skeet59eeebe2015-07-17 08:26:04 +010014xbuild /p:Configuration=$CONFIG $SRC/Google.Protobuf.sln
Jan Tattermuschb1a921c2015-05-12 19:27:53 -070015
16echo Running tests.
Jon Skeet59eeebe2015-07-17 08:26:04 +010017$NUNIT_CONSOLE $SRC/Google.Protobuf.Test/bin/$CONFIG/Google.Protobuf.Test.dll