aboutsummaryrefslogtreecommitdiff
path: root/test/testing.lua
diff options
context:
space:
mode:
authorHisham <hisham@gobolinux.org>2016-05-25 01:24:58 -0300
committerHisham <hisham@gobolinux.org>2016-05-25 01:24:58 -0300
commit4c12525d1f52bccc71c2a3054d3db328a0577179 (patch)
tree899bca39ac9f2692419a0271306d2f326917e0d7 /test/testing.lua
parent6217339cd4ba6d7ee7f08aa86443032ede033752 (diff)
parenta3650d51e96aef84657cb29e5f52e570fed828c9 (diff)
downloadluarocks-4c12525d1f52bccc71c2a3054d3db328a0577179.tar.gz
luarocks-4c12525d1f52bccc71c2a3054d3db328a0577179.tar.bz2
luarocks-4c12525d1f52bccc71c2a3054d3db328a0577179.zip
Merge branch 'master' of https://github.com/keplerproject/luarocks
Diffstat (limited to 'test/testing.lua')
-rw-r--r--test/testing.lua21
1 files changed, 20 insertions, 1 deletions
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 = {
459 and assert("lua-compat-5.2" == fetch.url_to_base_dir("https://github.com/hishamhm/lua-compat-5.2.tar.bz2")) 459 and assert("lua-compat-5.2" == fetch.url_to_base_dir("https://github.com/hishamhm/lua-compat-5.2.tar.bz2"))
460 and assert("parser.moon" == fetch.url_to_base_dir("git://github.com/Cirru/parser.moon")) 460 and assert("parser.moon" == fetch.url_to_base_dir("git://github.com/Cirru/parser.moon"))
461 and assert("v0.3" == fetch.url_to_base_dir("https://github.com/hishamhm/lua-compat-5.2/archive/v0.3")) 461 and assert("v0.3" == fetch.url_to_base_dir("https://github.com/hishamhm/lua-compat-5.2/archive/v0.3"))
462 end,
463
464 -- Tests for https://github.com/keplerproject/luarocks/issues/552
465 test_install_break_dependencies_warning = function()
466 need_luasocket()
467 return run "$luarocks install say ${new_version_say}"
468 and run "$luarocks install luassert"
469 and run "$luarocks install say ${old_version_say}"
470 end,
471 test_install_break_dependencies_force = function()
472 need_luasocket()
473 return run "$luarocks install say ${new_version_say}"
474 and run "$luarocks install luassert"
475 and run "$luarocks install --force say ${old_version_say}"
476 end,
477 test_install_break_dependencies_force = function()
478 need_luasocket()
479 return run "$luarocks install say ${new_version_say}"
480 and run "$luarocks install luassert"
481 and run "$luarocks install --force-fast say ${old_version_say}"
462 end 482 end
463
464} 483}