aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2014-01-29 20:45:37 -0200
committerHisham Muhammad <hisham@gobolinux.org>2014-01-29 20:45:37 -0200
commit735f794629ca8da96ba09a2d7ed789169bec9cf3 (patch)
tree94d57ad03e4da9ba373505c923ef65829961e28b /test
parent981a8c95f4511d51afa55352901185a313a0597c (diff)
downloadluarocks-735f794629ca8da96ba09a2d7ed789169bec9cf3.tar.gz
luarocks-735f794629ca8da96ba09a2d7ed789169bec9cf3.tar.bz2
luarocks-735f794629ca8da96ba09a2d7ed789169bec9cf3.zip
Add more tests.
Diffstat (limited to 'test')
-rwxr-xr-xtest/testing.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/testing.sh b/test/testing.sh
index 3a199883..a0bfeeca 100755
--- a/test/testing.sh
+++ b/test/testing.sh
@@ -307,6 +307,8 @@ fail_lint_noarg() { $luarocks lint; }
307fail_search_noarg() { $luarocks search; } 307fail_search_noarg() { $luarocks search; }
308fail_show_noarg() { $luarocks show; } 308fail_show_noarg() { $luarocks show; }
309fail_unpack_noarg() { $luarocks unpack; } 309fail_unpack_noarg() { $luarocks unpack; }
310fail_remove_noarg() { $luarocks remove; }
311fail_doc_noarg() { $luarocks doc; }
310fail_new_version_noarg() { $luarocks new_version; } 312fail_new_version_noarg() { $luarocks new_version; }
311fail_write_rockspec_noarg() { $luarocks write_rockspec; } 313fail_write_rockspec_noarg() { $luarocks write_rockspec; }
312 314
@@ -368,7 +370,9 @@ fail_purge_missing_tree() { $luarocks purge --tree="$testing_tree"; }
368test_purge() { $luarocks purge --tree="$testing_sys_tree"; } 370test_purge() { $luarocks purge --tree="$testing_sys_tree"; }
369 371
370test_remove() { $luarocks build luacov ${version_luacov} && $luarocks remove luacov ${version_luacov}; } 372test_remove() { $luarocks build luacov ${version_luacov} && $luarocks remove luacov ${version_luacov}; }
371#fail_remove_deps() { $luarocks build luadoc && $luarocks remove luasocket; } 373test_remove_force() { need_luasocket; $luarocks build lualogging && $luarocks remove --force luasocket; }
374fail_remove_deps() { need_luasocket; $luarocks build lualogging && $luarocks remove luasocket; }
375fail_remove_invalid_name() { $luarocks remove invalid.rock; }
372 376
373test_search_found() { $luarocks search zlib; } 377test_search_found() { $luarocks search zlib; }
374test_search_missing() { $luarocks search missing_rock; } 378test_search_missing() { $luarocks search missing_rock; }
@@ -413,6 +417,8 @@ fail_write_rockspec_args_url() { $luarocks write_rockspec http://example.com/inv
413test_write_rockspec_http() { $luarocks write_rockspec http://luarocks.org/releases/luarocks-2.1.0.tar.gz --lua-version=5.1; } 417test_write_rockspec_http() { $luarocks write_rockspec http://luarocks.org/releases/luarocks-2.1.0.tar.gz --lua-version=5.1; }
414test_write_rockspec_basedir() { $luarocks write_rockspec https://github.com/downloads/Olivine-Labs/luassert/luassert-1.2.tar.gz --lua-version=5.1; } 418test_write_rockspec_basedir() { $luarocks write_rockspec https://github.com/downloads/Olivine-Labs/luassert/luassert-1.2.tar.gz --lua-version=5.1; }
415 419
420test_doc() { $luarocks install luarepl; $luarocks doc luarepl; }
421
416# Driver ######################################### 422# Driver #########################################
417 423
418run_tests() { 424run_tests() {