runtest 507 B

1234567891011121314151617181920212223
  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 -ru -t work lib
  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. opp_test run $OPT -v $TESTFILES || exit 1
  16. echo
  17. echo Results can be found in ./work