aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rwxr-xr-xtest/testing.sh11
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
497test_write_rockspec_http() { $luarocks write_rockspec http://luarocks.org/releases/luarocks-2.1.0.tar.gz --lua-version=5.1; } 497test_write_rockspec_http() { $luarocks write_rockspec http://luarocks.org/releases/luarocks-2.1.0.tar.gz --lua-version=5.1; }
498test_write_rockspec_basedir() { $luarocks write_rockspec https://github.com/downloads/Olivine-Labs/luassert/luassert-1.2.tar.gz --lua-version=5.1; } 498test_write_rockspec_basedir() { $luarocks write_rockspec https://github.com/downloads/Olivine-Labs/luassert/luassert-1.2.tar.gz --lua-version=5.1; }
499 499
500fail_config_noflags() { $luarocks config; }
501test_config_lua_incdir() { $luarocks config --lua-incdir; }
502test_config_lua_libdir() { $luarocks config --lua-libdir; }
503test_config_lua_ver() { $luarocks config --lua-ver; }
504fail_config_system_config() { rm -f "$testing_lrprefix/etc/luarocks/config.lua"; $luarocks config --system-config; }
505test_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; }
506fail_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; }
507test_config_user_config() { $luarocks config --user-config; }
508fail_config_user_config() { LUAROCKS_CONFIG="/missing_file.lua" $luarocks config --user-config; }
509test_config_rock_trees() { $luarocks config --rock-trees; }
510
500test_doc() { $luarocks install luarepl; $luarocks doc luarepl; } 511test_doc() { $luarocks install luarepl; $luarocks doc luarepl; }
501 512
502# Driver ######################################### 513# Driver #########################################