test/runner will now exit with non-zero status on any failure

master
Mike Gerwitz 2014-11-21 00:14:17 -05:00
parent ab4c9208aa
commit de627c9822
1 changed files with 8 additions and 4 deletions

View File

@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
#
# Copyright (C) 2014 LoVullo Associates, Inc.
#
@ -40,13 +40,15 @@ htmlindex <<EOH
<ul>
EOH
find . -name '*.xspec' | while read spec; do
../tools/xspec/bin/xspec.sh "$spec"
declare -i status=0
while read spec; do
../tools/xspec/bin/xspec.sh "$spec" \
|| status=1
result="$( basename "$spec" .xspec )-result.html"
printf ' <li><a href="%s">%s</a></li>' "$result" "$spec" \
| htmlindex
done
done < <( find . -name '*.xspec' )
htmlindex <<EOF
</ul>
@ -54,3 +56,5 @@ htmlindex <<EOF
</html>
EOF
test "$status" -eq 0