aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rwxr-xr-xtest/testing.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/testing.sh b/test/testing.sh
index becaa14f..1c411a98 100755
--- a/test/testing.sh
+++ b/test/testing.sh
@@ -319,10 +319,14 @@ need_luasocket() { need luasocket $verrev_luasocket; }
319 319
320test_version() { $luarocks --version; } 320test_version() { $luarocks --version; }
321 321
322fail_arg_server() { $luarocks --server; }
323fail_arg_only_server() { $luarocks --only-server; }
324fail_unknown_command() { $luarocks unknown_command; } 322fail_unknown_command() { $luarocks unknown_command; }
325 323
324fail_arg_boolean_parameter() { $luarocks --porcelain=invalid; }
325fail_arg_boolean_unknown() { $luarocks --invalid-flag; }
326fail_arg_string_no_parameter() { $luarocks --server; }
327fail_arg_string_followed_by_flag() { $luarocks --server --porcelain; }
328fail_arg_string_unknown() { $luarocks --invalid-flag=abc; }
329
326test_empty_list() { $luarocks list; } 330test_empty_list() { $luarocks list; }
327 331
328fail_bad_sysconfig() { local err=0; local scdir="$testing_lrprefix/etc/luarocks/"; mkdir -p "$scdir"; local sysconfig="$scdir/config.lua"; echo "aoeui" > "$sysconfig"; echo $sysconfig; $luarocks list; err=$?; rm "$sysconfig"; return "$err"; } 332fail_bad_sysconfig() { local err=0; local scdir="$testing_lrprefix/etc/luarocks/"; mkdir -p "$scdir"; local sysconfig="$scdir/config.lua"; echo "aoeui" > "$sysconfig"; echo $sysconfig; $luarocks list; err=$?; rm "$sysconfig"; return "$err"; }