forked from EventStore/EventStore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_tests.sh
executable file
·39 lines (36 loc) · 1.06 KB
/
run_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
37
38
39
#!/usr/bin/env bash
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=bin/tests:$MONOPATH/lib/:$LD_LIBRARY_PATH mono tools/nunit-2.6.3/bin/nunit-console.exe bin/tests/EventStore.Core.Tests.dll $EXCLUDE -xml=inter
rc=$?
xsltproc tools/nunit-2.6.3/results.xslt inter
rm inter
if [[ $rc != 0 ]] ; then
exit $rc
fi
if [[ $RUNPROJECTIONS == "TRUE" ]]; then
LD_LIBRARY_PATH=bin/tests/:$MONOPATH/lib/:$LD_LIBRARY_PATH mono tools/nunit-2.6.3/bin/nunit-console.exe bin/tests/EventStore.Projections.Core.Tests.dll $EXCLUDE
fi