aboutsummaryrefslogtreecommitdiff
path: root/spec/quick/make.q
diff options
context:
space:
mode:
Diffstat (limited to 'spec/quick/make.q')
-rw-r--r--spec/quick/make.q51
1 files changed, 51 insertions, 0 deletions
diff --git a/spec/quick/make.q b/spec/quick/make.q
new file mode 100644
index 00000000..c77bb499
--- /dev/null
+++ b/spec/quick/make.q
@@ -0,0 +1,51 @@
1SUITE: luarocks make
2
3================================================================================
4TEST: overrides luarocks.lock with --pin #pinning
5
6FILE: test-2.0-1.rockspec
7--------------------------------------------------------------------------------
8package = "test"
9version = "2.0-1"
10source = {
11 url = "file://%{path(tmpdir)}/test.lua"
12}
13dependencies = {
14 "a_rock >= 0.8"
15}
16build = {
17 type = "builtin",
18 modules = {
19 test = "test.lua"
20 }
21}
22--------------------------------------------------------------------------------
23
24FILE: test.lua
25--------------------------------------------------------------------------------
26return {}
27--------------------------------------------------------------------------------
28
29FILE: luarocks.lock
30--------------------------------------------------------------------------------
31return {
32 dependencies = {
33 ["a_rock"] = "1.0-1",
34 }
35}
36--------------------------------------------------------------------------------
37
38RUN: luarocks make --only-server=%{fixtures_dir}/a_repo --pin --tree=lua_modules
39
40EXISTS: ./lua_modules/lib/luarocks/rocks-%{lua_version}/test/2.0-1/test-2.0-1.rockspec
41EXISTS: ./lua_modules/lib/luarocks/rocks-%{lua_version}/a_rock/2.0-1/a_rock-2.0-1.rockspec
42
43FILE_CONTENTS: ./lua_modules/lib/luarocks/rocks-%{lua_version}/test/2.0-1/luarocks.lock
44--------------------------------------------------------------------------------
45return {
46 dependencies = {
47 a_rock = "2.0-1",
48 lua = "%{lua_version}-1"
49 }
50}
51--------------------------------------------------------------------------------