| if [ ! -f config.mak ]; then |
| echo "run ./configure && make first. See ./configure -h" |
| source scripts/functions.bash |
| Usage: $0 [-g group] [-h] [-v] |
| -g: Only execute tests in the given group |
| -h: Output this help text |
| Set the environment variable QEMU=/path/to/qemu-system-ARCH to |
| specify the appropriate qemu binary for ARCH-run. |
| RUNTIME_arch_run="./$TEST_DIR/run" |
| source scripts/runtime.bash |
| while getopts "g:hv" opt; do |
| RUNTIME_log_stderr () { cat >> test.log; } |
| if [ "$PRETTY_PRINT_STACKS" = "yes" ]; then |
| ./scripts/pretty_print_stacks.py $1 >> test.log |
| config=$TEST_DIR/unittests.cfg |
| printf "BUILD_HEAD=$(cat build-head)\n\n" > test.log |
| for_each_unittest $config run |