From dbf0183f96093ca155e769b1de34d5226871ee7b Mon Sep 17 00:00:00 2001 From: bhattigurjot Date: Mon, 21 Mar 2016 00:17:20 +0530 Subject: Add tests for command_line --- test/testing.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test') diff --git a/test/testing.sh b/test/testing.sh index 597b4094..901b5f4b 100755 --- a/test/testing.sh +++ b/test/testing.sh @@ -376,6 +376,8 @@ fail_build_permissions() { $luarocks build --tree=/usr lpeg; } fail_build_permissions_parent() { $luarocks build --tree=/usr/invalid lpeg; } test_build_verbose() { $luarocks build --verbose lpeg; } +test_build_timeout() { $luarocks --timeout=10; } +fail_build_timeout() { $luarocks --timeout=abc; } fail_build_blank_arg() { $luarocks build --tree="" lpeg; } test_build_withpatch() { need_luasocket; $luarocks build luadoc; } test_build_diffversion() { $luarocks build luacov ${version_luacov}; } -- cgit v1.2.3-55-g6feb From c6c83a69e39db4036c60bd2f260fd37deefa0ff0 Mon Sep 17 00:00:00 2001 From: bhattigurjot Date: Mon, 21 Mar 2016 01:05:59 +0530 Subject: Add few more tests for command_line --- test/testing.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/testing.sh b/test/testing.sh index 901b5f4b..5965ac8f 100755 --- a/test/testing.sh +++ b/test/testing.sh @@ -377,7 +377,11 @@ fail_build_permissions_parent() { $luarocks build --tree=/usr/invalid lpeg; } test_build_verbose() { $luarocks build --verbose lpeg; } test_build_timeout() { $luarocks --timeout=10; } -fail_build_timeout() { $luarocks --timeout=abc; } +fail_build_timeout_invalid() { $luarocks --timeout=abc; } +test_build_branch() { $luarocks build --branch=master lpeg; } +fail_build_invalid_entry_deps_mode() { $luarocks build --deps-mode=123 lpeg; } +test_build_only_server() { $luarocks --only-server=testing; } +test_build_only_sources() { $luarocks build --only-sources="http://example.com" lpeg; } fail_build_blank_arg() { $luarocks build --tree="" lpeg; } test_build_withpatch() { need_luasocket; $luarocks build luadoc; } test_build_diffversion() { $luarocks build luacov ${version_luacov}; } -- cgit v1.2.3-55-g6feb