[TIZEN] Add unsupportedTests.GCStress.riscv64.txt
[platform/upstream/dotnet/runtime.git] / RunTests.sh
1 #!/usr/bin/env bash
2
3 dotnetRunnerPath=$1
4 outerloop=$2
5 outxml=$3
6 tmpDir=$4
7
8 exitcode_list[0]="Exited Successfully"
9 exitcode_list[130]="SIGINT  Ctrl-C occurred. Likely tests timed out."
10 exitcode_list[131]="SIGQUIT Ctrl-\ occurred. Core dumped."
11 exitcode_list[132]="SIGILL  Illegal Instruction. Core dumped. Likely codegen issue."
12 exitcode_list[133]="SIGTRAP Breakpoint hit. Core dumped."
13 exitcode_list[134]="SIGABRT Abort. Managed or native assert, or runtime check such as heap corruption, caused call to abort(). Core dumped."
14 exitcode_list[135]="SIGBUS  Unaligned memory access. Core dumped."
15 exitcode_list[136]="SIGFPE  Bad floating point arguments. Core dumped."
16 exitcode_list[137]="SIGKILL Killed eg by kill"
17 exitcode_list[139]="SIGSEGV Illegal memory access. Deref invalid pointer, overrunning buffer, stack overflow etc. Core dumped."
18 exitcode_list[143]="SIGTERM Terminated. Usually before SIGKILL."
19 exitcode_list[159]="SIGSYS  Bad System Call."
20
21 if [ "$dotnetRunnerPath" == "" ] || [ "$outerloop" == "" ] || [ "$outxml" == "" ] || [ "$tmpDir" == "" ]
22 then
23     echo "Usage: $0 dotnetRunner outerloop outxml tmpdir"
24     exit -1
25 fi
26
27 ulimit -c unlimited
28
29 outerloopCmd=""
30
31 if [ "$outerloop" == "on" ]
32 then
33     outerloopCmd="-trait category=OuterLoop"
34 else
35     outerloopCmd="-notrait category=OuterLoop"
36 fi
37
38 cmd="$dotnetRunnerPath exec --runtimeconfig COREFX_TEST_NAME.runtimeconfig.json xunit.console.dll COREFX_TEST_NAME.dll -xml $outxml -nologo -notrait category=nonnetcoreapptests -notrait category=nonlinuxtests -notrait category=failing $outerloopCmd -parallel none"
39
40 echo Start time COREFX_TEST_NAME.dll: $(date +"%T")
41 echo "TMPDIR=$tmpDir $cmd"
42 echo "================"
43
44 TMPDIR=$tmpDir $cmd
45 test_exitcode=$?
46
47 echo "================"
48 echo End time COREFX_TEST_NAME.dll: $(date +"%T")
49
50 if [ "${exitcode_list[$test_exitcode]}" != "" ]; then
51   echo exit code $test_exitcode means ${exitcode_list[$test_exitcode]}
52 fi
53
54 exit $test_exitcode