-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathrunall.sh
executable file
·54 lines (47 loc) · 1.31 KB
/
runall.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/bin/bash
_rvoscmd="rvos"
if [ "$1" != "" ]; then
_rvoscmd="rvos -h:200 bin/rvos"
fi
outputfile="runall_linux_test.txt"
date_time=$(date)
echo "$date_time" >$outputfile
for arg in tcmp t e printint sieve simple tmuldiv tpi ts tarray tbits trw tmmap tstr \
fileops ttime tm glob tap tsimplef tphi tf ttt td terrno t_setjmp tex \
mm pis sleeptm tatomic lenum tregex;
do
echo $arg
for opt in 0 1 2 3 fast;
do
echo c_tests/bin$opt/$arg >>$outputfile
$_rvoscmd c_tests/bin$opt/$arg >>$outputfile
done
done
echo test AN
for opt in 0 1 2 3 fast;
do
echo c_tests/bin$opt/an david lee >>$outputfile
$_rvoscmd c_tests/bin$opt/an david lee >>$outputfile
done
echo test BA
for opt in 0 1 2 3 fast;
do
echo c_tests/bin$opt/ba c_tests/tp.bas >>$outputfile
$_rvoscmd c_tests/bin$opt/ba c_tests/tp.bas >>$outputfile
for codegen in 6 8 a d 3 i I m o r x;
do
$_rvoscmd c_tests/bin$opt/ba -a:$codegen -x c_tests/tp.bas >>$outputfile
done
done
for arg in e ttt fileops ato tap real tphi mysort;
do
echo $arg
for opt in 0 1 2 3;
do
echo rust_tests/bin$opt/$arg >>$outputfile
$_rvoscmd rust_tests/bin$opt/$arg >>$outputfile
done
done
date_time=$(date)
echo "$date_time" >>$outputfile
diff baseline_$outputfile $outputfile