aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPeter Melnichenko <mpeterval@gmail.com>2016-07-08 15:16:33 +0300
committerPeter Melnichenko <mpeterval@gmail.com>2016-07-08 15:16:33 +0300
commitc700cd6eee23a46cde73017f5e1e4c06867feb2b (patch)
treeb0b15eb909b4c2632bf4db734e2b1b798efbf511 /test
parentc4f2a8404130696c503414876cf335a82aab359f (diff)
downloadluarocks-c700cd6eee23a46cde73017f5e1e4c06867feb2b.tar.gz
luarocks-c700cd6eee23a46cde73017f5e1e4c06867feb2b.tar.bz2
luarocks-c700cd6eee23a46cde73017f5e1e4c06867feb2b.zip
Tests: reformat help message
Diffstat (limited to 'test')
-rw-r--r--test/test_environment.lua36
1 files changed, 21 insertions, 15 deletions
diff --git a/test/test_environment.lua b/test/test_environment.lua
index 4c1b13c8..1edf3987 100644
--- a/test/test_environment.lua
+++ b/test/test_environment.lua
@@ -1,22 +1,28 @@
1local lfs = require("lfs") 1local lfs = require("lfs")
2local test_env = {} 2local test_env = {}
3local arg = arg 3
4local help_message = [[
5LuaRocks test-suite
6
7INFORMATION
8 New test-suite for LuaRocks project, using unit testing framework Busted.
9REQUIREMENTS
10 Tests require to have Lua installed and added to PATH. Be sure sshd is
11 running on your system, or use '--exclude-tags=ssh', to not execute tests
12 which require sshd.
13USAGE
14 busted [-Xhelper <arguments>]
15ARGUMENTS
16 env=<type> Set type of environment to use ("minimal" or "full",
17 default: "minimal").
18 clean Remove existing testing environment.
19 travis Add if running on TravisCI.
20 os=<type> Set OS ("linux", "osx", or "windows").
21]]
4 22
5local function help() 23local function help()
6 print("LuaRocks test-suite\n\n".. 24 print(help_message)
7 [[ 25 os.exit(1)
8 INFORMATION
9 New test-suite for LuaRocks project, using unit testing framework Busted.
10 REQUIREMENTS
11 Tests require to have Lua installed and added to PATH. Be sure sshd is runnig on your system, or
12 use '--exclude-tags=ssh', to not execute tests which require sshd.
13 USAGE -Xhelper <arguments>
14 env=<type> (default:"minimal") type what kind of environment to use ["minimal", "full"]
15 clean remove existing testing environment
16 travis add just if running on TravisCI
17 os=<version> type your OS ["linux", "osx", "windows"]
18 ]]);
19 os.exit(1)
20end 26end
21 27
22--- Helper function for execute_bool and execute_output 28--- Helper function for execute_bool and execute_output