diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2018-04-02 13:11:33 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2018-04-02 13:11:33 -0300 |
commit | 433e9cab5808d734ce63a5a5c5898bfc112d292e (patch) | |
tree | 6777191d1c7896c8eaed0713f6833d06fb93a73c /spec | |
parent | 97bee65c4a8575f3756d85d6db9748a390ee864b (diff) | |
download | luarocks-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.gz | bin | 0 -> 260 bytes | |||
-rw-r--r-- | spec/fixtures/renamed_upstream_tarball-0.1.tar.gz | bin | 0 -> 260 bytes | |||
-rw-r--r-- | spec/fixtures/with_dep-0.1-1.rockspec | 18 | ||||
-rw-r--r-- | spec/fixtures/with_dep.lua | 6 |
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 @@ | |||
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 new file mode 100644 index 00000000..ad7e462a --- /dev/null +++ b/spec/fixtures/with_dep.lua | |||
@@ -0,0 +1,6 @@ | |||
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 | ||