aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2016-03-19 23:29:51 -0300
committerHisham Muhammad <hisham@gobolinux.org>2016-03-19 23:29:51 -0300
commite124b8dd7c41940a266eb87e1e66d5fa7f90cf55 (patch)
tree5eeaeae7012ea127b4cc216b39c44817bf4efd38 /test
parentca60d34cf161e778bd4df7d79cda6df479df20ca (diff)
parentef5636197afb2858f5a2b8738936367b826395b2 (diff)
downloadluarocks-e124b8dd7c41940a266eb87e1e66d5fa7f90cf55.tar.gz
luarocks-e124b8dd7c41940a266eb87e1e66d5fa7f90cf55.tar.bz2
luarocks-e124b8dd7c41940a266eb87e1e66d5fa7f90cf55.zip
Merge pull request #523 from bhattigurjot/master
Add tests to current test suite
Diffstat (limited to 'test')
-rwxr-xr-xtest/testing.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/testing.sh b/test/testing.sh
index 4be71fa6..f29a9cc6 100755
--- a/test/testing.sh
+++ b/test/testing.sh
@@ -450,6 +450,9 @@ fail_remove_invalid_name() { $luarocks remove invalid.rock; }
450 450
451test_search_found() { $luarocks search zlib; } 451test_search_found() { $luarocks search zlib; }
452test_search_missing() { $luarocks search missing_rock; } 452test_search_missing() { $luarocks search missing_rock; }
453test_search_version() { $luarocks search zlib 1.1; }
454test_search_all() { $luarocks search --all; }
455fail_search_nostring() { $var=123; $luarocks search $var; }
453 456
454test_show() { $luarocks show luacov; } 457test_show() { $luarocks show luacov; }
455test_show_modules() { $luarocks show --modules luacov; } 458test_show_modules() { $luarocks show --modules luacov; }
@@ -478,6 +481,7 @@ fail_admin_invalidrock() { $luarocks_admin --server=testing add invalid; }
478test_admin_refresh_cache() { $luarocks_admin --server=testing refresh_cache; } 481test_admin_refresh_cache() { $luarocks_admin --server=testing refresh_cache; }
479test_admin_remove() { $luarocks_admin --server=testing remove luasocket-${verrev_luasocket}.src.rock; } 482test_admin_remove() { $luarocks_admin --server=testing remove luasocket-${verrev_luasocket}.src.rock; }
480fail_admin_remove_missing() { $luarocks_admin --server=testing remove; } 483fail_admin_remove_missing() { $luarocks_admin --server=testing remove; }
484fail_admin_split_server_url() { $luarocks_admin --server="localhost@/tmp/luarocks_testing" add "$testing_server/luasocket-${verrev_luasocket}.src.rock"; }
481 485
482fail_deps_mode_invalid_arg() { $luarocks remove luacov --deps-mode; } 486fail_deps_mode_invalid_arg() { $luarocks remove luacov --deps-mode; }
483test_deps_mode_one() { $luarocks build --tree="system" lpeg && $luarocks list && $luarocks build --deps-mode=one --tree="$testing_tree" lxsh && [ `$luarocks_noecho list --tree="$testing_tree" --porcelain lpeg | wc -l` = 1 ]; } 487test_deps_mode_one() { $luarocks build --tree="system" lpeg && $luarocks list && $luarocks build --deps-mode=one --tree="$testing_tree" lxsh && [ `$luarocks_noecho list --tree="$testing_tree" --porcelain lpeg | wc -l` = 1 ]; }