aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2026-04-06 16:36:31 -0300
committerHisham Muhammad <hisham@gobolinux.org>2026-04-06 16:39:41 -0300
commit84736dd2b35c762188b9220ec71d21f5ad346212 (patch)
tree54312766982f077b79d042167db10dbfc9e5651c
parentfc402072fca856f05e8ae09799cd6c2a2352dd17 (diff)
downloadluarocks-test-pin.tar.gz
luarocks-test-pin.tar.bz2
luarocks-test-pin.zip
tests: add test case for #1874test-pin
-rw-r--r--spec/quick/build.q6
-rw-r--r--spec/quick/make.q6
2 files changed, 5 insertions, 7 deletions
diff --git a/spec/quick/build.q b/spec/quick/build.q
index d0d6a890..d5b66402 100644
--- a/spec/quick/build.q
+++ b/spec/quick/build.q
@@ -260,8 +260,7 @@ FILE_CONTENTS: ./lua_modules/lib/luarocks/rocks-%{lua_version}/test/1.0-1/luaroc
260-------------------------------------------------------------------------------- 260--------------------------------------------------------------------------------
261return { 261return {
262 dependencies = { 262 dependencies = {
263 a_rock = "2.0-1", 263 a_rock = "2.0-1"
264 lua = "%{lua_version}-1"
265 } 264 }
266} 265}
267-------------------------------------------------------------------------------- 266--------------------------------------------------------------------------------
@@ -305,8 +304,7 @@ FILE_CONTENTS: ./luarocks.lock
305-------------------------------------------------------------------------------- 304--------------------------------------------------------------------------------
306return { 305return {
307 dependencies = { 306 dependencies = {
308 a_rock = "2.0-1", 307 a_rock = "2.0-1"
309 lua = "%{lua_version}-1"
310 } 308 }
311} 309}
312-------------------------------------------------------------------------------- 310--------------------------------------------------------------------------------
diff --git a/spec/quick/make.q b/spec/quick/make.q
index eb3472b6..c8eb2b23 100644
--- a/spec/quick/make.q
+++ b/spec/quick/make.q
@@ -11,7 +11,8 @@ source = {
11 url = "file://%{path(tmpdir)}/test.lua" 11 url = "file://%{path(tmpdir)}/test.lua"
12} 12}
13dependencies = { 13dependencies = {
14 "a_rock >= 0.8" 14 "a_rock >= 0.8",
15 "lua = %{lua_version}",
15} 16}
16build = { 17build = {
17 type = "builtin", 18 type = "builtin",
@@ -44,8 +45,7 @@ FILE_CONTENTS: ./lua_modules/lib/luarocks/rocks-%{lua_version}/test/2.0-1/luaroc
44-------------------------------------------------------------------------------- 45--------------------------------------------------------------------------------
45return { 46return {
46 dependencies = { 47 dependencies = {
47 a_rock = "2.0-1", 48 a_rock = "2.0-1"
48 lua = "%{lua_version}-1"
49 } 49 }
50} 50}
51-------------------------------------------------------------------------------- 51--------------------------------------------------------------------------------