forked from Bee-Htcpcp/EventStore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_tc_tests.sh
executable file
·36 lines (32 loc) · 1.09 KB
/
run_tc_tests.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/usr/bin/env bash
pathPrefix=$1
while getopts "m:x:p" option
do
case $option in
m)
MONOPATH=$OPTARG
;;
x)
EXCLUDE="-exclude $OPTARG"
;;
p)
RUNPROJECTIONS="TRUE"
;;
?)
echo "Usage: run_tests.sh [-x ExcludeCategories] [-m /path/to/mono] [-p]"
echo "Defaults:"
echo " Mono Path: /opt/mono"
echo " Exclude: None"
echo " projections: false"
exit
;;
esac
done
if [[ $MONOPATH == "" ]]; then
MONOPATH="/opt/mono"
fi
LD_LIBRARY_PATH=$pathPrefix/bin/tests:$MONOPATH/lib/:$LD_LIBRARY_PATH mono $pathPrefix/tools/nunit-2.6.3/bin/nunit-console.exe $pathPrefix/bin/tests/EventStore.Core.Tests.dll $EXCLUDE
if [[ $RUNPROJECTIONS == "TRUE" ]]; then
LD_LIBRARY_PATH=$pathPrefix/bin/tests/:$MONOPATH/lib/:$LD_LIBRARY_PATH mono $pathPrefix/tools/nunit-2.6.3/bin/nunit-console.exe $pathPrefix/bin/tests/EventStore.Projections.Core.Tests.dll $EXCLUDE
fi
echo "##teamcity[importData type='nunit' path='TestResult.xml']"