aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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