diff options
Diffstat (limited to 'spec/test_spec.lua')
| -rw-r--r-- | spec/test_spec.lua | 21 |
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 |
