diff options
| author | Hisham Muhammad <hisham@gobolinux.org> | 2013-12-09 15:17:57 -0200 |
|---|---|---|
| committer | Hisham Muhammad <hisham@gobolinux.org> | 2013-12-09 15:17:57 -0200 |
| commit | 69d80ee4670c765d6ec55c87ff430bc887f207c4 (patch) | |
| tree | 64cdba2eb0179354699af4e5ea89275070b5b5b8 | |
| parent | 6f2e95cab8105b4e1e8e765f6114a9855bf20270 (diff) | |
| download | luarocks-69d80ee4670c765d6ec55c87ff430bc887f207c4.tar.gz luarocks-69d80ee4670c765d6ec55c87ff430bc887f207c4.tar.bz2 luarocks-69d80ee4670c765d6ec55c87ff430bc887f207c4.zip | |
Let's use the unstable LuaSec for now. Pinged Bruno about it.
| -rwxr-xr-x | test/testing.sh | 27 |
1 files changed, 17 insertions, 10 deletions
diff --git a/test/testing.sh b/test/testing.sh index c0dce2d3..d0d92e33 100755 --- a/test/testing.sh +++ b/test/testing.sh | |||
| @@ -7,7 +7,7 @@ | |||
| 7 | exit 1 | 7 | exit 1 |
| 8 | } | 8 | } |
| 9 | 9 | ||
| 10 | if [ -z "$@" ] | 10 | if [ -z "$*" ] |
| 11 | then | 11 | then |
| 12 | ps aux | grep -q '[s]shd' || { | 12 | ps aux | grep -q '[s]shd' || { |
| 13 | echo "Run sudo /bin/sshd in order to perform all tests." | 13 | echo "Run sudo /bin/sshd in order to perform all tests." |
| @@ -107,12 +107,15 @@ luaversion=5.2.3 | |||
| 107 | if [ "$travis" ] | 107 | if [ "$travis" ] |
| 108 | then | 108 | then |
| 109 | pushd /tmp | 109 | pushd /tmp |
| 110 | mkdir -p lua | 110 | if [ ! -e "lua/bin/lua" ] |
| 111 | wget "http://www.lua.org/ftp/lua-$luaversion.tar.gz" | 111 | then |
| 112 | tar zxvpf "lua-$luaversion.tar.gz" | 112 | mkdir -p lua |
| 113 | cd "lua-$luaversion" | 113 | wget "http://www.lua.org/ftp/lua-$luaversion.tar.gz" |
| 114 | make linux INSTALL_TOP=/tmp/lua | 114 | tar zxvpf "lua-$luaversion.tar.gz" |
| 115 | make install INSTALL_TOP=/tmp/lua | 115 | cd "lua-$luaversion" |
| 116 | make linux INSTALL_TOP=/tmp/lua | ||
| 117 | make install INSTALL_TOP=/tmp/lua | ||
| 118 | fi | ||
| 116 | popd | 119 | popd |
| 117 | luadir=/tmp/lua | 120 | luadir=/tmp/lua |
| 118 | else | 121 | else |
| @@ -130,6 +133,10 @@ version_lxsh=0.8.6 | |||
| 130 | version_validate_args=1.5.4 | 133 | version_validate_args=1.5.4 |
| 131 | verrev_lxsh=${version_lxsh}-2 | 134 | verrev_lxsh=${version_lxsh}-2 |
| 132 | 135 | ||
| 136 | # will change to luasec=luasec once LuaSec for Lua 5.2 is released | ||
| 137 | luasec="http://luarocks.org/repositories/rocks-scm/luasec-scm-1.rockspec" | ||
| 138 | #luasec=luasec | ||
| 139 | |||
| 133 | cd .. | 140 | cd .. |
| 134 | ./configure --with-lua="$luadir" | 141 | ./configure --with-lua="$luadir" |
| 135 | make clean | 142 | make clean |
| @@ -203,7 +210,7 @@ test_build_diffversion() { $luarocks build luacov ${version_luacov}; } | |||
| 203 | test_build_command() { $luarocks build stdlib; } | 210 | test_build_command() { $luarocks build stdlib; } |
| 204 | test_build_install_bin() { $luarocks build luarepl; } | 211 | test_build_install_bin() { $luarocks build luarepl; } |
| 205 | fail_build_nohttps() { $luarocks install luasocket && $luarocks download --rockspec validate-args ${version_validate_args} && $luarocks build ./validate-args-${version_validate_args}-1.rockspec && rm ./validate-args-${version_validate_args}-1.rockspec; } | 212 | fail_build_nohttps() { $luarocks install luasocket && $luarocks download --rockspec validate-args ${version_validate_args} && $luarocks build ./validate-args-${version_validate_args}-1.rockspec && rm ./validate-args-${version_validate_args}-1.rockspec; } |
| 206 | test_build_https() { $luarocks download --rockspec validate-args ${version_validate_args} && $luarocks install luasec && $luarocks build ./validate-args-${version_validate_args}-1.rockspec && rm ./validate-args-${version_validate_args}-1.rockspec; } | 213 | test_build_https() { $luarocks download --rockspec validate-args ${version_validate_args} && $luarocks install $luasec && $luarocks build ./validate-args-${version_validate_args}-1.rockspec && rm ./validate-args-${version_validate_args}-1.rockspec; } |
| 207 | test_build_supported_platforms() { $luarocks build xctrl; } | 214 | test_build_supported_platforms() { $luarocks build xctrl; } |
| 208 | 215 | ||
| 209 | test_build_deps_partial_match() { $luarocks build yaml; } | 216 | test_build_deps_partial_match() { $luarocks build yaml; } |
| @@ -231,7 +238,7 @@ test_new_version() { $luarocks download --rockspec luacov ${version_luacov} && | |||
| 231 | test_new_version_url() { $luarocks download --rockspec abelhas 1.0 && $luarocks new_version ./abelhas-1.0-1.rockspec 1.1 https://github.com/downloads/ittner/abelhas/abelhas-1.1.tar.gz && rm ./abelhas-*; } | 238 | test_new_version_url() { $luarocks download --rockspec abelhas 1.0 && $luarocks new_version ./abelhas-1.0-1.rockspec 1.1 https://github.com/downloads/ittner/abelhas/abelhas-1.1.tar.gz && rm ./abelhas-*; } |
| 232 | 239 | ||
| 233 | test_pack() { $luarocks list && $luarocks pack luacov && rm ./luacov-*.rock; } | 240 | test_pack() { $luarocks list && $luarocks pack luacov && rm ./luacov-*.rock; } |
| 234 | test_pack_src() { $luarocks install luasec && $luarocks download --rockspec luasocket && $luarocks pack ./luasocket-${verrev_luasocket}.rockspec && rm ./luasocket-${version_luasocket}-*.rock; } | 241 | test_pack_src() { $luarocks install $luasec && $luarocks download --rockspec luasocket && $luarocks pack ./luasocket-${verrev_luasocket}.rockspec && rm ./luasocket-${version_luasocket}-*.rock; } |
| 235 | 242 | ||
| 236 | test_path() { $luarocks path --bin; } | 243 | test_path() { $luarocks path --bin; } |
| 237 | 244 | ||
| @@ -246,7 +253,7 @@ test_search_missing() { $luarocks search missing_rock; } | |||
| 246 | 253 | ||
| 247 | test_show() { $luarocks show luacov; } | 254 | test_show() { $luarocks show luacov; } |
| 248 | test_show_modules() { $luarocks show --modules luacov; } | 255 | test_show_modules() { $luarocks show --modules luacov; } |
| 249 | test_show_depends() { $luarocks install luasec && $luarocks show luasec; } | 256 | test_show_depends() { $luarocks install $luasec && $luarocks show luasec; } |
| 250 | test_show_oldversion() { $luarocks install luacov ${version_luacov} && $luarocks show luacov ${version_luacov}; } | 257 | test_show_oldversion() { $luarocks install luacov ${version_luacov} && $luarocks show luacov ${version_luacov}; } |
| 251 | 258 | ||
| 252 | test_unpack_download() { rm -rf ./luasocket-${verrev_luasocket} && $luarocks unpack luasocket && rm -rf ./luasocket-${verrev_luasocket}; } | 259 | test_unpack_download() { rm -rf ./luasocket-${verrev_luasocket} && $luarocks unpack luasocket && rm -rf ./luasocket-${verrev_luasocket}; } |
