aboutsummaryrefslogtreecommitdiff
path: root/spec/quick/list.q
diff options
context:
space:
mode:
Diffstat (limited to 'spec/quick/list.q')
-rw-r--r--spec/quick/list.q37
1 files changed, 36 insertions, 1 deletions
diff --git a/spec/quick/list.q b/spec/quick/list.q
index fbb3f557..a40f37ef 100644
--- a/spec/quick/list.q
+++ b/spec/quick/list.q
@@ -1,5 +1,7 @@
1SUITE: luarocks list
2
1================================================================================ 3================================================================================
2TEST: luarocks list: invalid tree 4TEST: invalid tree
3 5
4RUN: luarocks --tree=%{path(/some/invalid/tree)} list 6RUN: luarocks --tree=%{path(/some/invalid/tree)} list
5 7
@@ -8,3 +10,36 @@ STDOUT:
8Rocks installed for Lua %{lua_version} in %{path(/some/invalid/tree)} 10Rocks installed for Lua %{lua_version} in %{path(/some/invalid/tree)}
9-------------------------------------------------------------------------------- 11--------------------------------------------------------------------------------
10 12
13
14
15================================================================================
16TEST: --porcelain
17
18FILE: a_rock-1.0-1.rockspec
19--------------------------------------------------------------------------------
20rockspec_format = "3.0"
21package = "a_rock"
22version = "1.0-1"
23source = {
24 url = "file://%{url(%{fixtures_dir})}/a_rock.lua"
25}
26description = {
27 summary = "An example rockspec",
28}
29dependencies = {
30 "lua >= 5.1"
31}
32build = {
33 modules = {
34 build = "a_rock.lua"
35 },
36}
37--------------------------------------------------------------------------------
38RUN: luarocks build a_rock-1.0-1.rockspec
39
40RUN: luarocks list --porcelain
41
42STDOUT:
43--------------------------------------------------------------------------------
44a_rock 1.0-1 installed %{testing_sys_rocks}
45--------------------------------------------------------------------------------