summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-04-02 12:21:19 +0200
committerAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2016-04-25 22:19:30 +0200
commite2119b28fd6b107d07923cb3bcbd667a9bdc28a5 (patch)
treec4f04fd57d346204f689490323e2cb553bc122d3 /test
parent3a6933eb45e6163e6c1a102eb4c263ecb9d34f7a (diff)
Print help message if integration test framework is built in Release mode
Diffstat (limited to 'test')
-rw-r--r--test/integration/Main.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/integration/Main.cpp b/test/integration/Main.cpp
index 097f539..0565ab3 100644
--- a/test/integration/Main.cpp
+++ b/test/integration/Main.cpp
@@ -361,17 +361,22 @@ int main(int argc, char **argv)
}
// Check whether the root path exists, make it a canonical path
+ logger.headline("GATHER TESTS");
fs::path root =
fs::path(SpecialPaths::getDebugTestdataDir()) / "integration";
if (!fs::is_directory(root)) {
logger.fail("Could not find integration test data directory: " +
root.native());
+#ifdef NDEBUG
+ logger.note(
+ "This is a release build, copy the \"testdata\" folder into the "
+ "same directory as the executable.");
+#endif
return ERROR;
}
root = fs::canonical(root);
// Fetch all test cases
- logger.headline("GATHER TESTS");
std::vector<Test> tests = gatherTests(root);
std::string testsWord = tests.size() == 1 ? " test" : " tests";
logger.note(std::to_string(tests.size()) + testsWord + " found");