3 # Run tests on edep-sim. The tests kept in the fast-tests
4 # subdirectory will be run. Any tests that take a lot of time and are
5 # for more detailed validation should be kept in slow-tests. The
6 # slow-tests will only be run if the "-s" option is provided.
8 # This needs to be run in the validate subdirectory.
12 # Handle any input arguments
13 TEMP=$(getopt -o 's' -n "$0" -- "$@")
23 TESTS="${TESTS} slow-tests"
32 # Make a temporary macro file in the local directory.
33 OUTPUT_DIR="output.$(date +%Y-%m-%d-%H%M)"
35 for i in $(find ${TESTS} -name "[0-9]*" -type f); do
38 echo "(cd $OUTPUT_DIR && ../${i} >& ${LOG}.log || echo FAIL: $i)"
39 (cd $OUTPUT_DIR && ../${i} >& ${LOG}.log || echo FAIL: $i)