aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2013-12-09 15:17:57 -0200
committerHisham Muhammad <hisham@gobolinux.org>2013-12-09 15:17:57 -0200
commit69d80ee4670c765d6ec55c87ff430bc887f207c4 (patch)
tree64cdba2eb0179354699af4e5ea89275070b5b5b8 /test
parent6f2e95cab8105b4e1e8e765f6114a9855bf20270 (diff)
downloadluarocks-69d80ee4670c765d6ec55c87ff430bc887f207c4.tar.gz
luarocks-69d80ee4670c765d6ec55c87ff430bc887f207c4.tar.bz2
luarocks-69d80ee4670c765d6ec55c87ff430bc887f207c4.zip
Let's use the unstable LuaSec for now. Pinged Bruno about it.
Diffstat (limited to 'test')
-rwxr-xr-xtest/testing.sh27
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
10if [ -z "$@" ] 10if [ -z "$*" ]
11then 11then
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
107if [ "$travis" ] 107if [ "$travis" ]
108then 108then
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
118else 121else
@@ -130,6 +133,10 @@ version_lxsh=0.8.6
130version_validate_args=1.5.4 133version_validate_args=1.5.4
131verrev_lxsh=${version_lxsh}-2 134verrev_lxsh=${version_lxsh}-2
132 135
136# will change to luasec=luasec once LuaSec for Lua 5.2 is released
137luasec="http://luarocks.org/repositories/rocks-scm/luasec-scm-1.rockspec"
138#luasec=luasec
139
133cd .. 140cd ..
134./configure --with-lua="$luadir" 141./configure --with-lua="$luadir"
135make clean 142make clean
@@ -203,7 +210,7 @@ test_build_diffversion() { $luarocks build luacov ${version_luacov}; }
203test_build_command() { $luarocks build stdlib; } 210test_build_command() { $luarocks build stdlib; }
204test_build_install_bin() { $luarocks build luarepl; } 211test_build_install_bin() { $luarocks build luarepl; }
205fail_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; } 212fail_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; }
206test_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; } 213test_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; }
207test_build_supported_platforms() { $luarocks build xctrl; } 214test_build_supported_platforms() { $luarocks build xctrl; }
208 215
209test_build_deps_partial_match() { $luarocks build yaml; } 216test_build_deps_partial_match() { $luarocks build yaml; }
@@ -231,7 +238,7 @@ test_new_version() { $luarocks download --rockspec luacov ${version_luacov} &&
231test_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-*; } 238test_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
233test_pack() { $luarocks list && $luarocks pack luacov && rm ./luacov-*.rock; } 240test_pack() { $luarocks list && $luarocks pack luacov && rm ./luacov-*.rock; }
234test_pack_src() { $luarocks install luasec && $luarocks download --rockspec luasocket && $luarocks pack ./luasocket-${verrev_luasocket}.rockspec && rm ./luasocket-${version_luasocket}-*.rock; } 241test_pack_src() { $luarocks install $luasec && $luarocks download --rockspec luasocket && $luarocks pack ./luasocket-${verrev_luasocket}.rockspec && rm ./luasocket-${version_luasocket}-*.rock; }
235 242
236test_path() { $luarocks path --bin; } 243test_path() { $luarocks path --bin; }
237 244
@@ -246,7 +253,7 @@ test_search_missing() { $luarocks search missing_rock; }
246 253
247test_show() { $luarocks show luacov; } 254test_show() { $luarocks show luacov; }
248test_show_modules() { $luarocks show --modules luacov; } 255test_show_modules() { $luarocks show --modules luacov; }
249test_show_depends() { $luarocks install luasec && $luarocks show luasec; } 256test_show_depends() { $luarocks install $luasec && $luarocks show luasec; }
250test_show_oldversion() { $luarocks install luacov ${version_luacov} && $luarocks show luacov ${version_luacov}; } 257test_show_oldversion() { $luarocks install luacov ${version_luacov} && $luarocks show luacov ${version_luacov}; }
251 258
252test_unpack_download() { rm -rf ./luasocket-${verrev_luasocket} && $luarocks unpack luasocket && rm -rf ./luasocket-${verrev_luasocket}; } 259test_unpack_download() { rm -rf ./luasocket-${verrev_luasocket} && $luarocks unpack luasocket && rm -rf ./luasocket-${verrev_luasocket}; }