From 433e9cab5808d734ce63a5a5c5898bfc112d292e Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Mon, 2 Apr 2018 13:11:33 -0300 Subject: Tests: add missing fixtures --- spec/fixtures/an_upstream_tarball-0.1.tar.gz | Bin 0 -> 260 bytes spec/fixtures/renamed_upstream_tarball-0.1.tar.gz | Bin 0 -> 260 bytes spec/fixtures/with_dep-0.1-1.rockspec | 18 ++++++++++++++++++ spec/fixtures/with_dep.lua | 6 ++++++ 4 files changed, 24 insertions(+) create mode 100644 spec/fixtures/an_upstream_tarball-0.1.tar.gz create mode 100644 spec/fixtures/renamed_upstream_tarball-0.1.tar.gz create mode 100644 spec/fixtures/with_dep-0.1-1.rockspec create mode 100644 spec/fixtures/with_dep.lua 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 Binary files /dev/null and b/spec/fixtures/an_upstream_tarball-0.1.tar.gz 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 Binary files /dev/null and b/spec/fixtures/renamed_upstream_tarball-0.1.tar.gz 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 @@ +package = "with_dep" +version = "0.1-1" +source = { + url = "http://localhost:8080/file/with_dep.lua" +} +description = { + summary = "An example rockspec", +} +dependencies = { + "lua >= 5.1", + "with_external_dep 0.1", +} +build = { + type = "builtin", + modules = { + with_dep = "with_dep.lua" + } +} 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 @@ +local pok, with_external_dep = pcall(require, "with_external_dep") +if pok then + print(with_external_dep.foo) +else + print(100) +end -- cgit v1.2.3-55-g6feb