aboutsummaryrefslogtreecommitdiff
path: root/runtests.sh
diff options
context:
space:
mode:
Diffstat (limited to 'runtests.sh')
-rwxr-xr-xruntests.sh11
1 files changed, 4 insertions, 7 deletions
diff --git a/runtests.sh b/runtests.sh
index 1e0a5cd..ed78cc5 100755
--- a/runtests.sh
+++ b/runtests.sh
@@ -1,8 +1,5 @@
1#!/bin/sh 1#!/bin/sh
2 2
3MAKE=make
4#MAKE=gmake
5
6EGREP="grep -E" 3EGREP="grep -E"
7#EGREP="egrep" 4#EGREP="egrep"
8 5
@@ -28,18 +25,18 @@ echo "===== Building UTF-8 test data ====="
28( cd tests && ./genutf8.pl; ) 25( cd tests && ./genutf8.pl; )
29 26
30echo "===== Cleaning old build data =====" 27echo "===== Cleaning old build data ====="
31$MAKE clean 28make clean
32rm -f tests/cjson.so 29rm -f tests/cjson.so
33 30
34echo "===== Testing LuaRocks build =====" 31echo "===== Testing LuaRocks build ====="
35luarocks make --local 32luarocks make --local
36do_tests 33do_tests
37luarocks remove --local lua-cjson 34luarocks remove --local lua-cjson
38$MAKE clean 35make clean
39 36
40echo "===== Testing Makefile build =====" 37echo "===== Testing Makefile build ====="
41$MAKE 38make
42cp cjson.so tests 39cp cjson.so tests
43do_tests 40do_tests
44$MAKE clean 41make clean
45rm -f tests/cjson.so 42rm -f tests/cjson.so