Discussion:
[Toybox] runtest.sh
Rob Landley
2018-12-03 23:06:48 UTC
Permalink
commit 01844db4fb92aa7ae6eb12b160f1978235a449d5
Date: Sun Dec 2 16:22:41 2018 -0600
Merge runtest.sh into test.sh.
Ah, you're using it.

Ok, split back out again.
if [ "$#" -eq 0 ]; then
# Run all the tests.
for t in tests/*.test; do
toy=`echo $t | sed 's|tests/||' | sed 's|\.test||'`
test_toy $toy
done
You saw I'm using the +x bit to indicate tests expected to pass with VERBOSE=fail...
having the functions separate from the actual runner was useful for this...
Gotcha.

Rob

Loading...