From c700cd6eee23a46cde73017f5e1e4c06867feb2b Mon Sep 17 00:00:00 2001 From: Peter Melnichenko Date: Fri, 8 Jul 2016 15:16:33 +0300 Subject: Tests: reformat help message --- test/test_environment.lua | 36 +++++++++++++++++++++--------------- 1 file 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 @@ local lfs = require("lfs") local test_env = {} -local arg = arg + +local help_message = [[ +LuaRocks test-suite + +INFORMATION + New test-suite for LuaRocks project, using unit testing framework Busted. +REQUIREMENTS + Tests require to have Lua installed and added to PATH. Be sure sshd is + running on your system, or use '--exclude-tags=ssh', to not execute tests + which require sshd. +USAGE + busted [-Xhelper ] +ARGUMENTS + env= Set type of environment to use ("minimal" or "full", + default: "minimal"). + clean Remove existing testing environment. + travis Add if running on TravisCI. + os= Set OS ("linux", "osx", or "windows"). +]] local function help() - print("LuaRocks test-suite\n\n".. - [[ - INFORMATION - New test-suite for LuaRocks project, using unit testing framework Busted. - REQUIREMENTS - Tests require to have Lua installed and added to PATH. Be sure sshd is runnig on your system, or - use '--exclude-tags=ssh', to not execute tests which require sshd. - USAGE -Xhelper - env= (default:"minimal") type what kind of environment to use ["minimal", "full"] - clean remove existing testing environment - travis add just if running on TravisCI - os= type your OS ["linux", "osx", "windows"] - ]]); - os.exit(1) + print(help_message) + os.exit(1) end --- Helper function for execute_bool and execute_output -- cgit v1.2.3-55-g6feb