[PATCH] build: Do not use coverage for librtemstest
Joel Sherrill
joel at rtems.org
Fri Nov 3 13:56:18 UTC 2023
Seems reasonable.
Does this mean that anything under tests and bsps will not have coverage?
--joel
On Fri, Nov 3, 2023 at 3:58 AM Sebastian Huber <
sebastian.huber at embedded-brains.de> wrote:
> The goal is to get code and branch coverage from actual tests and not
> the test support itself.
> ---
> spec/build/cpukit/grp.yml | 2 --
> spec/build/cpukit/libdebugger.yml | 6 ++++--
> spec/build/cpukit/libftpfs.yml | 6 ++++--
> spec/build/cpukit/libjffs2.yml | 4 +++-
> spec/build/cpukit/libmghttpd.yml | 6 ++++--
> spec/build/cpukit/librtemscpu.yml | 6 ++++--
> spec/build/cpukit/librtemscxx.yml | 4 +++-
> spec/build/cpukit/librtemsdfltcfg.yml | 6 ++++--
> spec/build/cpukit/libtelnetd.yml | 6 ++++--
> spec/build/cpukit/libtftpfs.yml | 6 ++++--
> spec/build/cpukit/libz.yml | 6 ++++--
> 11 files changed, 38 insertions(+), 20 deletions(-)
>
> diff --git a/spec/build/cpukit/grp.yml b/spec/build/cpukit/grp.yml
> index e07e975d7d..7cd1f80ee7 100644
> --- a/spec/build/cpukit/grp.yml
> +++ b/spec/build/cpukit/grp.yml
> @@ -2,13 +2,11 @@ SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
> build-type: group
> cflags:
> - ${CPUKIT_OPTIMIZATION_FLAGS}
> -- ${COVERAGE_COMPILER_FLAGS}
> copyrights:
> - Copyright (C) 2020 embedded brains GmbH & Co. KG
> cppflags: []
> cxxflags:
> - ${CPUKIT_OPTIMIZATION_FLAGS}
> -- ${COVERAGE_COMPILER_FLAGS}
> enabled-by: true
> includes: []
> install: []
> diff --git a/spec/build/cpukit/libdebugger.yml
> b/spec/build/cpukit/libdebugger.yml
> index 3075ca1f9a..bc9db7b8d6 100644
> --- a/spec/build/cpukit/libdebugger.yml
> +++ b/spec/build/cpukit/libdebugger.yml
> @@ -1,10 +1,12 @@
> SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
> build-type: library
> -cflags: []
> +cflags:
> +- ${COVERAGE_COMPILER_FLAGS}
> copyrights:
> - Copyright (C) 2020 embedded brains GmbH & Co. KG
> cppflags: []
> -cxxflags: []
> +cxxflags:
> +- ${COVERAGE_COMPILER_FLAGS}
> enabled-by: BUILD_LIBDEBUGGER
> includes: []
> install: []
> diff --git a/spec/build/cpukit/libftpfs.yml
> b/spec/build/cpukit/libftpfs.yml
> index 4dc6b8c651..cc9b9f7980 100644
> --- a/spec/build/cpukit/libftpfs.yml
> +++ b/spec/build/cpukit/libftpfs.yml
> @@ -1,10 +1,12 @@
> SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
> build-type: library
> -cflags: []
> +cflags:
> +- ${COVERAGE_COMPILER_FLAGS}
> copyrights:
> - Copyright (C) 2020 embedded brains GmbH & Co. KG
> cppflags: []
> -cxxflags: []
> +cxxflags:
> +- ${COVERAGE_COMPILER_FLAGS}
> enabled-by: true
> includes: []
> install:
> diff --git a/spec/build/cpukit/libjffs2.yml
> b/spec/build/cpukit/libjffs2.yml
> index 4fec670f92..f7c74d8f21 100644
> --- a/spec/build/cpukit/libjffs2.yml
> +++ b/spec/build/cpukit/libjffs2.yml
> @@ -1,11 +1,13 @@
> SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
> build-type: library
> cflags:
> +- ${COVERAGE_COMPILER_FLAGS}
> - -Wno-pointer-sign
> copyrights:
> - Copyright (C) 2020 embedded brains GmbH & Co. KG
> cppflags: []
> -cxxflags: []
> +cxxflags:
> +- ${COVERAGE_COMPILER_FLAGS}
> enabled-by: true
> includes:
> - cpukit/libfs/src/jffs2/include
> diff --git a/spec/build/cpukit/libmghttpd.yml
> b/spec/build/cpukit/libmghttpd.yml
> index 71dbbab974..c6cbe0a8be 100644
> --- a/spec/build/cpukit/libmghttpd.yml
> +++ b/spec/build/cpukit/libmghttpd.yml
> @@ -1,10 +1,12 @@
> SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
> build-type: library
> -cflags: []
> +cflags:
> +- ${COVERAGE_COMPILER_FLAGS}
> copyrights:
> - Copyright (C) 2020 embedded brains GmbH & Co. KG
> cppflags: []
> -cxxflags: []
> +cxxflags:
> +- ${COVERAGE_COMPILER_FLAGS}
> enabled-by: true
> includes: []
> install:
> diff --git a/spec/build/cpukit/librtemscpu.yml
> b/spec/build/cpukit/librtemscpu.yml
> index 7a58a91299..9202c31715 100644
> --- a/spec/build/cpukit/librtemscpu.yml
> +++ b/spec/build/cpukit/librtemscpu.yml
> @@ -1,10 +1,12 @@
> SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
> build-type: library
> -cflags: []
> +cflags:
> +- ${COVERAGE_COMPILER_FLAGS}
> copyrights:
> - Copyright (C) 2020 embedded brains GmbH & Co. KG
> cppflags: []
> -cxxflags: []
> +cxxflags:
> +- ${COVERAGE_COMPILER_FLAGS}
> enabled-by: true
> includes: []
> install:
> diff --git a/spec/build/cpukit/librtemscxx.yml
> b/spec/build/cpukit/librtemscxx.yml
> index 3803963470..97d65a1599 100644
> --- a/spec/build/cpukit/librtemscxx.yml
> +++ b/spec/build/cpukit/librtemscxx.yml
> @@ -1,10 +1,12 @@
> SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
> build-type: library
> -cflags: []
> +cflags:
> +- ${COVERAGE_COMPILER_FLAGS}
> copyrights:
> - Copyright (C) 2020 Chris Johns (http://contemporary.software)
> cppflags: []
> cxxflags:
> +- ${COVERAGE_COMPILER_FLAGS}
> - -std=c++17
> enabled-by: true
> includes: []
> diff --git a/spec/build/cpukit/librtemsdfltcfg.yml
> b/spec/build/cpukit/librtemsdfltcfg.yml
> index 3a77aa145d..2d5722fa2c 100644
> --- a/spec/build/cpukit/librtemsdfltcfg.yml
> +++ b/spec/build/cpukit/librtemsdfltcfg.yml
> @@ -1,10 +1,12 @@
> SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
> build-type: library
> -cflags: []
> +cflags:
> +- ${COVERAGE_COMPILER_FLAGS}
> copyrights:
> - Copyright (C) 2020 embedded brains GmbH & Co. KG
> cppflags: []
> -cxxflags: []
> +cxxflags:
> +- ${COVERAGE_COMPILER_FLAGS}
> enabled-by: true
> includes: []
> install: []
> diff --git a/spec/build/cpukit/libtelnetd.yml
> b/spec/build/cpukit/libtelnetd.yml
> index 8106b67499..adfda2ba30 100644
> --- a/spec/build/cpukit/libtelnetd.yml
> +++ b/spec/build/cpukit/libtelnetd.yml
> @@ -1,10 +1,12 @@
> SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
> build-type: library
> -cflags: []
> +cflags:
> +- ${COVERAGE_COMPILER_FLAGS}
> copyrights:
> - Copyright (C) 2020 embedded brains GmbH & Co. KG
> cppflags: []
> -cxxflags: []
> +cxxflags:
> +- ${COVERAGE_COMPILER_FLAGS}
> enabled-by: true
> includes:
> - cpukit/libnetworking
> diff --git a/spec/build/cpukit/libtftpfs.yml
> b/spec/build/cpukit/libtftpfs.yml
> index 31979963f7..c20ce2c7b7 100644
> --- a/spec/build/cpukit/libtftpfs.yml
> +++ b/spec/build/cpukit/libtftpfs.yml
> @@ -1,10 +1,12 @@
> SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
> build-type: library
> -cflags: []
> +cflags:
> +- ${COVERAGE_COMPILER_FLAGS}
> copyrights:
> - Copyright (C) 2020, 2022 embedded brains GmbH & Co. KG
> cppflags: []
> -cxxflags: []
> +cxxflags:
> +- ${COVERAGE_COMPILER_FLAGS}
> enabled-by: true
> includes:
> - cpukit/libnetworking
> diff --git a/spec/build/cpukit/libz.yml b/spec/build/cpukit/libz.yml
> index 5f1ea57a17..86b261957d 100644
> --- a/spec/build/cpukit/libz.yml
> +++ b/spec/build/cpukit/libz.yml
> @@ -1,10 +1,12 @@
> SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
> build-type: library
> -cflags: []
> +cflags:
> +- ${COVERAGE_COMPILER_FLAGS}
> copyrights:
> - Copyright (C) 2020 embedded brains GmbH & Co. KG
> cppflags: []
> -cxxflags: []
> +cxxflags:
> +- ${COVERAGE_COMPILER_FLAGS}
> enabled-by: true
> includes: []
> install:
> --
> 2.35.3
>
> _______________________________________________
> devel mailing list
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20231103/49f34875/attachment-0001.htm>
More information about the devel
mailing list