runtest 566 B

123456789101112131415161718192021222324
  1. #! /bin/sh
  2. #
  3. # usage: runtest [<testfile>...]
  4. # without args, runs all *.test files in the current directory
  5. #
  6. MAKE=make
  7. TESTFILES=$*
  8. if [ "x$TESTFILES" = "x" ]; then TESTFILES='*.test'; fi
  9. if [ ! -d work ]; then mkdir work; fi
  10. cp -pPR lib work/
  11. opp_test gen $OPT -v $TESTFILES || exit 1
  12. echo
  13. (cd work; opp_makemake -f --deep -lINET -L../../../../src -P . --no-deep-includes -I../../../../src; $MAKE) || exit 1
  14. echo
  15. PATH=$PATH:../../../src opp_test run -a "--check-signals=false -lINET " $OPT -v $TESTFILES || exit 1
  16. echo
  17. echo Results can be found in ./work