Changeset 63e3ed8 for doc/theses/andrew_beach_MMath/code/test.sh
- Timestamp:
- Jul 15, 2021, 10:36:46 AM (3 years ago)
- Branches:
- ADT, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- e19fadd
- Parents:
- 9f77301
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/theses/andrew_beach_MMath/code/test.sh
r9f77301 r63e3ed8 18 18 *.cfa) 19 19 # Requires a symbolic link. 20 mmake "${1%.cfa}" "$1" ./cfa "$1" -o "${1%.cfa}"20 mmake "${1%.cfa}" "$1" ./cfa -DNDEBUG -nodebug -O3 "$1" -o "${1%.cfa}" 21 21 ;; 22 22 *.cpp) 23 mmake "${1%.cpp}-cpp" "$1" g++ "$1" -o "${1%.cpp}-cpp"23 mmake "${1%.cpp}-cpp" "$1" g++ -DNDEBUG -O3 "$1" -o "${1%.cpp}-cpp" 24 24 ;; 25 25 *.java) … … 39 39 exit 0 40 40 elif [ 2 -eq "$#" ]; then 41 42 41 TEST_LANG="$1" 42 TEST_CASE="$2" 43 43 else 44 45 44 echo "Unknown call pattern." >&2 45 exit 2 46 46 fi 47 47 … … 58 58 CPP="./cond-catch-cpp $ITERATIONS 1" 59 59 JAVA="java CondCatch $ITERATIONS 1" 60 PYTHON="./cond_catch.py $ITERATIONS 1" 60 61 ;; 61 62 cond-match-none) … … 64 65 CPP="./cond-catch-cpp $ITERATIONS 0" 65 66 JAVA="java CondCatch $ITERATIONS 0" 67 PYTHON="./cond_catch.py $ITERATIONS 0" 66 68 ;; 67 69 cross-catch) … … 70 72 CPP="./cross-catch-cpp $ITERATIONS" 71 73 JAVA="java CrossCatch $ITERATIONS" 74 PYTHON="./cross_catch.py $ITERATIONS" 72 75 ;; 73 76 cross-finally) … … 76 79 CPP=unsupported 77 80 JAVA="java CrossFinally $ITERATIONS" 81 PYTHON="./cross_finally.py $ITERATIONS" 78 82 ;; 79 83 raise-detor) … … 82 86 CPP="./throw-detor-cpp $ITERATIONS $STACK_HEIGHT" 83 87 JAVA=unsupported 88 PYTHON=unsupported 84 89 ;; 85 90 raise-empty) … … 88 93 CPP="./throw-empty-cpp $ITERATIONS $STACK_HEIGHT" 89 94 JAVA="java ThrowEmpty $ITERATIONS $STACK_HEIGHT" 95 PYTHON="./throw_empty.py $ITERATIONS $STACK_HEIGHT" 90 96 ;; 91 97 raise-finally) … … 94 100 CPP=unsupported 95 101 JAVA="java ThrowFinally $ITERATIONS $STACK_HEIGHT" 102 PYTHON="./throw_finally.py $ITERATIONS $STACK_HEIGHT" 96 103 ;; 97 104 raise-other) … … 100 107 CPP="./throw-other-cpp $ITERATIONS $STACK_HEIGHT" 101 108 JAVA="java ThrowOther $ITERATIONS $STACK_HEIGHT" 109 PYTHON="./throw_other.py $ITERATIONS $STACK_HEIGHT" 102 110 ;; 103 111 *) … … 112 120 cpp) echo $CPP; $CPP;; 113 121 java) echo $JAVA; $JAVA;; 122 python) echo $PYTHON; $PYTHON;; 114 123 *) 115 124 echo "No such language: $TEST_LANG" >&2 116 125 exit 2 126 ;; 117 127 esac
Note: See TracChangeset
for help on using the changeset viewer.