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