aboutsummaryrefslogtreecommitdiff
path: root/spec/quick/list.q
blob: a40f37ef2d8db968db6e73158659807591cba502 (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
SUITE: luarocks list

================================================================================
TEST: invalid tree

RUN: luarocks --tree=%{path(/some/invalid/tree)} list

STDOUT:
--------------------------------------------------------------------------------
Rocks installed for Lua %{lua_version} in %{path(/some/invalid/tree)}
--------------------------------------------------------------------------------



================================================================================
TEST: --porcelain

FILE: a_rock-1.0-1.rockspec
--------------------------------------------------------------------------------
rockspec_format = "3.0"
package = "a_rock"
version = "1.0-1"
source = {
   url = "file://%{url(%{fixtures_dir})}/a_rock.lua"
}
description = {
   summary = "An example rockspec",
}
dependencies = {
   "lua >= 5.1"
}
build = {
   modules = {
      build = "a_rock.lua"
   },
}
--------------------------------------------------------------------------------
RUN: luarocks build a_rock-1.0-1.rockspec

RUN: luarocks list --porcelain

STDOUT:
--------------------------------------------------------------------------------
a_rock	1.0-1	installed	%{testing_sys_rocks}
--------------------------------------------------------------------------------