From 681d72d5f1583266de653b6d58bce0ef8cf77a68 Mon Sep 17 00:00:00 2001 From: Markus Kauppila Date: Sun, 28 Aug 2011 20:27:25 +0300 Subject: [PATCH] Option --show-tests prints test description. --- test/test-automation/src/libSDLtest/plain_logger.c | 3 ++- test/test-automation/src/runner/runner.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/test/test-automation/src/libSDLtest/plain_logger.c b/test/test-automation/src/libSDLtest/plain_logger.c index 65487e2bd..6a370a3c0 100644 --- a/test/test-automation/src/libSDLtest/plain_logger.c +++ b/test/test-automation/src/libSDLtest/plain_logger.c @@ -142,7 +142,8 @@ void PlainTestStarted(const char *testName, const char *suiteName, const char *testDescription, Uint64 execKey, time_t startTime) { - Output(indentLevel++, "Executing test: %s (in %s). Exec key: %llX", testName, suiteName, execKey); + Output(indentLevel, "Executing test: %s (in %s). Exec key: %llX", testName, suiteName, execKey); + Output(indentLevel++, "Test description: %s", testDescription); } void diff --git a/test/test-automation/src/runner/runner.c b/test/test-automation/src/runner/runner.c index b4b2c50cd..71666c53b 100644 --- a/test/test-automation/src/runner/runner.c +++ b/test/test-automation/src/runner/runner.c @@ -1362,7 +1362,7 @@ main(int argc, char *argv[]) if(only_print_tests) { TestCase *testItem = NULL; for(testItem = testCases; testItem; testItem = testItem->next) { - printf("%s (in %s)\n", testItem->testName, testItem->suiteName); + printf("%s (in %s) - %s\n", testItem->testName, testItem->suiteName, testItem->description); } return 0;