From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mx.groups.io with SMTP id smtpd.web11.4525.1663075472780869776 for ; Tue, 13 Sep 2022 06:24:33 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=QAFk/slP; spf=pass (domain: intel.com, ip: 192.55.52.93, mailfrom: gua.guo@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1663075472; x=1694611472; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=SHByetnMLLjNafxxQJugTe7LD4A+Mc+YEg8Ongf0/KM=; b=QAFk/slPJXZII/OS8O4KiFbUoFEwNF4aJfF2dY9wUaDIVe9doLeAuBzn 3KClvGrnSE6K5mhtx6JgPwzm4ypU53uKNmXp54TCARhHImgVlHqz5URR2 Srg8Fn51JHBSvyBIoNtVPsd7qUeQLZgt7snSLGigOwaOjqOGoACy6pqIZ HsmXF1A++SQYs0qfoDoy82aaK9C05cbz0OhdS2YFl+DIXO+T/2rznVg9R HAbA2fuuLERDyLvTIPZQDxYwfqkIIfCwGnMGXsw58ZnYZj2vVKP+GH0ic A2Ak/xaJDRcpK3GWjPd1E8eflw4izedVW0e/LS8i2ew5pR0wfzNIHZ7xg w==; X-IronPort-AV: E=McAfee;i="6500,9779,10468"; a="295726215" X-IronPort-AV: E=Sophos;i="5.93,312,1654585200"; d="scan'208";a="295726215" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Sep 2022 06:24:32 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,312,1654585200"; d="scan'208";a="593937239" Received: from gguo-desk.gar.corp.intel.com ([10.5.215.23]) by orsmga006.jf.intel.com with ESMTP; 13 Sep 2022 06:24:30 -0700 From: "Guo, Gua" To: devel@edk2.groups.io Cc: Gua Guo , Michael D Kinney , Sean Brogan , Bret Barkelew , Michael Kubacki Subject: [PATCH] UnitTestFrameworkPkg: Add code coverage support for GCC Date: Tue, 13 Sep 2022 21:24:26 +0800 Message-Id: <15e8fe2d2709a822fdbc4956ceb2c4b92412e523.1663075356.git.gua.guo@intel.com> X-Mailer: git-send-email 2.31.1.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Gua Guo In order to collect code coverage after running executable file, generate *.gcda and *.gcno file that require by lcov tool to generate code coverage report. Cc: Michael D Kinney Cc: Sean Brogan Cc: Bret Barkelew Cc: Michael Kubacki Signed-off-by: Gua Guo --- UnitTestFrameworkPkg/UnitTestFrameworkPkgHost.dsc.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UnitTestFrameworkPkg/UnitTestFrameworkPkgHost.dsc.inc b/UnitTe= stFrameworkPkg/UnitTestFrameworkPkgHost.dsc.inc index 4dd8d4ac67..8623aecb33 100644 --- a/UnitTestFrameworkPkg/UnitTestFrameworkPkgHost.dsc.inc +++ b/UnitTestFrameworkPkg/UnitTestFrameworkPkgHost.dsc.inc @@ -19,7 +19,7 @@ MemoryAllocationLib|UnitTestFrameworkPkg/Library/Posix/MemoryAllocationL= ibPosix/MemoryAllocationLibPosix.inf=0D =0D [BuildOptions]=0D - GCC:*_*_*_CC_FLAGS =3D -fno-pie=0D + GCC:*_*_*_CC_FLAGS =3D -fno-pie -ftest-coverage -fprofile-arcs=0D !ifdef $(UNIT_TESTING_DEBUG)=0D MSFT:*_*_*_CC_FLAGS =3D -D UNIT_TESTING_DEBUG=3D1=0D GCC:*_*_*_CC_FLAGS =3D -D UNIT_TESTING_DEBUG=3D1=0D --=20 2.31.1.windows.1