aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2013-08-28 20:34:01 -0300
committerHisham Muhammad <hisham@gobolinux.org>2013-08-28 20:34:01 -0300
commita4f62cb9245a8bf5ef6c7dcbca9dbcc997cca485 (patch)
tree5b3c6fde29e288d19b6f7fd4efb8b5a0f3a96861 /test
parentc4805428af0e5862bf340c5010f41ae04fed1ae4 (diff)
downloadluarocks-a4f62cb9245a8bf5ef6c7dcbca9dbcc997cca485.tar.gz
luarocks-a4f62cb9245a8bf5ef6c7dcbca9dbcc997cca485.tar.bz2
luarocks-a4f62cb9245a8bf5ef6c7dcbca9dbcc997cca485.zip
minor updates to the testing.sh script
Diffstat (limited to 'test')
-rwxr-xr-xtest/testing.sh9
1 files changed, 5 insertions, 4 deletions
diff --git a/test/testing.sh b/test/testing.sh
index c06bd278..7a62c0e5 100755
--- a/test/testing.sh
+++ b/test/testing.sh
@@ -88,6 +88,7 @@ cd src
88 88
89echo $LUA_PATH 89echo $LUA_PATH
90 90
91luacov_version=0.3
91luarocks_nocov="$lua $PWD/bin/luarocks" 92luarocks_nocov="$lua $PWD/bin/luarocks"
92luarocks="$lua -erequire('luacov.runner')('$testing_dir/luacov.config') $PWD/bin/luarocks" 93luarocks="$lua -erequire('luacov.runner')('$testing_dir/luacov.config') $PWD/bin/luarocks"
93luarocks_admin="$lua -erequire('luacov.runner')('$testing_dir/luacov.config') $PWD/bin/luarocks-admin" 94luarocks_admin="$lua -erequire('luacov.runner')('$testing_dir/luacov.config') $PWD/bin/luarocks-admin"
@@ -147,7 +148,7 @@ fail_make_norockspec() { $luarocks make; }
147 148
148fail_build_blank_arg() { $luarocks build --tree="" lpeg; } 149fail_build_blank_arg() { $luarocks build --tree="" lpeg; }
149test_build_withpatch() { $luarocks build luadoc; } 150test_build_withpatch() { $luarocks build luadoc; }
150test_build_diffversion() { $luarocks build luacov 0.1; } 151test_build_diffversion() { $luarocks build luacov $luacov_version; }
151test_build_command() { $luarocks build stdlib; } 152test_build_command() { $luarocks build stdlib; }
152test_build_install_bin() { $luarocks build luarepl; } 153test_build_install_bin() { $luarocks build luarepl; }
153fail_build_nohttps() { $luarocks install luasocket && $luarocks download --rockspec validate-args 1.5.4 && $luarocks build ./validate-args-1.5.4-1.rockspec && rm ./validate-args-1.5.4-1.rockspec; } 154fail_build_nohttps() { $luarocks install luasocket && $luarocks download --rockspec validate-args 1.5.4 && $luarocks build ./validate-args-1.5.4-1.rockspec && rm ./validate-args-1.5.4-1.rockspec; }
@@ -170,7 +171,7 @@ test_list_porcelain() { $luarocks list --porcelain; }
170test_make() { rm -rf ./luasocket-2.0.2-5 && $luarocks download --src luasocket && $luarocks unpack ./luasocket-2.0.2-5.src.rock && cd luasocket-2.0.2-5/luasocket-2.0.2 && $luarocks make && cd ../.. && rm -rf ./luasocket-2.0.2-5; } 171test_make() { rm -rf ./luasocket-2.0.2-5 && $luarocks download --src luasocket && $luarocks unpack ./luasocket-2.0.2-5.src.rock && cd luasocket-2.0.2-5/luasocket-2.0.2 && $luarocks make && cd ../.. && rm -rf ./luasocket-2.0.2-5; }
171test_make_pack_binary_rock() { rm -rf ./lxsh-0.8.6-1 && $luarocks download --src lxsh 0.8.6-1 && $luarocks unpack ./lxsh-0.8.6-1.src.rock && cd lxsh-0.8.6-1/lxsh-0.8.6-1 && $luarocks make --deps-mode=none --pack-binary-rock && [ -e ./lxsh-0.8.6-1.all.rock ] && cd ../.. && rm -rf ./lxsh-0.8.6-1; } 172test_make_pack_binary_rock() { rm -rf ./lxsh-0.8.6-1 && $luarocks download --src lxsh 0.8.6-1 && $luarocks unpack ./lxsh-0.8.6-1.src.rock && cd lxsh-0.8.6-1/lxsh-0.8.6-1 && $luarocks make --deps-mode=none --pack-binary-rock && [ -e ./lxsh-0.8.6-1.all.rock ] && cd ../.. && rm -rf ./lxsh-0.8.6-1; }
172 173
173test_new_version() { $luarocks download --rockspec luacov 0.1 && $luarocks new_version ./luacov-0.1-1.rockspec 0.2 && rm ./luacov-0.*; } 174test_new_version() { $luarocks download --rockspec luacov $luacov_version && $luarocks new_version ./luacov-$luacov_version-1.rockspec 0.2 && rm ./luacov-0.*; }
174 175
175test_pack() { $luarocks list && $luarocks pack luacov && rm ./luacov-*.rock; } 176test_pack() { $luarocks list && $luarocks pack luacov && rm ./luacov-*.rock; }
176test_pack_src() { $luarocks download --rockspec luasocket && $luarocks pack ./luasocket-2.0.2-5.rockspec && rm ./luasocket-2.0.2-*.rock; } 177test_pack_src() { $luarocks download --rockspec luasocket && $luarocks pack ./luasocket-2.0.2-5.rockspec && rm ./luasocket-2.0.2-*.rock; }
@@ -180,7 +181,7 @@ test_path() { $luarocks path --bin; }
180fail_purge_missing_tree() { $luarocks purge --tree="$testing_tree"; } 181fail_purge_missing_tree() { $luarocks purge --tree="$testing_tree"; }
181test_purge() { $luarocks purge --tree="$testing_sys_tree"; } 182test_purge() { $luarocks purge --tree="$testing_sys_tree"; }
182 183
183test_remove() { $luarocks build luacov 0.1 && $luarocks remove luacov 0.1; } 184test_remove() { $luarocks build luacov $luacov_version && $luarocks remove luacov $luacov_version; }
184#fail_remove_deps() { $luarocks build luadoc && $luarocks remove luasocket; } 185#fail_remove_deps() { $luarocks build luadoc && $luarocks remove luasocket; }
185 186
186test_search_found() { $luarocks search zlib; } 187test_search_found() { $luarocks search zlib; }
@@ -189,7 +190,7 @@ test_search_missing() { $luarocks search missing_rock; }
189test_show() { $luarocks show luacov; } 190test_show() { $luarocks show luacov; }
190test_show_modules() { $luarocks show --modules luacov; } 191test_show_modules() { $luarocks show --modules luacov; }
191test_show_depends() { $luarocks install luasec && $luarocks show luasec; } 192test_show_depends() { $luarocks install luasec && $luarocks show luasec; }
192test_show_oldversion() { $luarocks install luacov 0.1 && $luarocks show luacov 0.1; } 193test_show_oldversion() { $luarocks install luacov $luacov_version && $luarocks show luacov $luacov_version; }
193 194
194test_unpack_download() { rm -rf ./luasocket-2.0.2-5 && $luarocks unpack luasocket && rm -rf ./luasocket-2.0.2-5; } 195test_unpack_download() { rm -rf ./luasocket-2.0.2-5 && $luarocks unpack luasocket && rm -rf ./luasocket-2.0.2-5; }
195test_unpack_src() { rm -rf ./luasocket-2.0.2-5 && $luarocks download --src luasocket && $luarocks unpack ./luasocket-2.0.2-5.src.rock && rm -rf ./luasocket-2.0.2-5; } 196test_unpack_src() { rm -rf ./luasocket-2.0.2-5 && $luarocks download --src luasocket && $luarocks unpack ./luasocket-2.0.2-5.src.rock && rm -rf ./luasocket-2.0.2-5; }