aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/main.cpp
diff options
context:
space:
mode:
authorAlexander Bluhm <[email protected]>2017-03-31 20:39:24 +0200
committerAlexander Bluhm <[email protected]>2017-03-31 21:58:25 +0200
commit41da6e9b9e950fcf3338bdea2fbc3290f84628f3 (patch)
tree5be3889a9752169c8248406644baf9478b2fd166 /src/tests/main.cpp
parent6ca6c87b31d8ac8cd6511adaf2061250857d799c (diff)
Print test name before running test.
To make it easy to repeat classes of tests, print the name of the test suite before starting it. This name can be used on the botan-test command line. If a test hangs, it is also obvious which.
Diffstat (limited to 'src/tests/main.cpp')
-rw-r--r--src/tests/main.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tests/main.cpp b/src/tests/main.cpp
index 4248de56b..a7e56be63 100644
--- a/src/tests/main.cpp
+++ b/src/tests/main.cpp
@@ -233,6 +233,7 @@ class Test_Runner : public Botan_CLI::Command
for(auto&& test_name : tests_to_run)
{
try {
+ out << test_name << ':' << std::endl;
const auto results = Botan_Tests::Test::run_test(test_name, false);
out << report_out(results, tests_failed, tests_ran) << std::flush;
}