<div dir="ltr">Seems reasonable. <div><br></div><div>Does this mean that anything under tests and bsps will not have coverage?</div><div><br></div><div>--joel</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Nov 3, 2023 at 3:58 AM Sebastian Huber <<a href="mailto:sebastian.huber@embedded-brains.de">sebastian.huber@embedded-brains.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">The goal is to get code and branch coverage from actual tests and not<br>
the test support itself.<br>
---<br>
spec/build/cpukit/grp.yml | 2 --<br>
spec/build/cpukit/libdebugger.yml | 6 ++++--<br>
spec/build/cpukit/libftpfs.yml | 6 ++++--<br>
spec/build/cpukit/libjffs2.yml | 4 +++-<br>
spec/build/cpukit/libmghttpd.yml | 6 ++++--<br>
spec/build/cpukit/librtemscpu.yml | 6 ++++--<br>
spec/build/cpukit/librtemscxx.yml | 4 +++-<br>
spec/build/cpukit/librtemsdfltcfg.yml | 6 ++++--<br>
spec/build/cpukit/libtelnetd.yml | 6 ++++--<br>
spec/build/cpukit/libtftpfs.yml | 6 ++++--<br>
spec/build/cpukit/libz.yml | 6 ++++--<br>
11 files changed, 38 insertions(+), 20 deletions(-)<br>
<br>
diff --git a/spec/build/cpukit/grp.yml b/spec/build/cpukit/grp.yml<br>
index e07e975d7d..7cd1f80ee7 100644<br>
--- a/spec/build/cpukit/grp.yml<br>
+++ b/spec/build/cpukit/grp.yml<br>
@@ -2,13 +2,11 @@ SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause<br>
build-type: group<br>
cflags:<br>
- ${CPUKIT_OPTIMIZATION_FLAGS}<br>
-- ${COVERAGE_COMPILER_FLAGS}<br>
copyrights:<br>
- Copyright (C) 2020 embedded brains GmbH & Co. KG<br>
cppflags: []<br>
cxxflags:<br>
- ${CPUKIT_OPTIMIZATION_FLAGS}<br>
-- ${COVERAGE_COMPILER_FLAGS}<br>
enabled-by: true<br>
includes: []<br>
install: []<br>
diff --git a/spec/build/cpukit/libdebugger.yml b/spec/build/cpukit/libdebugger.yml<br>
index 3075ca1f9a..bc9db7b8d6 100644<br>
--- a/spec/build/cpukit/libdebugger.yml<br>
+++ b/spec/build/cpukit/libdebugger.yml<br>
@@ -1,10 +1,12 @@<br>
SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause<br>
build-type: library<br>
-cflags: []<br>
+cflags:<br>
+- ${COVERAGE_COMPILER_FLAGS}<br>
copyrights:<br>
- Copyright (C) 2020 embedded brains GmbH & Co. KG<br>
cppflags: []<br>
-cxxflags: []<br>
+cxxflags:<br>
+- ${COVERAGE_COMPILER_FLAGS}<br>
enabled-by: BUILD_LIBDEBUGGER<br>
includes: []<br>
install: []<br>
diff --git a/spec/build/cpukit/libftpfs.yml b/spec/build/cpukit/libftpfs.yml<br>
index 4dc6b8c651..cc9b9f7980 100644<br>
--- a/spec/build/cpukit/libftpfs.yml<br>
+++ b/spec/build/cpukit/libftpfs.yml<br>
@@ -1,10 +1,12 @@<br>
SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause<br>
build-type: library<br>
-cflags: []<br>
+cflags:<br>
+- ${COVERAGE_COMPILER_FLAGS}<br>
copyrights:<br>
- Copyright (C) 2020 embedded brains GmbH & Co. KG<br>
cppflags: []<br>
-cxxflags: []<br>
+cxxflags:<br>
+- ${COVERAGE_COMPILER_FLAGS}<br>
enabled-by: true<br>
includes: []<br>
install:<br>
diff --git a/spec/build/cpukit/libjffs2.yml b/spec/build/cpukit/libjffs2.yml<br>
index 4fec670f92..f7c74d8f21 100644<br>
--- a/spec/build/cpukit/libjffs2.yml<br>
+++ b/spec/build/cpukit/libjffs2.yml<br>
@@ -1,11 +1,13 @@<br>
SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause<br>
build-type: library<br>
cflags:<br>
+- ${COVERAGE_COMPILER_FLAGS}<br>
- -Wno-pointer-sign<br>
copyrights:<br>
- Copyright (C) 2020 embedded brains GmbH & Co. KG<br>
cppflags: []<br>
-cxxflags: []<br>
+cxxflags:<br>
+- ${COVERAGE_COMPILER_FLAGS}<br>
enabled-by: true<br>
includes:<br>
- cpukit/libfs/src/jffs2/include<br>
diff --git a/spec/build/cpukit/libmghttpd.yml b/spec/build/cpukit/libmghttpd.yml<br>
index 71dbbab974..c6cbe0a8be 100644<br>
--- a/spec/build/cpukit/libmghttpd.yml<br>
+++ b/spec/build/cpukit/libmghttpd.yml<br>
@@ -1,10 +1,12 @@<br>
SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause<br>
build-type: library<br>
-cflags: []<br>
+cflags:<br>
+- ${COVERAGE_COMPILER_FLAGS}<br>
copyrights:<br>
- Copyright (C) 2020 embedded brains GmbH & Co. KG<br>
cppflags: []<br>
-cxxflags: []<br>
+cxxflags:<br>
+- ${COVERAGE_COMPILER_FLAGS}<br>
enabled-by: true<br>
includes: []<br>
install:<br>
diff --git a/spec/build/cpukit/librtemscpu.yml b/spec/build/cpukit/librtemscpu.yml<br>
index 7a58a91299..9202c31715 100644<br>
--- a/spec/build/cpukit/librtemscpu.yml<br>
+++ b/spec/build/cpukit/librtemscpu.yml<br>
@@ -1,10 +1,12 @@<br>
SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause<br>
build-type: library<br>
-cflags: []<br>
+cflags:<br>
+- ${COVERAGE_COMPILER_FLAGS}<br>
copyrights:<br>
- Copyright (C) 2020 embedded brains GmbH & Co. KG<br>
cppflags: []<br>
-cxxflags: []<br>
+cxxflags:<br>
+- ${COVERAGE_COMPILER_FLAGS}<br>
enabled-by: true<br>
includes: []<br>
install:<br>
diff --git a/spec/build/cpukit/librtemscxx.yml b/spec/build/cpukit/librtemscxx.yml<br>
index 3803963470..97d65a1599 100644<br>
--- a/spec/build/cpukit/librtemscxx.yml<br>
+++ b/spec/build/cpukit/librtemscxx.yml<br>
@@ -1,10 +1,12 @@<br>
SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause<br>
build-type: library<br>
-cflags: []<br>
+cflags:<br>
+- ${COVERAGE_COMPILER_FLAGS}<br>
copyrights:<br>
- Copyright (C) 2020 Chris Johns (<a href="http://contemporary.software" rel="noreferrer" target="_blank">http://contemporary.software</a>)<br>
cppflags: []<br>
cxxflags:<br>
+- ${COVERAGE_COMPILER_FLAGS}<br>
- -std=c++17<br>
enabled-by: true<br>
includes: []<br>
diff --git a/spec/build/cpukit/librtemsdfltcfg.yml b/spec/build/cpukit/librtemsdfltcfg.yml<br>
index 3a77aa145d..2d5722fa2c 100644<br>
--- a/spec/build/cpukit/librtemsdfltcfg.yml<br>
+++ b/spec/build/cpukit/librtemsdfltcfg.yml<br>
@@ -1,10 +1,12 @@<br>
SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause<br>
build-type: library<br>
-cflags: []<br>
+cflags:<br>
+- ${COVERAGE_COMPILER_FLAGS}<br>
copyrights:<br>
- Copyright (C) 2020 embedded brains GmbH & Co. KG<br>
cppflags: []<br>
-cxxflags: []<br>
+cxxflags:<br>
+- ${COVERAGE_COMPILER_FLAGS}<br>
enabled-by: true<br>
includes: []<br>
install: []<br>
diff --git a/spec/build/cpukit/libtelnetd.yml b/spec/build/cpukit/libtelnetd.yml<br>
index 8106b67499..adfda2ba30 100644<br>
--- a/spec/build/cpukit/libtelnetd.yml<br>
+++ b/spec/build/cpukit/libtelnetd.yml<br>
@@ -1,10 +1,12 @@<br>
SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause<br>
build-type: library<br>
-cflags: []<br>
+cflags:<br>
+- ${COVERAGE_COMPILER_FLAGS}<br>
copyrights:<br>
- Copyright (C) 2020 embedded brains GmbH & Co. KG<br>
cppflags: []<br>
-cxxflags: []<br>
+cxxflags:<br>
+- ${COVERAGE_COMPILER_FLAGS}<br>
enabled-by: true<br>
includes:<br>
- cpukit/libnetworking<br>
diff --git a/spec/build/cpukit/libtftpfs.yml b/spec/build/cpukit/libtftpfs.yml<br>
index 31979963f7..c20ce2c7b7 100644<br>
--- a/spec/build/cpukit/libtftpfs.yml<br>
+++ b/spec/build/cpukit/libtftpfs.yml<br>
@@ -1,10 +1,12 @@<br>
SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause<br>
build-type: library<br>
-cflags: []<br>
+cflags:<br>
+- ${COVERAGE_COMPILER_FLAGS}<br>
copyrights:<br>
- Copyright (C) 2020, 2022 embedded brains GmbH & Co. KG<br>
cppflags: []<br>
-cxxflags: []<br>
+cxxflags:<br>
+- ${COVERAGE_COMPILER_FLAGS}<br>
enabled-by: true<br>
includes:<br>
- cpukit/libnetworking<br>
diff --git a/spec/build/cpukit/libz.yml b/spec/build/cpukit/libz.yml<br>
index 5f1ea57a17..86b261957d 100644<br>
--- a/spec/build/cpukit/libz.yml<br>
+++ b/spec/build/cpukit/libz.yml<br>
@@ -1,10 +1,12 @@<br>
SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause<br>
build-type: library<br>
-cflags: []<br>
+cflags:<br>
+- ${COVERAGE_COMPILER_FLAGS}<br>
copyrights:<br>
- Copyright (C) 2020 embedded brains GmbH & Co. KG<br>
cppflags: []<br>
-cxxflags: []<br>
+cxxflags:<br>
+- ${COVERAGE_COMPILER_FLAGS}<br>
enabled-by: true<br>
includes: []<br>
install:<br>
-- <br>
2.35.3<br>
<br>
_______________________________________________<br>
devel mailing list<br>
<a href="mailto:devel@rtems.org" target="_blank">devel@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a><br>
</blockquote></div>