X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=obn-run-tests.sh;h=7cfbb4954b5d1bc145a137171bdfebf0c44a7e7d;hb=1128fa8566c932e3996abd427fc75bc4c946e656;hp=fa1d728f373bbc133344fd14886982b2cdb21fe1;hpb=ba1a55241f3841d1254317d76d45322c85fb687b;p=dsw-obn.git diff --git a/obn-run-tests.sh b/obn-run-tests.sh index fa1d728..7cfbb49 100755 --- a/obn-run-tests.sh +++ b/obn-run-tests.sh @@ -2,12 +2,14 @@ set -e +TEST_DIR=tests + # Тест: компиляция и исполнение maketest() { local OK=1 local LOG="" - if ! LOG="$(./obn-compile.sh $1)"; then + if ! LOG="$(./obn-compile.sh -I $TEST_DIR $1)"; then OK=0; echo "==============================" echo "Test fail: $1 compile-time $?:" @@ -18,11 +20,6 @@ maketest() if [ $OK = 1 ]; then if ! ./obn-run.sh $1; then OK=0 - echo "==============================" - echo "Test fail: $1 run-time $?:" - echo "$LOG" - echo "==============================" - echo fi fi if [ $OK = 1 ]; then @@ -34,7 +31,7 @@ maketest() makecomp() { local LOG="" - if ! LOG="$(./obn-compile.sh $1)"; then + if ! LOG="$(./obn-compile.sh -I $TEST_DIR $1)"; then echo "==============================" echo "Test fail: $1 compile-time $?:" echo "$LOG" @@ -50,7 +47,7 @@ makecomp() makefail() { local LOG="" - if ! LOG="$(./obn-compile.sh $1)"; then + if ! LOG="$(./obn-compile.sh -I $TEST_DIR $1)"; then echo "Test ok: $1" else echo "==============================" @@ -93,3 +90,4 @@ makefail Test18C maketest Test19 maketest Test20 +maketest Test21