aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--spec/fixtures/an_upstream_tarball-0.1.tar.gzbin0 -> 260 bytes
-rw-r--r--spec/fixtures/renamed_upstream_tarball-0.1.tar.gzbin0 -> 260 bytes
-rw-r--r--spec/fixtures/with_dep-0.1-1.rockspec18
-rw-r--r--spec/fixtures/with_dep.lua6
4 files changed, 24 insertions, 0 deletions
diff --git a/spec/fixtures/an_upstream_tarball-0.1.tar.gz b/spec/fixtures/an_upstream_tarball-0.1.tar.gz
new file mode 100644
index 00000000..518c8cb8
--- /dev/null
+++ b/spec/fixtures/an_upstream_tarball-0.1.tar.gz
Binary files differ
diff --git a/spec/fixtures/renamed_upstream_tarball-0.1.tar.gz b/spec/fixtures/renamed_upstream_tarball-0.1.tar.gz
new file mode 100644
index 00000000..518c8cb8
--- /dev/null
+++ b/spec/fixtures/renamed_upstream_tarball-0.1.tar.gz
Binary files differ
diff --git a/spec/fixtures/with_dep-0.1-1.rockspec b/spec/fixtures/with_dep-0.1-1.rockspec
new file mode 100644
index 00000000..53b26c9d
--- /dev/null
+++ b/spec/fixtures/with_dep-0.1-1.rockspec
@@ -0,0 +1,18 @@
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
new file mode 100644
index 00000000..ad7e462a
--- /dev/null
+++ b/spec/fixtures/with_dep.lua
@@ -0,0 +1,6 @@
1local pok, with_external_dep = pcall(require, "with_external_dep")
2if pok then
3 print(with_external_dep.foo)
4else
5 print(100)
6end