1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#!/bin/sh basedir=$(dirname $0) . $basedir/common output() { if [ $? -eq 0 ]; \ then echo "PASS: $i"; \ else echo "FAIL: $i"; \ fi; } for i in test_simple_sequence test_undetected_loop; \ do $i >/dev/null 2>&1; output; \ done rm -rf ${tmpdir}