Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

sh versions of bat scripts for mono (experimental)

  • Loading branch information...
commit f8573efa85e16b91e9232aa91b3f4bfb4d8fa9c7 1 parent 62a51b4
@mgatny mgatny authored
Showing with 32 additions and 0 deletions.
  1. +13 −0 build.sh
  2. +19 −0 unit_test.sh
View
13 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
View
19 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
+
Please sign in to comment.
Something went wrong with that request. Please try again.