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.
|
||||
#
|
||||
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue