Option --show-tests prints test description.
authorMarkus Kauppila <markus.kauppila@gmail.com>
Sun, 28 Aug 2011 20:27:25 +0300
changeset 5844 fa860270f65c
parent 5843 66dc563da07e
child 5845 02eace7c44a5
Option --show-tests prints test description.
test/test-automation/src/libSDLtest/plain_logger.c
test/test-automation/src/runner/runner.c
--- a/test/test-automation/src/libSDLtest/plain_logger.c	Sun Aug 28 20:08:36 2011 +0300
+++ b/test/test-automation/src/libSDLtest/plain_logger.c	Sun Aug 28 20:27:25 2011 +0300
@@ -142,7 +142,8 @@
 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
--- a/test/test-automation/src/runner/runner.c	Sun Aug 28 20:08:36 2011 +0300
+++ b/test/test-automation/src/runner/runner.c	Sun Aug 28 20:27:25 2011 +0300
@@ -1362,7 +1362,7 @@
 	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;