From: Michael Wallner Date: Tue, 17 Nov 2020 19:47:32 +0000 (+0100) Subject: bin: consolidate clients X-Git-Tag: 1.1.0-beta1~103 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=e1ca3c3c247290d1370e758e021da9f8221bc321;p=m6w6%2Flibmemcached bin: consolidate clients --- diff --git a/test/tests/bin/memping.cpp b/test/tests/bin/memping.cpp index bd6b6ced..5a74337a 100644 --- a/test/tests/bin/memping.cpp +++ b/test/tests/bin/memping.cpp @@ -11,19 +11,19 @@ TEST_CASE("bin/memping") { SECTION("no servers provided") { string output; REQUIRE_FALSE(sh.run("memping", output)); - REQUIRE(output == "No Servers provided\n"); + REQUIRE(output == "No servers provided.\n"); } SECTION("--help") { string output; REQUIRE(sh.run("memping --help", output)); - REQUIRE_THAT(output, Contains("memping")); - REQUIRE_THAT(output, Contains("v1")); - REQUIRE_THAT(output, Contains("help")); - REQUIRE_THAT(output, Contains("version")); - REQUIRE_THAT(output, Contains("option")); - REQUIRE_THAT(output, Contains("--")); - REQUIRE_THAT(output, Contains("=")); + REQUIRE_THAT(output, Contains("memping v1")); + REQUIRE_THAT(output, Contains("Usage:")); + REQUIRE_THAT(output, Contains("Options:")); + REQUIRE_THAT(output, Contains("-h|--help")); + REQUIRE_THAT(output, Contains("-V|--version")); + REQUIRE_THAT(output, Contains("Environment:")); + REQUIRE_THAT(output, Contains("MEMCACHED_SERVERS")); } SECTION("with server") {