Skip to content

Commit edf3c50

Browse files
committed
added a rule to the fobis file for running the tests. Fixes #321
1 parent dee4b1d commit edf3c50

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

json-fortran.fobis

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,3 +142,15 @@ template = template-tests
142142
[rule-makedoc]
143143
help = Rule for building documentation from source files
144144
rule_1 = ford $FORD_FILE
145+
146+
[rule-tests]
147+
help = Rule for running the test programs
148+
rule_1 = (cd bin
149+
GLOBIGNORE='*.*'
150+
ls jf_test_* | sed 's/^\([^0-9]*\)\([0-9]*\)/\1 \2/' | sort -k2,2n | tr -d ' ' |
151+
while read TEST; do
152+
echo ""
153+
echo "Running ${TEST}"
154+
"./${TEST}"
155+
done)
156+

0 commit comments

Comments
 (0)