blob: c77bb4993ce9c22c9ba6fe73a35a653290d8d8b5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
SUITE: luarocks make
================================================================================
TEST: overrides luarocks.lock with --pin #pinning
FILE: test-2.0-1.rockspec
--------------------------------------------------------------------------------
package = "test"
version = "2.0-1"
source = {
url = "file://%{path(tmpdir)}/test.lua"
}
dependencies = {
"a_rock >= 0.8"
}
build = {
type = "builtin",
modules = {
test = "test.lua"
}
}
--------------------------------------------------------------------------------
FILE: test.lua
--------------------------------------------------------------------------------
return {}
--------------------------------------------------------------------------------
FILE: luarocks.lock
--------------------------------------------------------------------------------
return {
dependencies = {
["a_rock"] = "1.0-1",
}
}
--------------------------------------------------------------------------------
RUN: luarocks make --only-server=%{fixtures_dir}/a_repo --pin --tree=lua_modules
EXISTS: ./lua_modules/lib/luarocks/rocks-%{lua_version}/test/2.0-1/test-2.0-1.rockspec
EXISTS: ./lua_modules/lib/luarocks/rocks-%{lua_version}/a_rock/2.0-1/a_rock-2.0-1.rockspec
FILE_CONTENTS: ./lua_modules/lib/luarocks/rocks-%{lua_version}/test/2.0-1/luarocks.lock
--------------------------------------------------------------------------------
return {
dependencies = {
a_rock = "2.0-1",
lua = "%{lua_version}-1"
}
}
--------------------------------------------------------------------------------
|