diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2013-08-28 20:34:01 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2013-08-28 20:34:01 -0300 |
commit | a4f62cb9245a8bf5ef6c7dcbca9dbcc997cca485 (patch) | |
tree | 5b3c6fde29e288d19b6f7fd4efb8b5a0f3a96861 /test | |
parent | c4805428af0e5862bf340c5010f41ae04fed1ae4 (diff) | |
download | luarocks-a4f62cb9245a8bf5ef6c7dcbca9dbcc997cca485.tar.gz luarocks-a4f62cb9245a8bf5ef6c7dcbca9dbcc997cca485.tar.bz2 luarocks-a4f62cb9245a8bf5ef6c7dcbca9dbcc997cca485.zip |
minor updates to the testing.sh script
Diffstat (limited to 'test')
-rwxr-xr-x | test/testing.sh | 9 |
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 | ||
89 | echo $LUA_PATH | 89 | echo $LUA_PATH |
90 | 90 | ||
91 | luacov_version=0.3 | ||
91 | luarocks_nocov="$lua $PWD/bin/luarocks" | 92 | luarocks_nocov="$lua $PWD/bin/luarocks" |
92 | luarocks="$lua -erequire('luacov.runner')('$testing_dir/luacov.config') $PWD/bin/luarocks" | 93 | luarocks="$lua -erequire('luacov.runner')('$testing_dir/luacov.config') $PWD/bin/luarocks" |
93 | luarocks_admin="$lua -erequire('luacov.runner')('$testing_dir/luacov.config') $PWD/bin/luarocks-admin" | 94 | luarocks_admin="$lua -erequire('luacov.runner')('$testing_dir/luacov.config') $PWD/bin/luarocks-admin" |
@@ -147,7 +148,7 @@ fail_make_norockspec() { $luarocks make; } | |||
147 | 148 | ||
148 | fail_build_blank_arg() { $luarocks build --tree="" lpeg; } | 149 | fail_build_blank_arg() { $luarocks build --tree="" lpeg; } |
149 | test_build_withpatch() { $luarocks build luadoc; } | 150 | test_build_withpatch() { $luarocks build luadoc; } |
150 | test_build_diffversion() { $luarocks build luacov 0.1; } | 151 | test_build_diffversion() { $luarocks build luacov $luacov_version; } |
151 | test_build_command() { $luarocks build stdlib; } | 152 | test_build_command() { $luarocks build stdlib; } |
152 | test_build_install_bin() { $luarocks build luarepl; } | 153 | test_build_install_bin() { $luarocks build luarepl; } |
153 | fail_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; } | 154 | fail_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; } | |||
170 | test_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; } | 171 | test_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; } |
171 | test_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 | test_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 | ||
173 | test_new_version() { $luarocks download --rockspec luacov 0.1 && $luarocks new_version ./luacov-0.1-1.rockspec 0.2 && rm ./luacov-0.*; } | 174 | test_new_version() { $luarocks download --rockspec luacov $luacov_version && $luarocks new_version ./luacov-$luacov_version-1.rockspec 0.2 && rm ./luacov-0.*; } |
174 | 175 | ||
175 | test_pack() { $luarocks list && $luarocks pack luacov && rm ./luacov-*.rock; } | 176 | test_pack() { $luarocks list && $luarocks pack luacov && rm ./luacov-*.rock; } |
176 | test_pack_src() { $luarocks download --rockspec luasocket && $luarocks pack ./luasocket-2.0.2-5.rockspec && rm ./luasocket-2.0.2-*.rock; } | 177 | test_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; } | |||
180 | fail_purge_missing_tree() { $luarocks purge --tree="$testing_tree"; } | 181 | fail_purge_missing_tree() { $luarocks purge --tree="$testing_tree"; } |
181 | test_purge() { $luarocks purge --tree="$testing_sys_tree"; } | 182 | test_purge() { $luarocks purge --tree="$testing_sys_tree"; } |
182 | 183 | ||
183 | test_remove() { $luarocks build luacov 0.1 && $luarocks remove luacov 0.1; } | 184 | test_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 | ||
186 | test_search_found() { $luarocks search zlib; } | 187 | test_search_found() { $luarocks search zlib; } |
@@ -189,7 +190,7 @@ test_search_missing() { $luarocks search missing_rock; } | |||
189 | test_show() { $luarocks show luacov; } | 190 | test_show() { $luarocks show luacov; } |
190 | test_show_modules() { $luarocks show --modules luacov; } | 191 | test_show_modules() { $luarocks show --modules luacov; } |
191 | test_show_depends() { $luarocks install luasec && $luarocks show luasec; } | 192 | test_show_depends() { $luarocks install luasec && $luarocks show luasec; } |
192 | test_show_oldversion() { $luarocks install luacov 0.1 && $luarocks show luacov 0.1; } | 193 | test_show_oldversion() { $luarocks install luacov $luacov_version && $luarocks show luacov $luacov_version; } |
193 | 194 | ||
194 | test_unpack_download() { rm -rf ./luasocket-2.0.2-5 && $luarocks unpack luasocket && rm -rf ./luasocket-2.0.2-5; } | 195 | test_unpack_download() { rm -rf ./luasocket-2.0.2-5 && $luarocks unpack luasocket && rm -rf ./luasocket-2.0.2-5; } |
195 | test_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; } | 196 | test_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; } |