Skip to content

Commit

Permalink
Merge NetBSD build fix (no BASHisms) closes lloyd#90
Browse files Browse the repository at this point in the history
  • Loading branch information
lloyd committed Jan 29, 2013
2 parents abb2d1c + 734aee0 commit 4c539cb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,19 +70,19 @@ for file in cases/*.json ; do
$testBin $allowPartials $allowComments $allowGarbage $allowMultiple -b $iter < $file > ${file}.test 2>&1
diff ${DIFF_FLAGS} ${file}.gold ${file}.test > ${file}.out
if [ $? -eq 0 ] ; then
if [ $iter -eq 31 ] ; then : $(( testsSucceeded += 1)) ; fi
if [ $iter -eq 31 ] ; then testsSucceeded=$(( $testsSucceeded + 1 )) ; fi
else
success="FAILURE"
iter=32
${ECHO}
cat ${file}.out
fi
: $(( iter += 1 ))
iter=$(( iter + 1 ))
rm ${file}.test ${file}.out
done

${ECHO} $success
: $(( testsTotal += 1 ))
testsTotal=$(( testsTotal + 1 ))
done

${ECHO} $testsSucceeded/$testsTotal tests successful
Expand Down

0 comments on commit 4c539cb

Please sign in to comment.