aboutsummaryrefslogtreecommitdiff
path: root/runtests.sh
diff options
context:
space:
mode:
Diffstat (limited to 'runtests.sh')
-rwxr-xr-xruntests.sh24
1 files changed, 15 insertions, 9 deletions
diff --git a/runtests.sh b/runtests.sh
index bfb01d9..fe606fa 100755
--- a/runtests.sh
+++ b/runtests.sh
@@ -56,14 +56,20 @@ do_tests
56make clean 56make clean
57rm -rf tests/cjson{,.so} 57rm -rf tests/cjson{,.so}
58 58
59echo "===== Testing Cmake build =====" 59
60mkdir build 60if [ -z "$SKIP_CMAKE" ]; then
61cd build 61 echo "===== Testing Cmake build ====="
62cmake .. 62 mkdir build
63make 63 cd build
64cd .. 64 cmake ..
65cp -r lua/cjson build/cjson.so tests 65 make
66do_tests 66 cd ..
67rm -rf build tests/cjson{,.so} 67 cp -r lua/cjson build/cjson.so tests
68 do_tests
69 rm -rf build tests/cjson{,.so}
70else
71 echo "===== Skipping Cmake build ====="
72fi
73
68 74
69# vi:ai et sw=4 ts=4: 75# vi:ai et sw=4 ts=4: