aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2018-05-28 16:37:47 -0300
committerHisham Muhammad <hisham@gobolinux.org>2018-05-28 20:15:26 -0300
commit5b496c39e051f0ed77c1969580a91e733ec3f6a8 (patch)
tree36bd21ef081182d600b227ab92487f669c4eaa57
parent0e8089c20e43e92e9351a71e92396b83faf23632 (diff)
downloadluarocks-5b496c39e051f0ed77c1969580a91e733ec3f6a8.tar.gz
luarocks-5b496c39e051f0ed77c1969580a91e733ec3f6a8.tar.bz2
luarocks-5b496c39e051f0ed77c1969580a91e733ec3f6a8.zip
Tests: try to cache rocks from the host system to speed up test
-rw-r--r--spec/test_spec.lua21
1 files changed, 21 insertions, 0 deletions
diff --git a/spec/test_spec.lua b/spec/test_spec.lua
index a2e1989d..81dc5318 100644
--- a/spec/test_spec.lua
+++ b/spec/test_spec.lua
@@ -35,6 +35,27 @@ describe("luarocks test #blackbox #b_test", function()
35 end) 35 end)
36 36
37 describe("busted backend", function() 37 describe("busted backend", function()
38
39 setup(function()
40 -- Try to cache rocks from the host system to speed up test
41 os.execute("luarocks pack busted")
42 os.execute("luarocks pack lua_cliargs")
43 os.execute("luarocks pack luafilesystem")
44 os.execute("luarocks pack dkjson")
45 os.execute("luarocks pack luasystem")
46 os.execute("luarocks pack say")
47 os.execute("luarocks pack luassert")
48 os.execute("luarocks pack lua-term")
49 os.execute("luarocks pack penlight")
50 os.execute("luarocks pack mediator_lua")
51 if test_env.TEST_TARGET_OS == "windows" then
52 os.execute("move *.rock " .. testing_paths.testing_server)
53 else
54 os.execute("mv *.rock " .. testing_paths.testing_server)
55 end
56 test_env.run.luarocks_admin_nocov("make_manifest " .. testing_paths.testing_server)
57 end)
58
38 it("with rockspec, installing busted", function() 59 it("with rockspec, installing busted", function()
39 finally(function() 60 finally(function()
40 -- delete downloaded and unpacked files 61 -- delete downloaded and unpacked files