diff --git a/build.sh b/build.sh new file mode 100755 index 000000000..9d7a79ddb --- /dev/null +++ b/build.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +TARGET=$1 +CONFIGURATION=$2 +NET_VERSION=$3 + +[ -z $TARGET ] && TARGET=Rebuild +[ -z $CONFIGURATION ] && CONFIGURATION=Release +[ -z $NET_VERSION ] && NET_VERSION=v3.5 + +BUILD_CMD="xbuild QuickFIXn.sln /t:${TARGET} /p:Configuration=${CONFIGURATION};TargetFrameworkVersion=${NET_VERSION}" +echo "Build command: $BUILD_CMD" +exec $BUILD_CMD diff --git a/unit_test.sh b/unit_test.sh new file mode 100755 index 000000000..7b7ba2387 --- /dev/null +++ b/unit_test.sh @@ -0,0 +1,19 @@ +#!/bin/bash +# +# Arguments will be passed to nunit-console, so you can do things like: +# ./unit_test.sh -run=UnitTests.SessionScheduleTests +# + +RESULT=0 + +set +e + +pushd UnitTests/bin/Release/ + rm -rf TestResult.xml UnitTests.html + nunit-console UnitTests.dll $@ + RESULT=$? + xsltproc -o UnitTests.html ../../nunit.xsl TestResult.xml +popd + +exit $RESULT +