summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Gravrock <sdg@panix.com>2012-12-22 12:40:23 -0800
committerSteve Gravrock <sdg@panix.com>2012-12-22 12:40:23 -0800
commit734aee05a16de1a7eed572f444f21d5f9a1e5034 (patch)
tree3bfc3df6a04676cafbbb97c8561852b3ad2e5d1b
parent61e78cac9d03e74280e82b4a8f2bcd62c6727f65 (diff)
downloadyajl-734aee05a16de1a7eed572f444f21d5f9a1e5034.tar.gz
Removed bash dependency in test/run_tests.sh and updated for NetBSD.
-rwxr-xr-xtest/run_tests.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/run_tests.sh b/test/run_tests.sh
index 418094b..af64e15 100755
--- a/test/run_tests.sh
+++ b/test/run_tests.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
ECHO=`which echo`
@@ -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