diff options
Diffstat (limited to 'runtests.sh')
-rwxr-xr-x | runtests.sh | 24 |
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 | |||
56 | make clean | 56 | make clean |
57 | rm -rf tests/cjson{,.so} | 57 | rm -rf tests/cjson{,.so} |
58 | 58 | ||
59 | echo "===== Testing Cmake build =====" | 59 | |
60 | mkdir build | 60 | if [ -z "$SKIP_CMAKE" ]; then |
61 | cd build | 61 | echo "===== Testing Cmake build =====" |
62 | cmake .. | 62 | mkdir build |
63 | make | 63 | cd build |
64 | cd .. | 64 | cmake .. |
65 | cp -r lua/cjson build/cjson.so tests | 65 | make |
66 | do_tests | 66 | cd .. |
67 | rm -rf build tests/cjson{,.so} | 67 | cp -r lua/cjson build/cjson.so tests |
68 | do_tests | ||
69 | rm -rf build tests/cjson{,.so} | ||
70 | else | ||
71 | echo "===== Skipping Cmake build =====" | ||
72 | fi | ||
73 | |||
68 | 74 | ||
69 | # vi:ai et sw=4 ts=4: | 75 | # vi:ai et sw=4 ts=4: |