From d50276d6fe7baaedb3b04b622eaae1146ca7a444 Mon Sep 17 00:00:00 2001 From: Michael Rash <mbr@cipherdyne.org> Date: Sat, 18 Aug 2018 19:46:47 -0700 Subject: [PATCH] [test suite] better job of cleaning up coverage files --- test/init-lcov.sh | 4 ++++ test/rm-coverage-files.sh | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/test/init-lcov.sh b/test/init-lcov.sh index 3cb15659..e90ca8b1 100755 --- a/test/init-lcov.sh +++ b/test/init-lcov.sh @@ -6,6 +6,10 @@ cd .. [ ! -d $TOP_DIR ] && mkdir $TOP_DIR [ -f $LCOV_BASE ] && rm -f $LCOV_BASE [ -f $LCOV_INFO ] && rm -f $LCOV_INFO +[ -f $LCOV_INFO_TMP ] && rm -f $LCOV_INFO_TMP +[ -f $LCOV_INFO_TMP2 ] && rm -f $LCOV_INFO_TMP2 +[ -f $LCOV_INFO_TMP3 ] && rm -f $LCOV_INFO_TMP3 +[ -f $LCOV_INFO_TMP4 ] && rm -f $LCOV_INFO_TMP4 [ -f $LCOV_INFO_FINAL ] && rm -f $LCOV_INFO_FINAL [ -d $LCOV_RESULTS_DIR ] && rm -rf $LCOV_RESULTS_DIR [ ! -d $LCOV_RESULTS_DIR ] && mkdir $LCOV_RESULTS_DIR diff --git a/test/rm-coverage-files.sh b/test/rm-coverage-files.sh index 9bb474dc..9d098ec7 100755 --- a/test/rm-coverage-files.sh +++ b/test/rm-coverage-files.sh @@ -1,7 +1,7 @@ #!/bin/sh -x cd .. -for d in client server lib +for d in client server lib common do for s in *.gcda *.gcno *.gcov do -- GitLab