source: doc/theses/andrew_beach_MMath/code/run.sh@ 32b7f54

ADT ast-experimental enum forall-pointer-decay jacob/cs343-translation pthread-emulation qualifiedEnum
Last change on this file since 32b7f54 was f79ee0d, checked in by Peter A. Buhr <pabuhr@…>, 4 years ago

update exception benchmarks

  • Property mode set to 100755
File size: 662 bytes
Line 
1#!/usr/bin/env bash
2
3readonly ALL_TESTS=(raise-{empty,detor,finally,other} try-{catch,finally} cond-match-{all,none} \
4 raise-{fixup-empty,fixup-other})
5
6gen-file-name() (
7 if echo "$1" | grep -q -E '^[^%]*%[^%]*$' -; then
8 for L in {a..z}; do
9 file_name=${1//%/$L}
10 if ! [ -e $file_name ]; then
11 break
12 fi
13 done
14 echo $file_name
15 else
16 echo "$1"
17 fi
18)
19
20#readonly N=${1:-5}
21readonly N=${1:-1}
22readonly OUT_FILE=$(gen-file-name ${2:-run-%-$N})
23
24run-tests() (
25 for ((i = 0 ; i < N ; ++i)); do
26 for test in ${ALL_TESTS[@]}; do
27 for lang in cfa-t cfa-r cpp java python; do
28 ./test.sh $lang $test
29 done
30 done
31 done
32)
33
34run-tests > $OUT_FILE
Note: See TracBrowser for help on using the repository browser.