projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
update TODO
[awesomized/libmemcached]
/
test
/
tests
/
bin
/
memaslap.cpp
diff --git
a/test/tests/bin/memaslap.cpp
b/test/tests/bin/memaslap.cpp
index 07830b409c9700ad25c58ae76f02c4e326803773..0656a5105af369bc58fb16dd27daa4a064cf292b 100644
(file)
--- a/
test/tests/bin/memaslap.cpp
+++ b/
test/tests/bin/memaslap.cpp
@@
-7,7
+7,7
@@
using Catch::Matchers::Contains;
TEST_CASE("bin/memaslap") {
using Catch::Matchers::Contains;
TEST_CASE("bin/memaslap") {
- Shell sh{string{TESTING_ROOT "/../
src/bin
"}};
+ Shell sh{string{TESTING_ROOT "/../
contrib/bin/memaslap
"}};
SECTION("no servers provided") {
string output;
SECTION("no servers provided") {
string output;
@@
-37,7
+37,7
@@
TEST_CASE("bin/memaslap") {
" -T 2 -c 8 -t 2s -v 0.2 -e 0.05 -b",
" -T 2 -c 8 -t 2s -w 40k -o 0.2",
" -T 2 -c 8 -t 2s -d 20 -P 40k",
" -T 2 -c 8 -t 2s -v 0.2 -e 0.05 -b",
" -T 2 -c 8 -t 2s -w 40k -o 0.2",
" -T 2 -c 8 -t 2s -d 20 -P 40k",
-#if
__amd64__
+#if
0
" -T 2 -c 8 -t 2s -d 50 -a -n 10",
#endif
};
" -T 2 -c 8 -t 2s -d 50 -a -n 10",
#endif
};
@@
-49,7
+49,9
@@
TEST_CASE("bin/memaslap") {
for (const auto args : examples) {
string output;
INFO(args);
for (const auto args : examples) {
string output;
INFO(args);
- REQUIRE(sh.run("memaslap " + servers + args, output));
+ auto ok = sh.run("memaslap -b " + servers + args, output);
+ INFO(output);
+ REQUIRE(ok);
REQUIRE_THAT(output, Contains("TPS"));
}
}
REQUIRE_THAT(output, Contains("TPS"));
}
}