From 463618c732f55a80ca533cd601ebea8bfef3494c Mon Sep 17 00:00:00 2001 From: Jeremy Bettis Date: Mon, 30 Aug 2021 12:24:04 -0600 Subject: zephyr: Build a script to call gcov In chroot, you can always use llvm-cov to parse the coverage files, but in zephyr sdk, you have to use the right gcov binary for each toolchain. Use cmake to build a gcov shell script, and call it from zmake coverage. BUG=None TEST=zmake coverage in chroot and gitlab BRANCH=None Signed-off-by: Jeremy Bettis Change-Id: I6203445f0a412193e8280bb5cdf7994d5346fdbd Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3130622 Tested-by: Jeremy Bettis Auto-Submit: Jeremy Bettis Commit-Queue: Yuval Peress Reviewed-by: Yuval Peress --- zephyr/gcov.tmpl.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 zephyr/gcov.tmpl.sh (limited to 'zephyr/gcov.tmpl.sh') diff --git a/zephyr/gcov.tmpl.sh b/zephyr/gcov.tmpl.sh new file mode 100755 index 0000000000..96bd82ab51 --- /dev/null +++ b/zephyr/gcov.tmpl.sh @@ -0,0 +1,7 @@ +#!/bin/bash +# +# Copyright 2021 The Chromium OS Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +exec ${CMAKE_GCOV} "$@" -- cgit v1.2.1