From a0961903e3ff846a2bde6faa6d390435cd9937ef Mon Sep 17 00:00:00 2001 From: Mark Pulford Date: Thu, 19 Jan 2012 23:22:02 +1030 Subject: Fix runtests.sh after API change and file moves Fix runtests.sh after: - "util" module moved to lua/cjson - "version" removed --- runtests.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/runtests.sh b/runtests.sh index 777ef01..a301488 100755 --- a/runtests.sh +++ b/runtests.sh @@ -14,7 +14,7 @@ contextgrep() { do_tests() { echo cd tests - lua -e 'require "cjson"; print("Testing Lua CJSON version " .. cjson.version)' + lua -e 'print("Testing Lua CJSON version " .. require("cjson")._VERSION)' ./test.lua | contextgrep 'FAIL|Summary' 3 | grep -v PASS | cut -c -70 cd .. } @@ -50,10 +50,10 @@ make clean echo "===== Testing Makefile build =====" make -cp cjson.so tests +cp -r lua/cjson cjson.so tests do_tests make clean -rm -f tests/cjson.so +rm -rf tests/cjson{,.so} echo "===== Testing Cmake build =====" mkdir build @@ -61,9 +61,9 @@ cd build cmake .. make cd .. -cp build/cjson.so tests +cp -r lua/cjson build/cjson.so tests do_tests -rm -rf build tests/cjson.so +rm -rf build tests/cjson{,.so} if [ "$PLATFORM" = "Linux" ] then -- cgit v1.2.3-55-g6feb