summaryrefslogtreecommitdiff
path: root/spec/quick/list.q
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2024-02-29 00:46:06 -0300
committerHisham Muhammad <hisham@gobolinux.org>2024-02-29 15:46:16 +0000
commitf76b7a2b13e411df2e696146bb0a6396781acd92 (patch)
tree38ed32f81f05f6eacd03f36eacd5341e7b1d17dd /spec/quick/list.q
parent0ca8c460e867356342180bb625760ed9201a5503 (diff)
downloadluarocks-f76b7a2b13e411df2e696146bb0a6396781acd92.tar.gz
luarocks-f76b7a2b13e411df2e696146bb0a6396781acd92.tar.bz2
luarocks-f76b7a2b13e411df2e696146bb0a6396781acd92.zip
tests: speed up and simplify
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--------------------------------------------------------------------------------