| 1 | #!/bin/sh |
| 2 | # Setup test environment and run all tests |
| 3 | |
| 4 | . test_env |
| 5 | |
| 6 | # Delete old test output |
| 7 | rm -f $T3_OUT/* |
| 8 | |
| 9 | # object test - doesn't produce any output; mostly check for no crashiness |
| 10 | test_obj |
| 11 | |
| 12 | # Preprocessor tests |
| 13 | for i in ansi circ circ2 embed define ifdef concat varmacpp; do |
| 14 | test_pp $i |
| 15 | done |
| 16 | |
| 17 | # Execution tests |
| 18 | for i in basic finally dstr fnredef builtin undo gotofin; do |
| 19 | test_ex $i |
| 20 | done |
| 21 | |
| 22 | # "Make" tests |
| 23 | |
| 24 | for i in anon isin htmlify listprop foreach vector lclprop lookup propaddr funcparm newprop anonobj nested badnest varmac bignum bignum2 unicode anon isin htmlify listprop foreach vector lclprop lookup propaddr funcparm newprop anonobj nested badnest varmac objloop anonvarg; do |
| 25 | test_make $i $i |
| 26 | done |
| 27 | |
| 28 | for i in catch save html addlist listpar arith; do |
| 29 | test_make -nodef $i $i |
| 30 | done |
| 31 | |
| 32 | for i in extfunc objrep funcrep conflict; do |
| 33 | test_make -nodef $i ${i}1 ${i}2 |
| 34 | done |
| 35 | |
| 36 | test_make -pre vocext vocext1 vocext2 reflect |
| 37 | |
| 38 | for i in extern objmod; do |
| 39 | test_make -nodef $i ${i}1 ${i}2 ${i}3 |
| 40 | done |
| 41 | |
| 42 | test_make -nodef gram2 t3lib/tok gram2 |
| 43 | test_make -debug stack stack t3lib/reflect |
| 44 | test_make -pre targprop targprop t3lib/reflect |
| 45 | |
| 46 | # These tests require running preinit (testmake normally suppresses it) |
| 47 | for i in vec_pre symtab enumprop modtobj undef undef2; do |
| 48 | test_make $i -pre $i |
| 49 | done |
| 50 | |
| 51 | # ITER does a save/restore test |
| 52 | test_make iter iter |
| 53 | test_restore iter2 iter |
| 54 | |
| 55 | # "Preinit" tests |
| 56 | test_pre preinit |
| 57 | |
| 58 | echo |
| 59 | |
| 60 | ls $T3_OUT/*.succ 2>/dev/null |
| 61 | echo |
| 62 | ls $T3_OUT/*.diff 2>/dev/null |
| 63 | |
| 64 | if [ $? = 0 ]; then |
| 65 | echo "*** DIFFERENCE FILES FOUND ***" |
| 66 | else |
| 67 | echo "*** SUCCESS ***" |
| 68 | fi |