[PATCH 02/22] tester: Add coverage variants for a few BSPs

Alex White alexanderjwhite at gmail.com
Mon Mar 1 20:01:09 UTC 2021


Adds coverage variants for the following BSPs: a53_qemu, pc686,
xilinx_zynq_a9_qemu, and xilinx_zynqmp.
---
 tester/rtems/testing/bsps/a53_qemu-cov.ini    | 41 ++++++++++++++++++
 tester/rtems/testing/bsps/pc-qemu-cov.ini     | 42 +++++++++++++++++++
 .../testing/bsps/xilinx_zynq_a9_qemu-cov.ini  | 41 ++++++++++++++++++
 .../rtems/testing/bsps/xilinx_zynqmp-cov.ini  | 41 ++++++++++++++++++
 4 files changed, 165 insertions(+)
 create mode 100644 tester/rtems/testing/bsps/a53_qemu-cov.ini
 create mode 100644 tester/rtems/testing/bsps/pc-qemu-cov.ini
 create mode 100644 tester/rtems/testing/bsps/xilinx_zynq_a9_qemu-cov.ini
 create mode 100644 tester/rtems/testing/bsps/xilinx_zynqmp-cov.ini

diff --git a/tester/rtems/testing/bsps/a53_qemu-cov.ini b/tester/rtems/testing/bsps/a53_qemu-cov.ini
new file mode 100644
index 0000000..782ce35
--- /dev/null
+++ b/tester/rtems/testing/bsps/a53_qemu-cov.ini
@@ -0,0 +1,41 @@
+#
+# RTEMS Tools Project (http://www.rtems.org/)
+# Copyright 2021 Alex White(alex.white at oarcorp.com)
+# All rights reserved.
+#
+# This file is part of the RTEMS Tools package in 'rtems-tools'.
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions are met:
+#
+# 1. Redistributions of source code must retain the above copyright notice,
+# this list of conditions and the following disclaimer.
+#
+# 2. Redistributions in binary form must reproduce the above copyright notice,
+# this list of conditions and the following disclaimer in the documentation
+# and/or other materials provided with the distribution.
+#
+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+# POSSIBILITY OF SUCH DAMAGE.
+#
+
+#
+# The AArch64 Cortex-A53 BSP with coverage
+#
+[a53_qemu-cov]
+bsp               = a53_qemu
+arch              = aarch64
+tester            = %{_rtscripts}/qemu.cfg
+target            = aarch64
+bsp_qemu_opts     = %{qemu_opts_base} -serial mon:stdio -machine virt,gic-version=3 -cpu cortex-a53 -m 4096
+bsp_qemu_cov_opts = -exec-trace %{test_executable}.cov
+bsp_covoar_cmd    = -T aarch64-rtems6 -S %{bsp_symbol_path} -E %{cov_explanations}
diff --git a/tester/rtems/testing/bsps/pc-qemu-cov.ini b/tester/rtems/testing/bsps/pc-qemu-cov.ini
new file mode 100644
index 0000000..eb67e7e
--- /dev/null
+++ b/tester/rtems/testing/bsps/pc-qemu-cov.ini
@@ -0,0 +1,42 @@
+#
+# RTEMS Tools Project (http://www.rtems.org/)
+# Copyright 2021 Alex White(alex.white at oarcorp.com)
+# All rights reserved.
+#
+# This file is part of the RTEMS Tools package in 'rtems-tools'.
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions are met:
+#
+# 1. Redistributions of source code must retain the above copyright notice,
+# this list of conditions and the following disclaimer.
+#
+# 2. Redistributions in binary form must reproduce the above copyright notice,
+# this list of conditions and the following disclaimer in the documentation
+# and/or other materials provided with the distribution.
+#
+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+# POSSIBILITY OF SUCH DAMAGE.
+#
+
+#
+# The pc QEMU BSP with coverage
+#
+[pc-qemu-cov]
+bsp               = pc686
+arch              = i386
+qemu_use_serial_console = yes
+target            = i386
+tester            = %{_rtscripts}/qemu.cfg
+bsp_qemu_opts     = %{qemu_opts_base} %{qemu_opts_serial} -append --console=/dev/com1
+bsp_qemu_cov_opts = -exec-trace %{test_executable}.cov
+bsp_covoar_cmd    = -T i386-rtems6 -S %{bsp_symbol_path} -E %{cov_explanations}
diff --git a/tester/rtems/testing/bsps/xilinx_zynq_a9_qemu-cov.ini b/tester/rtems/testing/bsps/xilinx_zynq_a9_qemu-cov.ini
new file mode 100644
index 0000000..fdc75da
--- /dev/null
+++ b/tester/rtems/testing/bsps/xilinx_zynq_a9_qemu-cov.ini
@@ -0,0 +1,41 @@
+#
+# RTEMS Tools Project (http://www.rtems.org/)
+# Copyright 2021 Alex White(alex.white at oarcorp.com)
+# All rights reserved.
+#
+# This file is part of the RTEMS Tools package in 'rtems-tools'.
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions are met:
+#
+# 1. Redistributions of source code must retain the above copyright notice,
+# this list of conditions and the following disclaimer.
+#
+# 2. Redistributions in binary form must reproduce the above copyright notice,
+# this list of conditions and the following disclaimer in the documentation
+# and/or other materials provided with the distribution.
+#
+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+# POSSIBILITY OF SUCH DAMAGE.
+#
+
+#
+# The Xilinx Zynq A9 QEMU BSP with coverage
+#
+[xilinx_zynq_a9_qemu-cov]
+bsp           = xilinx_zynq_a9_qemu
+arch          = arm
+tester        = %{_rtscripts}/qemu.cfg
+target        = arm
+bsp_qemu_opts = %{qemu_opts_base} %{qemu_opts_no_net} %{qemu_opts_serial} -M xilinx-zynq-a9 -m 256M
+bsp_qemu_cov_opts = -exec-trace %{test_executable}.cov
+bsp_covoar_cmd    = -T arm-rtems6 -S %{bsp_symbol_path} -E %{cov_explanations}
diff --git a/tester/rtems/testing/bsps/xilinx_zynqmp-cov.ini b/tester/rtems/testing/bsps/xilinx_zynqmp-cov.ini
new file mode 100644
index 0000000..588f383
--- /dev/null
+++ b/tester/rtems/testing/bsps/xilinx_zynqmp-cov.ini
@@ -0,0 +1,41 @@
+#
+# RTEMS Tools Project (http://www.rtems.org/)
+# Copyright 2021 Alex White(alex.white at oarcorp.com)
+# All rights reserved.
+#
+# This file is part of the RTEMS Tools package in 'rtems-tools'.
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions are met:
+#
+# 1. Redistributions of source code must retain the above copyright notice,
+# this list of conditions and the following disclaimer.
+#
+# 2. Redistributions in binary form must reproduce the above copyright notice,
+# this list of conditions and the following disclaimer in the documentation
+# and/or other materials provided with the distribution.
+#
+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+# POSSIBILITY OF SUCH DAMAGE.
+#
+
+#
+# The AArch64 Xilinx ZynqMP (Ultrascale+ MPSOC) BSP with coverage.
+#
+[xilinx_zynqmp-cov]
+bsp               = xilinx_zynqmp
+arch              = aarch64
+tester            = %{_rtscripts}/qemu.cfg
+target            = aarch64
+bsp_qemu_opts     = %{qemu_opts_base} -serial mon:stdio -machine xlnx-zcu102 -m 4096
+bsp_qemu_cov_opts = -exec-trace %{test_executable}.cov
+bsp_covoar_cmd    = -T aarch64-rtems6 -S %{bsp_symbol_path} -E %{cov_explanations}
-- 
2.27.0



More information about the devel mailing list