diff options
Diffstat (limited to 'spec/quick/cmd.q')
-rw-r--r-- | spec/quick/cmd.q | 36 |
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 @@ | |||
1 | SUITE: luarocks CLI | ||
2 | |||
3 | ================================================================================ | ||
4 | TEST: warns but continues if given an invalid version | ||
5 | |||
6 | RUN: luarocks --lua-version 1.0 | ||
7 | |||
8 | STDOUT: | ||
9 | -------------------------------------------------------------------------------- | ||
10 | Version : 1.0 | ||
11 | LUA : (interpreter not found) | ||
12 | -------------------------------------------------------------------------------- | ||
13 | |||
14 | |||
15 | |||
16 | ================================================================================ | ||
17 | TEST: reports if lua.h header is not found | ||
18 | |||
19 | RUN: luarocks LUA_INCDIR=/bad/dir | ||
20 | |||
21 | STDOUT: | ||
22 | -------------------------------------------------------------------------------- | ||
23 | LUA_INCDIR : /bad/dir (lua.h not found) | ||
24 | -------------------------------------------------------------------------------- | ||
25 | |||
26 | |||
27 | |||
28 | ================================================================================ | ||
29 | TEST: reports if Lua library is not found | ||
30 | |||
31 | RUN: luarocks LUA_LIBDIR=/bad/dir | ||
32 | |||
33 | STDOUT: | ||
34 | -------------------------------------------------------------------------------- | ||
35 | LUA_LIBDIR : /bad/dir (Lua library itself not found) | ||
36 | -------------------------------------------------------------------------------- | ||