diff options
Diffstat (limited to 'test/test_environment.lua')
| -rw-r--r-- | test/test_environment.lua | 36 |
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 @@ | |||
| 1 | local lfs = require("lfs") | 1 | local lfs = require("lfs") |
| 2 | local test_env = {} | 2 | local test_env = {} |
| 3 | local arg = arg | 3 | |
| 4 | local help_message = [[ | ||
| 5 | LuaRocks test-suite | ||
| 6 | |||
| 7 | INFORMATION | ||
| 8 | New test-suite for LuaRocks project, using unit testing framework Busted. | ||
| 9 | REQUIREMENTS | ||
| 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. | ||
| 13 | USAGE | ||
| 14 | busted [-Xhelper <arguments>] | ||
| 15 | ARGUMENTS | ||
| 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 | ||
| 5 | local function help() | 23 | local 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) | ||
| 20 | end | 26 | end |
| 21 | 27 | ||
| 22 | --- Helper function for execute_bool and execute_output | 28 | --- Helper function for execute_bool and execute_output |
