coreboot-kgpe-d16/tests
Jakub Czapiga 4d9694e6bc tests: Fix JUNIT_OUTPUT=y to write to files instead of stderr
CB:57144 broke JUNIT_OUTPUT=y, and unit-tests were writing to stderr
instead of selected XML files, because test name used for XML file
creation contains test path. Build system did not create necessary
directiories, which CMocka required to create output files.
This commit fixes writing to XML files with JUNIT_OUTPUT=y, but had to
sacrifice path in test name, as it was causing a lot of problems
(because CMocka does not know, how to write multiple test groups to one
XML file, so it uses test group name [here __TEST_NAME__(test_group)] as
part of output filename).
Example:
 Test: tests/lib/rtc-test
 Output file:
 `build/tests/junit-tests_lib_rtc-test(tests).xml

Change-Id: I09891aca923bf1271cafeaa09f89b6539022709c
Signed-off-by: Jakub Czapiga <jacz@semihalf.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/58163
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Paul Fagerburg <pfagerburg@chromium.org>
2021-10-11 12:55:36 +00:00
..
acpi tests: Improve test output readability 2021-09-01 19:38:09 +00:00
commonlib tests: Improve test output readability 2021-09-01 19:38:09 +00:00
console tests: Improve test output readability 2021-09-01 19:38:09 +00:00
device tests: Improve test output readability 2021-09-01 19:38:09 +00:00
include tests: Add lib/cbfs-lookup-test test case 2021-09-14 23:35:38 +00:00
lib tests: Add lib/cbfs-lookup-test test case 2021-09-14 23:35:38 +00:00
mock tests: Add lib/cbfs-lookup-test test case 2021-09-14 23:35:38 +00:00
stubs tests/stubs/console: Allow enabling printk to print to stdout 2021-09-13 14:00:57 +00:00
Makefile.inc tests: Fix JUNIT_OUTPUT=y to write to files instead of stderr 2021-10-11 12:55:36 +00:00