aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2015-05-18 14:35:19 -0300
committerHisham Muhammad <hisham@gobolinux.org>2015-05-18 14:35:19 -0300
commit4462ca51ee10363916c29c071942c15f424913e6 (patch)
tree8b7617b3be89e413ab92208dea0ae33132153617 /test
parentb80244b566780c8095a75b06fe7669b1b0bcd7c0 (diff)
downloadluarocks-4462ca51ee10363916c29c071942c15f424913e6.tar.gz
luarocks-4462ca51ee10363916c29c071942c15f424913e6.tar.bz2
luarocks-4462ca51ee10363916c29c071942c15f424913e6.zip
Add `luarocks config` command for querying LuaRocks settings.
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 #########################################