meta-agl-profile-core: Add support for running gcovr on target 29/25329/2
authorScott Murray <scott.murray@konsulko.com>
Mon, 21 Sep 2020 17:21:10 +0000 (13:21 -0400)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Wed, 30 Sep 2020 12:58:08 +0000 (12:58 +0000)
commit222dd0de1fbd0b8c148d8380dde91e46f07a274c
treee88676e9a1e98fefb12c3d6445eff9042958a7cc
parentce4ba096621d87755e6d5e67b2aa6f4671707262
meta-agl-profile-core: Add support for running gcovr on target

Changes:
- Add recipe for gcovr gcov-based coverage report generating tool.
- Add bbappend to apply patch to gcovr to add a new command-line
  option that allows working with the coverage information from the
  AGL widgets on target.  The goal is to get this change upstream,
  hence not having it in the recipe (which also will be sent for
  inclusion in meta-oe).
- Add a recipe to install an included wrapper script for gcovr
  (unsurprisingly named "gcovr-wrapper") that enables running it
  against bindings on target.  The script supports installing the
  coverage version of a binding and running pyagl tests, afm-test
  test widget, or a user-supplied command before running gcovr in a
  carefully crafted environment that will allow it to work without
  impacting the root filesystem of the target.
- Add gcov-symlinks, gcovr, and gcovr-wrapper to the
  packagegroup-agl-core-devel package group so they will be
  available in agl-devel images.  The gcov-symlinks package adds
  /usr/bin/gcov, which simplifies picking it up for gcovr.

Bug-AGL: SPEC-3589

Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Change-Id: Ia2fdc200e4e0683f93a6e2a863311cd2107c962b
Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/25337
Tested-by: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org>
ci-image-build: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org>
ci-image-boot-test: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org>
Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
(cherry picked from commit 6ac60a0f98d9048fa7dd3cbcd95a9409cbe0c4fa)
Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/25329
meta-agl-profile-core/recipes-devtools/packagegroups/packagegroup-agl-core-devel.bb
meta-agl-profile-core/recipes-test/gcovr-wrapper/gcovr-wrapper/gcovr-wrapper [new file with mode: 0644]
meta-agl-profile-core/recipes-test/gcovr-wrapper/gcovr-wrapper_1.0.bb [new file with mode: 0644]
meta-agl-profile-core/recipes-test/gcovr/gcovr/0001-add-gcov-filter-source-errors-option.patch [new file with mode: 0644]
meta-agl-profile-core/recipes-test/gcovr/gcovr_%.bbappend [new file with mode: 0644]
meta-agl-profile-core/recipes-test/gcovr/gcovr_git.bb [new file with mode: 0644]