summaryrefslogtreecommitdiffstats
path: root/site_scons/site_tools/target_platform_linux.py
diff options
context:
space:
mode:
Diffstat (limited to 'site_scons/site_tools/target_platform_linux.py')
-rw-r--r--site_scons/site_tools/target_platform_linux.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/site_scons/site_tools/target_platform_linux.py b/site_scons/site_tools/target_platform_linux.py
index 776b09c..83b37b0 100644
--- a/site_scons/site_tools/target_platform_linux.py
+++ b/site_scons/site_tools/target_platform_linux.py
@@ -73,6 +73,15 @@ def generate(env):
TARGET_PLATFORM='LINUX',
COMPONENT_PLATFORM_SETUP=ComponentPlatformSetup,
CCFLAG_INCLUDE='-include', # Command line option to include a header
+
+ # Code coverage related.
+ COVERAGE_CCFLAGS=['-ftest-coverage', '-fprofile-arcs'],
+ COVERAGE_LIBS='gcov',
+ COVERAGE_STOP_CMD=[
+ '$COVERAGE_MCOV --directory "$TARGET_ROOT" --output "$TARGET"',
+ ('$COVERAGE_GENHTML --output-directory $COVERAGE_HTML_DIR '
+ '$COVERAGE_OUTPUT_FILE'),
+ ],
)
env.Append(