diff options
Diffstat (limited to 'test')
-rwxr-xr-x | test/testing.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/testing.sh b/test/testing.sh index 292c6389..8d972d4c 100755 --- a/test/testing.sh +++ b/test/testing.sh | |||
@@ -497,6 +497,17 @@ fail_write_rockspec_args_url() { $luarocks write_rockspec http://example.com/inv | |||
497 | test_write_rockspec_http() { $luarocks write_rockspec http://luarocks.org/releases/luarocks-2.1.0.tar.gz --lua-version=5.1; } | 497 | test_write_rockspec_http() { $luarocks write_rockspec http://luarocks.org/releases/luarocks-2.1.0.tar.gz --lua-version=5.1; } |
498 | test_write_rockspec_basedir() { $luarocks write_rockspec https://github.com/downloads/Olivine-Labs/luassert/luassert-1.2.tar.gz --lua-version=5.1; } | 498 | test_write_rockspec_basedir() { $luarocks write_rockspec https://github.com/downloads/Olivine-Labs/luassert/luassert-1.2.tar.gz --lua-version=5.1; } |
499 | 499 | ||
500 | fail_config_noflags() { $luarocks config; } | ||
501 | test_config_lua_incdir() { $luarocks config --lua-incdir; } | ||
502 | test_config_lua_libdir() { $luarocks config --lua-libdir; } | ||
503 | test_config_lua_ver() { $luarocks config --lua-ver; } | ||
504 | fail_config_system_config() { rm -f "$testing_lrprefix/etc/luarocks/config.lua"; $luarocks config --system-config; } | ||
505 | test_config_system_config() { mkdir -p "$testing_lrprefix/etc/luarocks"; touch "$testing_lrprefix/etc/luarocks/config.lua"; $luarocks config --system-config; err=$?; rm -f "$testing_lrprefix/etc/luarocks/config.lua"; return $err; } | ||
506 | fail_config_system_config_invalid() { mkdir -p "$testing_lrprefix/etc/luarocks"; echo "if if if" > "$testing_lrprefix/etc/luarocks/config.lua"; $luarocks config --system-config; err=$?; rm -f "$testing_lrprefix/etc/luarocks/config.lua"; return $err; } | ||
507 | test_config_user_config() { $luarocks config --user-config; } | ||
508 | fail_config_user_config() { LUAROCKS_CONFIG="/missing_file.lua" $luarocks config --user-config; } | ||
509 | test_config_rock_trees() { $luarocks config --rock-trees; } | ||
510 | |||
500 | test_doc() { $luarocks install luarepl; $luarocks doc luarepl; } | 511 | test_doc() { $luarocks install luarepl; $luarocks doc luarepl; } |
501 | 512 | ||
502 | # Driver ######################################### | 513 | # Driver ######################################### |