diff options
-rwxr-xr-x | runtests.sh | 23 |
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 | |||
66 | do_tests | 66 | do_tests |
67 | rm -rf build tests/cjson{,.so} | 67 | rm -rf build tests/cjson{,.so} |
68 | 68 | ||
69 | if [ "$PLATFORM" = "Linux" ] | ||
70 | then | ||
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 | ||
90 | fi | ||
91 | |||
92 | # vi:ai et sw=4 ts=4: | 69 | # vi:ai et sw=4 ts=4: |