diff options
| author | Alasdair Armstrong | 2017-07-13 18:01:13 +0100 |
|---|---|---|
| committer | Alasdair Armstrong | 2017-07-13 18:01:13 +0100 |
| commit | 03d703c91e226b975eb6406e12f1c9dae121856a (patch) | |
| tree | f6d8615ad500226f1aeed992a2f08fc6b50d08fd /test/typecheck | |
| parent | 249079742b63d43cdc4c445de3229f594c6d59fc (diff) | |
Typechecker now inserts val specs into AST when it infers them
Diffstat (limited to 'test/typecheck')
| -rwxr-xr-x | test/typecheck/run_tests.sh | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/test/typecheck/run_tests.sh b/test/typecheck/run_tests.sh index 6ce2d5c8..c4faad7e 100755 --- a/test/typecheck/run_tests.sh +++ b/test/typecheck/run_tests.sh @@ -10,6 +10,7 @@ YELLOW='\033[0;33m' NC='\033[0m' mkdir -p $DIR/rtpass +mkdir -p $DIR/rtpass2 mkdir -p $DIR/lem mkdir -p $DIR/rtfail @@ -60,9 +61,14 @@ for i in `ls $DIR/pass/`; do if $SAILDIR/sail -ddump_tc_ast -just_check $DIR/pass/$i 2> /dev/null 1> $DIR/rtpass/$i; then - if $SAILDIR/sail -dno_cast -just_check $DIR/rtpass/$i 2> /dev/null; + if $SAILDIR/sail -dno_cast -ddump_tc_ast -just_check $DIR/rtpass/$i 2> /dev/null 1> $DIR/rtpass2/$i; then - green "tested $i expecting pass" "pass" + if diff $DIR/rtpass/$i $DIR/rtpass2/$i; + then + green "tested $i expecting pass" "pass" + else + yellow "tested $i expecting pass" "re-check AST was different" + fi else yellow "tested $i expecting pass" "failed re-check" fi |
