Skip to content

Commit 440ed33

Browse files
committed
run tests in correct order.
minor formatting in build script.
1 parent 5583fea commit 440ed33

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

build.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,13 +316,19 @@ if [[ $JF_SKIP_TESTS != [yY]* ]] ; then
316316
# run next commands in subshell to avoid `cd -`
317317
(cd "$BINDIR"
318318
GLOBIGNORE='*.*'
319-
#
320-
for TEST in jf_test_*; do
319+
# from: http://stackoverflow.com/questions/7992689/bash-how-to-loop-all-files-in-sorted-order
320+
ls jf_test_* | sed 's/^\([^0-9]*\)\([0-9]*\)/\1 \2/' | sort -k2,2n | tr -d ' ' |
321+
while read TEST; do
321322
# It would be nice to run json output printed to stdout through jsonlint, however,
322323
# some tests output more than one json structure and these need to be split
324+
echo ""
325+
echo "======================================================"
326+
echo ""
323327
echo "Running ${TEST}"
324328
"./${TEST}"
325329
done)
330+
echo ""
331+
echo "======================================================"
326332
GLOBIGNORE="$OLD_IGNORES"
327333
if [[ $CODE_COVERAGE = [yY]* ]] ; then
328334
for SRCFILE in json_string_utilities.F90 json_value_module.F90 json_file_module.F90 ; do

0 commit comments

Comments
 (0)