diff options
author | Stewart Smith <stewart@linux.vnet.ibm.com> | 2017-07-17 19:07:49 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2017-07-19 15:49:39 +1000 |
commit | 36698d130b522d99437c07b24124ca30a94deea8 (patch) | |
tree | 41e744d50647cd8e8bc9cd1bd553e5a8ff928d7e /external | |
parent | 22abfd2d18ee2a613e63745aeef1260a3cf4d4ff (diff) | |
download | skiboot-36698d130b522d99437c07b24124ca30a94deea8.zip skiboot-36698d130b522d99437c07b24124ca30a94deea8.tar.gz skiboot-36698d130b522d99437c07b24124ca30a94deea8.tar.bz2 |
gcov: properly handle gard and pflash code coverage
We end up with a bit of a nasty hack to count the libflash symlinks
in gard and pflash as part of libflash code coverage, but it does
work and is unlikely to break anytime soon.
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'external')
-rw-r--r-- | external/gard/test/Makefile.check | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/external/gard/test/Makefile.check b/external/gard/test/Makefile.check index 10cb7d1..593d053 100644 --- a/external/gard/test/Makefile.check +++ b/external/gard/test/Makefile.check @@ -6,7 +6,7 @@ check: check-gard #make clean before checking. If not, .o files for different #architectures might be lying around and clean once done to #avoid the opposite -check-gard: gard-test-clean +check-gard: gard-test-clean gard $(call QTEST, RUN-TEST , make CC=$(HOSTCC) CROSS='' CROSS_COMPILE='' -C external/gard/ check, $@) $(call QTEST, CLEANUP , make CC=$(HOSTCC) CROSS='' CROSS_COMPILE='' -C external/gard/ clean, $@) @@ -14,6 +14,12 @@ check-gard: gard-test-clean clean: gard-test-clean +.PHONY: gard-coverage + +coverage: gard-coverage + +gard-coverage: check-gard + gard-test-clean: $(call QTEST, CLEANUP , make -C external/gard clean, $@) |