Changeset 605673f
- Timestamp:
- Jul 12, 2021, 2:38:52 PM (3 years ago)
- Branches:
- ADT, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 6f27b67
- Parents:
- 6ff08d8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/theses/andrew_beach_MMath/code/test.sh
r6ff08d8 r605673f 38 38 done 39 39 exit 0 40 elif [ 2 == "$#" ]; then 41 TEST_LANG="$1" 42 TEST_CASE="$2" 43 # Just a weird hack to make this work with rmit.py. 44 elif [ 4 == "$#" ]; then 45 # -l TEST_LANG -t TEST_CASE 46 if [ "-l" = "$1" ]; then 47 TEST_LANG="$2" 48 TEST_CASE="$4" 49 # -t TEST_CASE -l TEST_LANG 50 else 51 TEST_LANG="$4" 52 TEST_CASE="$2" 53 fi 54 else 55 echo "Unknown call pattern." >&2 56 exit 2 40 57 fi 41 58 … … 46 63 } 47 64 48 case "$ 2" in65 case "$TEST_CASE" in 49 66 cond-match-all) 50 67 CFAT="./cond-catch $ITERATIONS 1" … … 96 113 ;; 97 114 *) 98 echo "No such test ." >&2115 echo "No such test: $TEST_CASE" >&2 99 116 exit 2 100 117 ;; 101 118 esac 102 119 103 case "$ 1" in120 case "$TEST_LANG" in 104 121 cfa-t) echo $CFAT; $CFAT;; 105 122 cfa-r) echo $CFAR; $CFAR;; 106 123 cpp) echo $CPP; $CPP;; 107 124 java) echo $JAVA; $JAVA;; 125 *) 126 echo "No such language: $TEST_LANG" >&2 127 exit 2 108 128 esac
Note: See TracChangeset
for help on using the changeset viewer.