diff options
author | Sandrine Bailleux <sandrine.bailleux@arm.com> | 2018-11-07 17:11:59 +0100 |
---|---|---|
committer | Sandrine Bailleux <sandrine.bailleux@arm.com> | 2018-12-13 16:07:05 +0100 |
commit | 125d58c4c065e27c7764ed9f05236f70fc7a5788 (patch) | |
tree | 9594adfa2f9032765680ff1f6c59f79d14b204f1 /include | |
parent | 2b001329a3d7ba88a3304b7effa48b753181ccea (diff) | |
download | tf-a-tests-125d58c4c065e27c7764ed9f05236f70fc7a5788.tar.gz |
Make tests output more concise and clearer
Also refactor the code that generates this output.
This is only a first step, subsequent patches will further improve
the output.
Here is a sample of the old output:
[cpu 0x0000] NOTICE: Starting unittest 'Template - Single core test'
[cpu 0x0000] NOTICE: Unittest 'Template - Single core test' complete. Result: Passed
[cpu 0x0000] NOTICE: Starting unittest 'Template - Multi core test'
[cpu 0x0000] NOTICE: Unittest 'Template - Multi core test' complete. Result: Passed
========== TEST REPORT ==========
# Test suite 'Template':
- Single core test: Passed
- Multi core test: Passed
=================================
Tests Skipped : 0
Tests Passed : 2
Tests Failed : 0
Tests Crashed : 0
Total tests : 2
=================================
[cpu 0x0000] NOTICE: Exiting tests.
And now the new output:
[cpu 0x0000] --
[cpu 0x0000] Running test suite 'Template'
[cpu 0x0000] Description: Template test code
[cpu 0x0000]
[cpu 0x0000] > Executing 'Single core test'
[cpu 0x0000] TEST COMPLETE Passed
[cpu 0x0000]
[cpu 0x0000] > Executing 'Multi core test'
[cpu 0x0000] TEST COMPLETE Passed
[cpu 0x0000]
[cpu 0x0000] ******************************* Summary *******************************
[cpu 0x0000] > Test suite 'Template'
[cpu 0x0000] Passed
[cpu 0x0000] =================================
[cpu 0x0000] Tests Skipped : 0
[cpu 0x0000] Tests Passed : 2
[cpu 0x0000] Tests Failed : 0
[cpu 0x0000] Tests Crashed : 0
[cpu 0x0000] Total tests : 2
[cpu 0x0000] =================================
[cpu 0x0000] NOTICE: Exiting tests.
Change-Id: I9d52f2da8905962ab1df73d0691846d88622d3b5
Signed-off-by: Sandrine Bailleux <sandrine.bailleux@arm.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/lib/tftf_lib.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/include/lib/tftf_lib.h b/include/lib/tftf_lib.h index 97b6f411d..40955d347 100644 --- a/include/lib/tftf_lib.h +++ b/include/lib/tftf_lib.h @@ -36,8 +36,6 @@ typedef enum { TEST_RESULT_MAX } test_result_t; -const char *test_result_to_string(test_result_t result); - #define TEST_RESULT_IS_VALID(result) \ ((result >= TEST_RESULT_MIN) && (result < TEST_RESULT_MAX)) |