blob: f83170c51b4bc41ea09183675a355d4a86b71088 (
plain)
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
40
41
42
43
44
|
#!/bin/bash
OSName=$(uname -s)
case $OSName in
Darwin)
OS=OSX
;;
FreeBSD)
OS=FreeBSD
;;
Linux)
OS=Linux
;;
NetBSD)
OS=NetBSD
;;
*)
echo "Unsupported OS $OSName detected, configuring as if for Linux"
OS=Linux
;;
esac
export CORE_ROOT=`pwd`/bin/tests/$OSName.$1.$2/Tests/Core_Root
FRAMEWORK_DIR=`pwd`/bin/tests/$OSName.$1.$2/GC/Stress/Framework/ReliabilityFramework
$CORE_ROOT/corerun $FRAMEWORK_DIR/ReliabilityFramework.exe $FRAMEWORK_DIR/testmix_gc.config
EXIT_CODE=$?
if [ $EXIT_CODE -eq 100 ]
then
echo "ReliabilityFramework successful"
exit 0
fi
if [ $EXIT_CODE -eq 99 ]
then
echo "ReliabilityFramework test failed, some tests failed"
exit 1
fi
echo "ReliabilityFramework returned a strange exit code $EXIT_CODE, perhaps some config is wrong?"
exit 1
|