From: Michael Wallner Date: Tue, 17 Nov 2020 19:46:20 +0000 (+0100) Subject: bin: consolidate clients X-Git-Tag: 1.1.0-beta1~104 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=13879141c97a765e5bf801db7fab70398c9c5e21;p=awesomized%2Flibmemcached bin: consolidate clients --- diff --git a/test/tests/bin/memflush.cpp b/test/tests/bin/memflush.cpp index b512b8e2..1b29b9d9 100644 --- a/test/tests/bin/memflush.cpp +++ b/test/tests/bin/memflush.cpp @@ -12,19 +12,19 @@ TEST_CASE("bin/memflush") { SECTION("no servers provided") { string output; REQUIRE_FALSE(sh.run("memflush", output)); - REQUIRE(output == "No Servers provided\n"); + REQUIRE(output == "No servers provided.\n"); } SECTION("--help") { string output; REQUIRE(sh.run("memflush --help", output)); - REQUIRE_THAT(output, Contains("memflush")); - 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("memflush 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") {