Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge NetBSD build fix (no BASHisms) closes #90

  • Loading branch information...
commit 4c539cb5b48c41cecbbf3a0afcbd293de33abfc8 2 parents abb2d1c + 734aee0
@lloyd authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 test/run_tests.sh
View
6 test/run_tests.sh
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.