diff options
Diffstat (limited to 'test')
-rwxr-xr-x | test/testing.sh | 8 |
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 | ||
320 | test_version() { $luarocks --version; } | 320 | test_version() { $luarocks --version; } |
321 | 321 | ||
322 | fail_arg_server() { $luarocks --server; } | ||
323 | fail_arg_only_server() { $luarocks --only-server; } | ||
324 | fail_unknown_command() { $luarocks unknown_command; } | 322 | fail_unknown_command() { $luarocks unknown_command; } |
325 | 323 | ||
324 | fail_arg_boolean_parameter() { $luarocks --porcelain=invalid; } | ||
325 | fail_arg_boolean_unknown() { $luarocks --invalid-flag; } | ||
326 | fail_arg_string_no_parameter() { $luarocks --server; } | ||
327 | fail_arg_string_followed_by_flag() { $luarocks --server --porcelain; } | ||
328 | fail_arg_string_unknown() { $luarocks --invalid-flag=abc; } | ||
329 | |||
326 | test_empty_list() { $luarocks list; } | 330 | test_empty_list() { $luarocks list; } |
327 | 331 | ||
328 | fail_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"; } | 332 | fail_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"; } |