diff options
| author | Ilya Shipitsin <chipitsine@gmail.com> | 2016-04-24 16:52:52 +0600 |
|---|---|---|
| committer | Ilya Shipitsin <chipitsine@gmail.com> | 2016-04-24 16:52:52 +0600 |
| commit | beb5dea2c45e13e620ebdbb74dd6462cd844b754 (patch) | |
| tree | f952a1ab75010342291200b191baee92a765a948 | |
| parent | 135c3c8f4e85be4aa655aac0d9b18be2ce5e4e0a (diff) | |
| download | lua-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-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: |
