runtest 741 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. #rm -rf work/lib
  11. #cp -pPR lib work/ # OSX dos not support cp -a
  12. #export NEDPATH=.:../lib
  13. #EXTRA_INCLUDES="-I../../../src/sim/parsim -I../../../src/envir -I../../../src/common -I../../../include/platdep"
  14. opp_test gen $OPT -v $TESTFILES || exit 1
  15. echo
  16. #(cd work; opp_makemake -f --deep --no-deep-includes -i ../makefrag $EXTRA_INCLUDES; $MAKE) || exit 1
  17. #echo
  18. opp_test run -a "-l ../../../../src/INET -n ../../../../src/:. -u Cmdenv" $OPT -v $TESTFILES || exit 1
  19. echo
  20. echo Results can be found in ./work