diff options
author | Mark Pulford <mark@kyne.com.au> | 2011-12-13 23:39:57 +1030 |
---|---|---|
committer | Mark Pulford <mark@kyne.com.au> | 2011-12-13 23:39:57 +1030 |
commit | 2487f7fa11a9c3c6d24948b4abc9a0e5468d1b1d (patch) | |
tree | 70df6d593f00a3282ac634dc0c7e0cf3735950fb /runtests.sh | |
parent | 8e5aa7cfe7b873b4eb8dd522054e16a67fb66ca8 (diff) | |
download | lua-cjson-2487f7fa11a9c3c6d24948b4abc9a0e5468d1b1d.tar.gz lua-cjson-2487f7fa11a9c3c6d24948b4abc9a0e5468d1b1d.tar.bz2 lua-cjson-2487f7fa11a9c3c6d24948b4abc9a0e5468d1b1d.zip |
Add support for building via CMake
Diffstat (limited to 'runtests.sh')
-rwxr-xr-x | runtests.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/runtests.sh b/runtests.sh index f273385..c520be0 100755 --- a/runtests.sh +++ b/runtests.sh | |||
@@ -54,6 +54,16 @@ do_tests | |||
54 | make clean | 54 | make clean |
55 | rm -f tests/cjson.so | 55 | rm -f tests/cjson.so |
56 | 56 | ||
57 | echo "===== Testing Cmake build =====" | ||
58 | mkdir build | ||
59 | cd build | ||
60 | cmake .. | ||
61 | make | ||
62 | cd .. | ||
63 | cp build/cjson.so tests | ||
64 | do_tests | ||
65 | rm -rf build tests/cjson.so | ||
66 | |||
57 | if [ "$PLATFORM" = "Linux" ] | 67 | if [ "$PLATFORM" = "Linux" ] |
58 | then | 68 | then |
59 | echo "===== Testing RPM build =====" | 69 | echo "===== Testing RPM build =====" |