diff options
author | George Roman <george.roman.99@gmail.com> | 2018-07-19 13:11:11 +0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2018-07-22 22:53:37 -0300 |
commit | 098fe3c52f1d400301124f5084b1972d57fd62d7 (patch) | |
tree | b775cbb91c564c5135afeb1e8c731d2bfb771878 /spec/fixtures | |
parent | 66b2816a2fd193eaf09f916efb0231aa7184db8a (diff) | |
download | luarocks-098fe3c52f1d400301124f5084b1972d57fd62d7.tar.gz luarocks-098fe3c52f1d400301124f5084b1972d57fd62d7.tar.bz2 luarocks-098fe3c52f1d400301124f5084b1972d57fd62d7.zip |
Tests: use more fixtures in the build tests
Diffstat (limited to 'spec/fixtures')
-rw-r--r-- | spec/fixtures/with_dep-0.1-1.rockspec | 18 | ||||
-rw-r--r-- | spec/fixtures/with_dep.lua | 6 |
2 files changed, 0 insertions, 24 deletions
diff --git a/spec/fixtures/with_dep-0.1-1.rockspec b/spec/fixtures/with_dep-0.1-1.rockspec deleted file mode 100644 index 53b26c9d..00000000 --- a/spec/fixtures/with_dep-0.1-1.rockspec +++ /dev/null | |||
@@ -1,18 +0,0 @@ | |||
1 | package = "with_dep" | ||
2 | version = "0.1-1" | ||
3 | source = { | ||
4 | url = "http://localhost:8080/file/with_dep.lua" | ||
5 | } | ||
6 | description = { | ||
7 | summary = "An example rockspec", | ||
8 | } | ||
9 | dependencies = { | ||
10 | "lua >= 5.1", | ||
11 | "with_external_dep 0.1", | ||
12 | } | ||
13 | build = { | ||
14 | type = "builtin", | ||
15 | modules = { | ||
16 | with_dep = "with_dep.lua" | ||
17 | } | ||
18 | } | ||
diff --git a/spec/fixtures/with_dep.lua b/spec/fixtures/with_dep.lua deleted file mode 100644 index ad7e462a..00000000 --- a/spec/fixtures/with_dep.lua +++ /dev/null | |||
@@ -1,6 +0,0 @@ | |||
1 | local pok, with_external_dep = pcall(require, "with_external_dep") | ||
2 | if pok then | ||
3 | print(with_external_dep.foo) | ||
4 | else | ||
5 | print(100) | ||
6 | end | ||