Skip to content
Snippets Groups Projects
Commit 75be04a6 authored by Yuriy Vostrikov's avatar Yuriy Vostrikov
Browse files

[core] Simplify tests.

parent 2750e1d9
No related branches found
No related tags found
No related merge requests found
tarantool_silverbox -Z
tarantool_silverbox: -Z: unknown option
tarantool_silverbox --no-such-option
tarantool_silverbox: --no-such-option: unknown option
tarantool_silverbox --version --no-such-option
tarantool_silverbox: --no-such-option: unknown option
tarantool_silverbox --help
Tarantool -- an efficient in-memory data store.
Usage: tarantool_silverbox [OPTIONS]
......@@ -23,7 +14,7 @@ Usage: tarantool_silverbox [OPTIONS]
-h, --help display this help and exit
-V, --version print program version and exit
Please visit project home page at %launchpad
Please visit project home page at http://launchpad.net/tarantool
to see online documentation, submit bugs or contribute a patch.
tarantool_silverbox -h
......@@ -42,9 +33,18 @@ Usage: tarantool_silverbox [OPTIONS]
-h, --help display this help and exit
-V, --version print program version and exit
Please visit project home page at %launchpad
Please visit project home page at http://launchpad.net/tarantool
to see online documentation, submit bugs or contribute a patch.
tarantool_silverbox -Z
tarantool_silverbox: -Z: unknown option
tarantool_silverbox --no-such-option
tarantool_silverbox: --no-such-option: unknown option
tarantool_silverbox --version --no-such-option
tarantool_silverbox: --no-such-option: unknown option
tarantool_silverbox --config
tarantool_silverbox: --config: option requires an option argument
......
sys.stdout.push_filter("http://launchpad.net/tarantool", "%launchpad")
server.test_option("--help")
server.test_option("-h")
sys.stdout.push_filter("(/\S+)+/tarantool", "tarantool")
sys.stdout.push_filter("^\d+\.\d+ \d+", "<time> <pid>")
server.test_option("-Z")
server.test_option("--no-such-option")
server.test_option("--version --no-such-option")
server.test_option("--help")
server.test_option("-h")
server.test_option("--config")
server.test_option("-c")
server.test_option("--config tarantool.cfg")
......@@ -16,4 +15,3 @@ server.test_option("--version")
server.test_option("-V ")
sys.stdout.pop_filter()
sys.stdout.pop_filter()
sys.stdout.pop_filter()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment