diff options
| author | Peter Melnichenko <mpeterval@gmail.com> | 2016-07-09 16:35:33 +0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-07-09 16:35:33 +0400 |
| commit | 8e55688c191827a9b2e9c499a95c888078979e8c (patch) | |
| tree | aeaf8c1886c949e8e357b59a04cebc3be3930bce /spec/build_spec.lua | |
| parent | 5af7e0d7c2dcf65e41ae8523f3771e9528be32a7 (diff) | |
| parent | a05ba7ce42ae4e42f80b5cacdd8770ae5e6cc04b (diff) | |
| download | luarocks-8e55688c191827a9b2e9c499a95c888078979e8c.tar.gz luarocks-8e55688c191827a9b2e9c499a95c888078979e8c.tar.bz2 luarocks-8e55688c191827a9b2e9c499a95c888078979e8c.zip | |
Merge pull request #583 from mpeterv/adjust-new-tests
Minor changes and fixes for new test suite
Diffstat (limited to 'spec/build_spec.lua')
| -rw-r--r-- | spec/build_spec.lua | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/spec/build_spec.lua b/spec/build_spec.lua index 6665de0b..1ce99089 100644 --- a/spec/build_spec.lua +++ b/spec/build_spec.lua | |||
| @@ -1,8 +1,9 @@ | |||
| 1 | local test_env = require("test/test_environment") | 1 | local test_env = require("test/test_environment") |
| 2 | local lfs = require("lfs") | 2 | local lfs = require("lfs") |
| 3 | local run = test_env.run | ||
| 4 | local testing_paths = test_env.testing_paths | ||
| 3 | 5 | ||
| 4 | test_env.unload_luarocks() | 6 | test_env.unload_luarocks() |
| 5 | local build = require("luarocks.build") | ||
| 6 | 7 | ||
| 7 | local extra_rocks = { | 8 | local extra_rocks = { |
| 8 | "/lmathx-20120430.51-1.src.rock", | 9 | "/lmathx-20120430.51-1.src.rock", |
| @@ -26,12 +27,10 @@ local extra_rocks = { | |||
| 26 | "/validate-args-1.5.4-1.rockspec" | 27 | "/validate-args-1.5.4-1.rockspec" |
| 27 | } | 28 | } |
| 28 | 29 | ||
| 29 | expose("LuaRocks build tests #blackbox #b_build", function() | 30 | describe("LuaRocks build tests #blackbox #b_build", function() |
| 30 | 31 | ||
| 31 | before_each(function() | 32 | before_each(function() |
| 32 | test_env.setup_specs(extra_rocks) | 33 | test_env.setup_specs(extra_rocks) |
| 33 | testing_paths = test_env.testing_paths | ||
| 34 | run = test_env.run | ||
| 35 | end) | 34 | end) |
| 36 | 35 | ||
| 37 | describe("LuaRocks build - basic testing set", function() | 36 | describe("LuaRocks build - basic testing set", function() |
