aboutsummaryrefslogtreecommitdiff
path: root/spec/fixtures
diff options
context:
space:
mode:
authorGeorge Roman <george.roman.99@gmail.com>2018-07-19 13:11:11 +0300
committerHisham Muhammad <hisham@gobolinux.org>2018-07-22 22:53:37 -0300
commit098fe3c52f1d400301124f5084b1972d57fd62d7 (patch)
treeb775cbb91c564c5135afeb1e8c731d2bfb771878 /spec/fixtures
parent66b2816a2fd193eaf09f916efb0231aa7184db8a (diff)
downloadluarocks-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.rockspec18
-rw-r--r--spec/fixtures/with_dep.lua6
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 @@
1package = "with_dep"
2version = "0.1-1"
3source = {
4 url = "http://localhost:8080/file/with_dep.lua"
5}
6description = {
7 summary = "An example rockspec",
8}
9dependencies = {
10 "lua >= 5.1",
11 "with_external_dep 0.1",
12}
13build = {
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 @@
1local pok, with_external_dep = pcall(require, "with_external_dep")
2if pok then
3 print(with_external_dep.foo)
4else
5 print(100)
6end