diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2015-01-12 17:45:18 -0200 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2015-01-12 17:45:18 -0200 |
commit | 9ab998854f6d5fd5b7cf37200ef5b7413f4d1e91 (patch) | |
tree | 61b965716630d73ecf02d6704f6626bd428ccc97 | |
parent | 0ebdcd4c7ecd4487a786537be1283774c0e5509e (diff) | |
download | luarocks-9ab998854f6d5fd5b7cf37200ef5b7413f4d1e91.tar.gz luarocks-9ab998854f6d5fd5b7cf37200ef5b7413f4d1e91.tar.bz2 luarocks-9ab998854f6d5fd5b7cf37200ef5b7413f4d1e91.zip |
Add test that catches #228.
-rwxr-xr-x | test/testing.sh | 2 |
1 files changed, 2 insertions, 0 deletions
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; } | |||
323 | 323 | ||
324 | test_empty_list() { $luarocks list; } | 324 | test_empty_list() { $luarocks list; } |
325 | 325 | ||
326 | 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"; } | ||
327 | |||
326 | fail_build_noarg() { $luarocks build; } | 328 | fail_build_noarg() { $luarocks build; } |
327 | fail_download_noarg() { $luarocks download; } | 329 | fail_download_noarg() { $luarocks download; } |
328 | fail_install_noarg() { $luarocks install; } | 330 | fail_install_noarg() { $luarocks install; } |