From 9ab998854f6d5fd5b7cf37200ef5b7413f4d1e91 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Mon, 12 Jan 2015 17:45:18 -0200 Subject: Add test that catches #228. --- test/testing.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test') diff --git a/test/testing.sh b/test/testing.sh index 3da17961..931cb62c 100755 --- a/test/testing.sh +++ b/test/testing.sh @@ -323,6 +323,8 @@ fail_unknown_command() { $luarocks unknown_command; } test_empty_list() { $luarocks list; } +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"; } + fail_build_noarg() { $luarocks build; } fail_download_noarg() { $luarocks download; } fail_install_noarg() { $luarocks install; } -- cgit v1.2.3-55-g6feb