From dbca97cdcc15e386554b2631a0ae7aca02500abf Mon Sep 17 00:00:00 2001 From: Hisham Date: Thu, 28 Jul 2016 18:24:44 -0300 Subject: Fix download in test --- spec/unpack_spec.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spec') diff --git a/spec/unpack_spec.lua b/spec/unpack_spec.lua index 495c514e..8db779c3 100644 --- a/spec/unpack_spec.lua +++ b/spec/unpack_spec.lua @@ -49,7 +49,7 @@ describe("LuaRocks unpack tests #blackbox #b_unpack", function() end) -- #595 luarocks unpack of a git:// rockspec fails to copy the rockspec it("LuaRocks unpack git:// rockspec", function() - assert.is_true(run.luarocks_bool("download --rockspec cprint")) + assert.is_true(run.luarocks_bool("download --rockspec luazip")) assert.is_true(run.luarocks_bool("unpack luazip-1.2.4-1.rockspec")) assert.is_truthy(lfs.attributes("luazip-1.2.4-1/luazip/luazip-1.2.4-1.rockspec")) test_env.remove_dir("luazip-1.2.4-1") -- cgit v1.2.3-55-g6feb From 1799cf40199bc27658fe28b3e6d35744162a65da Mon Sep 17 00:00:00 2001 From: Hisham Date: Fri, 14 Oct 2016 17:12:18 -0700 Subject: Add tests for new flags --- spec/show_spec.lua | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'spec') diff --git a/spec/show_spec.lua b/spec/show_spec.lua index b2cdc07e..b95ea818 100644 --- a/spec/show_spec.lua +++ b/spec/show_spec.lua @@ -49,6 +49,14 @@ describe("LuaRocks show tests #blackbox #b_show", function() it("LuaRocks show rock directory of luacov", function() local output = run.luarocks("show --rock-dir luacov") end) + + it("LuaRocks show issues URL of luacov", function() + local output = run.luarocks("show --issues luacov") + end) + + it("LuaRocks show labels of luacov", function() + local output = run.luarocks("show --labels luacov") + end) end) it("LuaRocks show old version of luacov", function() -- cgit v1.2.3-55-g6feb From e7b09524fbd9f2880621063dd4670d9f92cb3a4b Mon Sep 17 00:00:00 2001 From: Hisham Date: Sat, 15 Oct 2016 10:12:27 -0700 Subject: Add missing file in test repo --- spec/unpack_spec.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'spec') diff --git a/spec/unpack_spec.lua b/spec/unpack_spec.lua index a0fc370d..d629e225 100644 --- a/spec/unpack_spec.lua +++ b/spec/unpack_spec.lua @@ -6,7 +6,8 @@ test_env.unload_luarocks() local extra_rocks = { "/cprint-0.1-2.src.rock", - "/cprint-0.1-2.rockspec" + "/cprint-0.1-2.rockspec", + "/luazip-1.2.4-1.rockspec" } describe("LuaRocks unpack tests #blackbox #b_unpack", function() -- cgit v1.2.3-55-g6feb From db7814136e3ce45141d3582738dc36ad3596df2c Mon Sep 17 00:00:00 2001 From: Hisham Date: Sat, 29 Oct 2016 16:13:44 -0200 Subject: This doesn't produce an error, only a warning. --- spec/config_spec.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'spec') diff --git a/spec/config_spec.lua b/spec/config_spec.lua index 4a7f4aea..cdb5ccc4 100644 --- a/spec/config_spec.lua +++ b/spec/config_spec.lua @@ -57,7 +57,8 @@ describe("LuaRocks config tests #blackbox #b_config", function() end) it("LuaRocks config missing user config", function() - assert.is_false(run.luarocks_bool("config --user-config", {LUAROCKS_CONFIG = "missing_file.lua"})) + local output = run.luarocks("config --user-config", {LUAROCKS_CONFIG = "missing_file.lua"}) + assert.truthy(output:match("Warning")) end) end) -- cgit v1.2.3-55-g6feb From 19c7bbd53c1ef649bb5d0f0ba8ac7d583a72f18f Mon Sep 17 00:00:00 2001 From: Hisham Date: Thu, 1 Dec 2016 15:01:41 -0200 Subject: Avoid breaking test in release branches. --- spec/util_spec.lua | 4 ++-- src/luarocks/cmd/help.lua | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'spec') diff --git a/spec/util_spec.lua b/spec/util_spec.lua index 2779b1ce..988d8ef0 100644 --- a/spec/util_spec.lua +++ b/spec/util_spec.lua @@ -35,11 +35,11 @@ describe("Basic tests #blackbox #b_util", function() assert.is_true(os.remove(delete_path)) local output = run.luarocks("") - assert.is.falsy(output:find("LuaRocks scm, a module deployment system for Lua")) + assert.is.falsy(output:find("the Lua package manager")) assert.is_true(lfs.chdir(main_path)) output = run.luarocks("") - assert.is.truthy(output:find("LuaRocks scm, a module deployment system for Lua")) + assert.is.truthy(output:find("the Lua package manager")) end) it("LuaRocks timeout", function() diff --git a/src/luarocks/cmd/help.lua b/src/luarocks/cmd/help.lua index d27c3a50..f304a1d4 100644 --- a/src/luarocks/cmd/help.lua +++ b/src/luarocks/cmd/help.lua @@ -20,7 +20,7 @@ help.help = [[ ]] local function print_banner() - util.printout("\nLuaRocks "..cfg.program_version..", a module deployment system for Lua") + util.printout("\nLuaRocks "..cfg.program_version..", the Lua package manager") end local function print_section(section) -- cgit v1.2.3-55-g6feb