aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlya Shipitsin <chipitsine@gmail.com>2016-04-24 16:52:52 +0600
committerIlya Shipitsin <chipitsine@gmail.com>2016-04-24 16:52:52 +0600
commitbeb5dea2c45e13e620ebdbb74dd6462cd844b754 (patch)
treef952a1ab75010342291200b191baee92a765a948
parent135c3c8f4e85be4aa655aac0d9b18be2ce5e4e0a (diff)
downloadlua-cjson-beb5dea2c45e13e620ebdbb74dd6462cd844b754.tar.gz
lua-cjson-beb5dea2c45e13e620ebdbb74dd6462cd844b754.tar.bz2
lua-cjson-beb5dea2c45e13e620ebdbb74dd6462cd844b754.zip
removed rpmbuild test
it does not sense to test rpmbuild that way, it should be either rewritten or removed
-rwxr-xr-xruntests.sh23
1 files changed, 0 insertions, 23 deletions
diff --git a/runtests.sh b/runtests.sh
index 87db0bc..82dc8c1 100755
--- a/runtests.sh
+++ b/runtests.sh
@@ -66,27 +66,4 @@ cp -r lua/cjson build/cjson.so tests
66do_tests 66do_tests
67rm -rf build tests/cjson{,.so} 67rm -rf build tests/cjson{,.so}
68 68
69if [ "$PLATFORM" = "Linux" ]
70then
71 echo "===== Testing RPM build ====="
72 SRCTGZ=""
73 TGZ=lua-cjson-$VERSION.tar.gz
74 for D in .. packages .
75 do
76 [ -r "$D/$TGZ" ] && SRCTGZ="$D/$TGZ"
77 done
78 if [ "$SRCTGZ" ]
79 then
80 LOG=/tmp/build.$$
81 rpmbuild -tb "$SRCTGZ" > "$LOG"
82 RPM="`awk '/^Wrote: / && ! /debuginfo/ { print $2}' < "$LOG"`"
83 sudo -- rpm -Uvh \"$RPM\"
84 do_tests
85 sudo -- rpm -e lua-cjson
86 rm -f "$LOG"
87 else
88 echo "==> skipping, $TGZ not found"
89 fi
90fi
91
92# vi:ai et sw=4 ts=4: 69# vi:ai et sw=4 ts=4: