aboutsummaryrefslogtreecommitdiff
path: root/spec/quick/cmd.q
diff options
context:
space:
mode:
Diffstat (limited to 'spec/quick/cmd.q')
-rw-r--r--spec/quick/cmd.q36
1 files changed, 36 insertions, 0 deletions
diff --git a/spec/quick/cmd.q b/spec/quick/cmd.q
new file mode 100644
index 00000000..acde92b4
--- /dev/null
+++ b/spec/quick/cmd.q
@@ -0,0 +1,36 @@
1SUITE: luarocks CLI
2
3================================================================================
4TEST: warns but continues if given an invalid version
5
6RUN: luarocks --lua-version 1.0
7
8STDOUT:
9--------------------------------------------------------------------------------
10Version : 1.0
11LUA : (interpreter not found)
12--------------------------------------------------------------------------------
13
14
15
16================================================================================
17TEST: reports if lua.h header is not found
18
19RUN: luarocks LUA_INCDIR=/bad/dir
20
21STDOUT:
22--------------------------------------------------------------------------------
23LUA_INCDIR : /bad/dir (lua.h not found)
24--------------------------------------------------------------------------------
25
26
27
28================================================================================
29TEST: reports if Lua library is not found
30
31RUN: luarocks LUA_LIBDIR=/bad/dir
32
33STDOUT:
34--------------------------------------------------------------------------------
35LUA_LIBDIR : /bad/dir (Lua library itself not found)
36--------------------------------------------------------------------------------