diff options
| author | Hisham Muhammad <hisham@gobolinux.org> | 2014-01-29 20:45:37 -0200 |
|---|---|---|
| committer | Hisham Muhammad <hisham@gobolinux.org> | 2014-01-29 20:45:37 -0200 |
| commit | 735f794629ca8da96ba09a2d7ed789169bec9cf3 (patch) | |
| tree | 94d57ad03e4da9ba373505c923ef65829961e28b /test | |
| parent | 981a8c95f4511d51afa55352901185a313a0597c (diff) | |
| download | luarocks-735f794629ca8da96ba09a2d7ed789169bec9cf3.tar.gz luarocks-735f794629ca8da96ba09a2d7ed789169bec9cf3.tar.bz2 luarocks-735f794629ca8da96ba09a2d7ed789169bec9cf3.zip | |
Add more tests.
Diffstat (limited to 'test')
| -rwxr-xr-x | test/testing.sh | 8 |
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; } | |||
| 307 | fail_search_noarg() { $luarocks search; } | 307 | fail_search_noarg() { $luarocks search; } |
| 308 | fail_show_noarg() { $luarocks show; } | 308 | fail_show_noarg() { $luarocks show; } |
| 309 | fail_unpack_noarg() { $luarocks unpack; } | 309 | fail_unpack_noarg() { $luarocks unpack; } |
| 310 | fail_remove_noarg() { $luarocks remove; } | ||
| 311 | fail_doc_noarg() { $luarocks doc; } | ||
| 310 | fail_new_version_noarg() { $luarocks new_version; } | 312 | fail_new_version_noarg() { $luarocks new_version; } |
| 311 | fail_write_rockspec_noarg() { $luarocks write_rockspec; } | 313 | fail_write_rockspec_noarg() { $luarocks write_rockspec; } |
| 312 | 314 | ||
| @@ -368,7 +370,9 @@ fail_purge_missing_tree() { $luarocks purge --tree="$testing_tree"; } | |||
| 368 | test_purge() { $luarocks purge --tree="$testing_sys_tree"; } | 370 | test_purge() { $luarocks purge --tree="$testing_sys_tree"; } |
| 369 | 371 | ||
| 370 | test_remove() { $luarocks build luacov ${version_luacov} && $luarocks remove luacov ${version_luacov}; } | 372 | test_remove() { $luarocks build luacov ${version_luacov} && $luarocks remove luacov ${version_luacov}; } |
| 371 | #fail_remove_deps() { $luarocks build luadoc && $luarocks remove luasocket; } | 373 | test_remove_force() { need_luasocket; $luarocks build lualogging && $luarocks remove --force luasocket; } |
| 374 | fail_remove_deps() { need_luasocket; $luarocks build lualogging && $luarocks remove luasocket; } | ||
| 375 | fail_remove_invalid_name() { $luarocks remove invalid.rock; } | ||
| 372 | 376 | ||
| 373 | test_search_found() { $luarocks search zlib; } | 377 | test_search_found() { $luarocks search zlib; } |
| 374 | test_search_missing() { $luarocks search missing_rock; } | 378 | test_search_missing() { $luarocks search missing_rock; } |
| @@ -413,6 +417,8 @@ fail_write_rockspec_args_url() { $luarocks write_rockspec http://example.com/inv | |||
| 413 | test_write_rockspec_http() { $luarocks write_rockspec http://luarocks.org/releases/luarocks-2.1.0.tar.gz --lua-version=5.1; } | 417 | test_write_rockspec_http() { $luarocks write_rockspec http://luarocks.org/releases/luarocks-2.1.0.tar.gz --lua-version=5.1; } |
| 414 | test_write_rockspec_basedir() { $luarocks write_rockspec https://github.com/downloads/Olivine-Labs/luassert/luassert-1.2.tar.gz --lua-version=5.1; } | 418 | test_write_rockspec_basedir() { $luarocks write_rockspec https://github.com/downloads/Olivine-Labs/luassert/luassert-1.2.tar.gz --lua-version=5.1; } |
| 415 | 419 | ||
| 420 | test_doc() { $luarocks install luarepl; $luarocks doc luarepl; } | ||
| 421 | |||
| 416 | # Driver ######################################### | 422 | # Driver ######################################### |
| 417 | 423 | ||
| 418 | run_tests() { | 424 | run_tests() { |
