diff options
| -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 | ||
