summaryrefslogtreecommitdiff
path: root/spec/quick/admin_make_manifest.q
diff options
context:
space:
mode:
authorMike Vink <mike@pionative.com>2025-02-03 21:29:42 +0100
committerMike Vink <mike@pionative.com>2025-02-03 21:29:42 +0100
commit5155816b7b925dec5d5feb1568b1d7ceb00938b9 (patch)
treedeca28ea15e79f6f804c3d90d2ba757881638af5 /spec/quick/admin_make_manifest.q
fetch tarballHEADmaster
Diffstat (limited to 'spec/quick/admin_make_manifest.q')
-rw-r--r--spec/quick/admin_make_manifest.q46
1 files changed, 46 insertions, 0 deletions
diff --git a/spec/quick/admin_make_manifest.q b/spec/quick/admin_make_manifest.q
new file mode 100644
index 0000000..527e86a
--- /dev/null
+++ b/spec/quick/admin_make_manifest.q
@@ -0,0 +1,46 @@
+SUITE: luarocks-admin make_manifest
+
+================================================================================
+TEST: runs
+
+FILE: test-1.0-1.rockspec
+--------------------------------------------------------------------------------
+package = "test"
+version = "1.0-1"
+source = {
+ url = "file://%{url(%{tmpdir})}/test.lua"
+}
+build = {
+ type = "builtin",
+ modules = {
+ test = "test.lua"
+ }
+}
+--------------------------------------------------------------------------------
+
+FILE: test.lua
+--------------------------------------------------------------------------------
+return {}
+--------------------------------------------------------------------------------
+
+RUN: luarocks make --pack-binary-rock ./test-1.0-1.rockspec
+
+RUN: luarocks-admin make_manifest .
+
+FILE_CONTENTS: ./manifest-%{lua_version}
+--------------------------------------------------------------------------------
+commands = {}
+modules = {}
+repository = {
+ test = {
+ ["1.0-1"] = {
+ {
+ arch = "all"
+ },
+ {
+ arch = "rockspec"
+ }
+ }
+ }
+}
+--------------------------------------------------------------------------------