test/runner will now exit with non-zero status on any failure
parent
ab4c9208aa
commit
de627c9822
12
test/runner
12
test/runner
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue