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