diff options
| author | Brian Campbell | 2018-02-23 16:12:46 +0000 |
|---|---|---|
| committer | Brian Campbell | 2018-02-23 16:12:56 +0000 |
| commit | cd37e0dd062f6af04c56e01103f2046fd390bbe6 (patch) | |
| tree | 381dd476df462ac38b34840160c2cd513de8de77 /test/mono/test.sh | |
| parent | 4ca525a57602883109bf927d97ffbb782e389ae3 (diff) | |
Change monomorphisation tests to proper output
Diffstat (limited to 'test/mono/test.sh')
| -rwxr-xr-x | test/mono/test.sh | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/test/mono/test.sh b/test/mono/test.sh deleted file mode 100755 index 5bf72828..00000000 --- a/test/mono/test.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/bash - -set -e - -DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" -SAILDIR="$DIR/../.." -LEMDIR="$DIR/../../../lem" -OUTDIR="$DIR/test-out" -ZARITH="$LEMDIR/ocaml-lib/dependencies/zarith" - -if [ ! -d "$OUTDIR" ]; then - mkdir -- "$OUTDIR" -fi -cd "$OUTDIR" - -TESTONLY="$1" -if [ -n "$TESTONLY" ]; then shift; fi - -LOG="$DIR/log" -date > "$LOG" - -exec 3< "$DIR/tests" -set +e - -while read -u 3 TEST ARGS; do - if [ -z "$TESTONLY" -o "$TEST" = "$TESTONLY" ]; then - - echo "$TEST lem - ocaml" | tee -a -- "$LOG" - rm -f -- "$OUTDIR"/* - "$SAILDIR/sail" -lem -lem_mwords -lem_lib Test_extra "$DIR/$TEST".sail -o "$OUTDIR/testout" $ARGS $@ &>> "$LOG" && \ - "$LEMDIR/bin/lem" -ocaml -lib "$SAILDIR/src/lem_interp" "$SAILDIR/src/gen_lib/sail_values.lem" "$SAILDIR/src/gen_lib/sail_operators.lem" "$SAILDIR/src/gen_lib/sail_operators_mwords.lem" "$SAILDIR/src/lem_interp/sail_instr_kinds.lem" "$SAILDIR/src/gen_lib/prompt.lem" "$SAILDIR/src/gen_lib/state_monad.lem" "$SAILDIR/src/gen_lib/state.lem" "$SAILDIR/src/gen_lib/prompt_monad.lem" "$DIR/test_extra.lem" testout_types.lem testout.lem -outdir "$OUTDIR" &>> "$LOG" && \ - cp -- "$DIR"/test.ml "$OUTDIR" && \ - ocamlfind ocamlc -linkpkg -package zarith -package lem sail_values.ml sail_operators.ml sail_operators_mwords.ml sail_instr_kinds.ml prompt_monad.ml prompt.ml state_monad.ml state.ml test_extra.ml testout_types.ml testout.ml test.ml -o test &>> "$LOG" && \ - ./test |& tee -a -- "$LOG" || \ - (echo "Failed:"; echo; tail -- "$LOG"; echo; echo) - fi -done |
