summaryrefslogtreecommitdiffstats
path: root/Documentation/tutorial
diff options
context:
space:
mode:
authorPaul Fagerburg <pfagerburg@google.com>2021-05-11 09:56:48 -0600
committerPaul Fagerburg <pfagerburg@chromium.org>2021-05-19 19:56:02 +0000
commitde6cbac3c4e44de797bc2a4755fb765cf5a49f55 (patch)
treea67d8457e2463e67e5d3d35970f23c650dea6f8a /Documentation/tutorial
parent12c0542e6fa54a3875c5786d9527bba5ffa8c45c (diff)
downloadcoreboot-de6cbac3c4e44de797bc2a4755fb765cf5a49f55.tar.gz
coreboot-de6cbac3c4e44de797bc2a4755fb765cf5a49f55.tar.bz2
coreboot-de6cbac3c4e44de797bc2a4755fb765cf5a49f55.zip
tests: improve code coverage support
Fix the exclusion path for lcov; it should exclude the directory with source code, not object files. Use the COV environment variable to * control whether we build for coverage or not * select the output directory Add a separate target for generating the report, so we can get a report for all of the tests together or just a single test. Add documentation. Signed-off-by: Paul Fagerburg <pfagerburg@google.com> Change-Id: I2bd2bfdedfab291aabeaa968c10b17e9b61c9c0a Reviewed-on: https://review.coreboot.org/c/coreboot/+/54072 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Jakub Czapiga <jacz@semihalf.com>
Diffstat (limited to 'Documentation/tutorial')
-rw-r--r--Documentation/tutorial/part3.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/Documentation/tutorial/part3.md b/Documentation/tutorial/part3.md
index 7ccee877546e..6d147ff9a9e6 100644
--- a/Documentation/tutorial/part3.md
+++ b/Documentation/tutorial/part3.md
@@ -3,6 +3,8 @@
## Introduction
General thoughts about unit testing coreboot can be found in
[Unit testing coreboot](../technotes/2020-03-unit-testing-coreboot.md).
+Additionally, [code coverage](../technotes/2021-05-code-coverage.md) support
+is available for unit tests.
This document aims to guide developers through the process of adding and writing
unit tests for coreboot modules.