summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVijay Kumar Banerjee <vijaykumar9597@gmail.com>2018-11-27 13:25:08 +0530
committerChris Johns <chrisj@rtems.org>2018-12-02 14:38:39 +1100
commit650569cfc5566fdc63e3679e999d7a11bcbef501 (patch)
tree509c1d6c15303194a41574d997f0555c154b6956
parent6db01e577fed1dc88018106b81dd531f2ecc1fd0 (diff)
downloadrtems-tools-650569cfc5566fdc63e3679e999d7a11bcbef501.tar.bz2
tester : Add support to use QEMU serial console when coverage is enabled
-rw-r--r--tester/rt/coverage.py1
-rw-r--r--tester/rtems/testing/qemu.cfg17
2 files changed, 11 insertions, 7 deletions
diff --git a/tester/rt/coverage.py b/tester/rt/coverage.py
index 9ff27ad..9fc9b64 100644
--- a/tester/rt/coverage.py
+++ b/tester/rt/coverage.py
@@ -363,6 +363,7 @@ class coverage_run(object):
self.target = self.macros['target']
self.bsp_name = self.macros['bsp'].split('-')[0]
self.prefix = prefix
+ self.macros.define('coverage')
def run(self):
try:
diff --git a/tester/rtems/testing/qemu.cfg b/tester/rtems/testing/qemu.cfg
index e37dc9b..d0c6ac7 100644
--- a/tester/rtems/testing/qemu.cfg
+++ b/tester/rtems/testing/qemu.cfg
@@ -49,6 +49,16 @@
%include %{_rtdir}/rtems/version.cfg
#
+# Coverage, some builds of qemu support coverage.
+#
+%ifdef coverage
+ %define qemu_use_serial_console
+ %ifn %{defined bsp_qemu_cov_opts}
+ %define bsp_qemu_cov_opts %{nil}
+ %endif
+%endif
+
+#
# Qemu common option patterns.
#
%if %{defined qemu_use_serial_console}
@@ -59,13 +69,6 @@
%define qemu_opts_no_net -net none
#
-# Coverage, some builds of qemu support coverage.
-#
-%ifn %{defined bsp_qemu_cov_opts}
- %define bsp_qemu_cov_opts %{nil}
-%endif
-
-#
# Qemu executable
#
%ifn %{defined bsp_qemu_opts}