Skip to content

Commit

Permalink
sh versions of bat scripts for mono (experimental)
Browse files Browse the repository at this point in the history
  • Loading branch information
mgatny committed Jan 14, 2013
1 parent 62a51b4 commit f8573ef
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
13 changes: 13 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -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
19 changes: 19 additions & 0 deletions unit_test.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit f8573ef

Please sign in to comment.