[PATCH] Coverage: Add support for TSIM format

Vijay Kumar Banerjee vijaykumar9597 at gmail.com
Thu Feb 7 08:17:47 UTC 2019


I'm trying to do this ...

===========
diff --git a/tester/rtems/testing/bsps/leon3-sis-cov.ini
b/tester/rtems/testing/bsps/leon3-sis-cov.ini
index d60257c..e450b60 100644
--- a/tester/rtems/testing/bsps/leon3-sis-cov.ini
+++ b/tester/rtems/testing/bsps/leon3-sis-cov.ini
@@ -38,4 +38,4 @@ tester         = %{_rtscripts}/run.cfg
 target         = sparc-rtems5
 bsp_run_cmd    = %{rtems_tools}/%{bsp_arch}-rtems%{rtems_version}-sis
 bsp_run_opts   = -leon3 -nouartrx -r -tlim 200 s -cov
-bsp_covoar_cmd = -E %{cov_explanations} -f TSIM
+bsp_covoar_cmd = -S %{bsp_symbol_path} -p %{project_name} -E
%{cov_explanations} -f TSIM
diff --git a/tester/rtems/testing/defaults.mc b/tester/rtems/testing/
defaults.mc
index 54212e0..d3e16a9 100644
--- a/tester/rtems/testing/defaults.mc
+++ b/tester/rtems/testing/defaults.mc
@@ -122,5 +122,9 @@ _rtbase:             none,    none,     '%{_rtdir}'
 _rttesting:          none,    none,     '%{_rtbase}/rtems/testing'
 _configdir:          none,    none,     '%{_rtbase}/config:%{_rttesting}'

+#Coverage macros
+bsp_symbol_path:     none,    none,
'%{_rtscripts}/coverage/%{bsp}-symbols.ini'
+project_name:        none,    none,      'RTEMS-%{rtems_version}'
+
==========

I'm getting an error "error: cannot expand default macro: %{rtems_version} "

I see the rtems_version macro if I print the macros. How do I access this
macro?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20190207/8ebee931/attachment-0002.html>


More information about the devel mailing list