aboutsummaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2018-04-02 13:11:33 -0300
committerHisham Muhammad <hisham@gobolinux.org>2018-04-02 13:11:33 -0300
commit433e9cab5808d734ce63a5a5c5898bfc112d292e (patch)
tree6777191d1c7896c8eaed0713f6833d06fb93a73c /spec
parent97bee65c4a8575f3756d85d6db9748a390ee864b (diff)
downloadluarocks-433e9cab5808d734ce63a5a5c5898bfc112d292e.tar.gz
luarocks-433e9cab5808d734ce63a5a5c5898bfc112d292e.tar.bz2
luarocks-433e9cab5808d734ce63a5a5c5898bfc112d292e.zip
Tests: add missing fixtures
Diffstat (limited to 'spec')
-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