From 4ac36ce3bc97d476e3f8d2a524099c38b5a0ab75 Mon Sep 17 00:00:00 2001 From: roboo Date: Tue, 17 May 2016 00:27:27 +0200 Subject: Added tests for new install functionality --- test/testing.lua | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) (limited to 'test/testing.lua') diff --git a/test/testing.lua b/test/testing.lua index c37293ee..1a837484 100644 --- a/test/testing.lua +++ b/test/testing.lua @@ -459,6 +459,25 @@ local tests = { and assert("lua-compat-5.2" == fetch.url_to_base_dir("https://github.com/hishamhm/lua-compat-5.2.tar.bz2")) and assert("parser.moon" == fetch.url_to_base_dir("git://github.com/Cirru/parser.moon")) and assert("v0.3" == fetch.url_to_base_dir("https://github.com/hishamhm/lua-compat-5.2/archive/v0.3")) + end, + + -- Tests for https://github.com/keplerproject/luarocks/issues/552 + test_install_break_dependencies_warning = function() + need_luasocket() + return run "$luarocks install say ${new_version_say}" + and run "$luarocks install luassert" + and run "$luarocks install say ${old_version_say}" + end, + test_install_break_dependencies_force = function() + need_luasocket() + return run "$luarocks install say ${new_version_say}" + and run "$luarocks install luassert" + and run "$luarocks install --force say ${old_version_say}" + end, + test_install_break_dependencies_force = function() + need_luasocket() + return run "$luarocks install say ${new_version_say}" + and run "$luarocks install luassert" + and run "$luarocks install --force-fast say ${old_version_say}" end - } -- cgit v1.2.3-55-g6feb