aboutsummaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
Diffstat (limited to 'spec')
-rw-r--r--spec/quick/build.q8
-rw-r--r--spec/quick/make.q37
2 files changed, 45 insertions, 0 deletions
diff --git a/spec/quick/build.q b/spec/quick/build.q
index 4d0f6f9f..d0d6a890 100644
--- a/spec/quick/build.q
+++ b/spec/quick/build.q
@@ -214,6 +214,14 @@ Use --force to reinstall
214-------------------------------------------------------------------------------- 214--------------------------------------------------------------------------------
215 215
216 216
217RUN: luarocks build a_rock-1.0-1.rockspec --force
218NOT_STDOUT:
219--------------------------------------------------------------------------------
220a_rock 1.0-1 is already installed
221Use --force to reinstall
222--------------------------------------------------------------------------------
223
224
217 225
218================================================================================ 226================================================================================
219TEST: supports --pin #pinning 227TEST: supports --pin #pinning
diff --git a/spec/quick/make.q b/spec/quick/make.q
index c77bb499..eb3472b6 100644
--- a/spec/quick/make.q
+++ b/spec/quick/make.q
@@ -49,3 +49,40 @@ return {
49 } 49 }
50} 50}
51-------------------------------------------------------------------------------- 51--------------------------------------------------------------------------------
52
53
54
55================================================================================
56TEST: running make twice builds twice
57
58FILE: test-2.0-1.rockspec
59--------------------------------------------------------------------------------
60package = "test"
61version = "2.0-1"
62source = {
63 url = "file://%{path(tmpdir)}/test.lua"
64}
65build = {
66 type = "builtin",
67 modules = {
68 test = "test.lua"
69 }
70}
71--------------------------------------------------------------------------------
72
73FILE: test.lua
74--------------------------------------------------------------------------------
75return {}
76--------------------------------------------------------------------------------
77
78RUN: luarocks make --only-server=%{fixtures_dir}/a_repo --pin --tree=lua_modules
79STDOUT:
80--------------------------------------------------------------------------------
81test 2.0-1 is now installed
82--------------------------------------------------------------------------------
83
84RUN: luarocks make --only-server=%{fixtures_dir}/a_repo --pin --tree=lua_modules
85STDOUT:
86--------------------------------------------------------------------------------
87test 2.0-1 is now installed
88--------------------------------------------------------------------------------