9 test -t 1 && colorize=1
11 test -n "$colorize" &&
18 -*) echo "Usage: $0 [<files>...]"; exit 64;;
24 echo "1..$(echo $params | wc -w)"
27 for candidate in $params
29 test_count=$((test_count+1))
30 file="${candidate%.out}"
31 name="$(echo ${file#*-} | tr _ \ )"
33 if test -e "$file.out"
38 echo "not ok $test_count - $name # TODO"
50 fail_count=$((fail_count+1))
56 echo "ok $test_count - $name"
60 if test $fail_count = 0
63 echo "# passed all $test_count test(s)"
66 echo "# failed $fail_count among $test_count test(s)"
67 fail_count=1 # exit code