From e2119b28fd6b107d07923cb3bcbd667a9bdc28a5 Mon Sep 17 00:00:00 2001 From: Andreas Stöckel Date: Thu, 2 Apr 2015 12:21:19 +0200 Subject: Print help message if integration test framework is built in Release mode --- test/integration/Main.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'test') 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 tests = gatherTests(root); std::string testsWord = tests.size() == 1 ? " test" : " tests"; logger.note(std::to_string(tests.size()) + testsWord + " found"); -- cgit v1.2.3