Improve coverage computation
This commit is contained in:
1 parent
1d163a396e
commit
aebe1308fc
8 files changed
+22
-8
No files matched your search
+1
-1
@@ -68,7 +68,7 @@ all:
|
||||
awk ' printit { print } /END_COVERAGE/ { printit=1}' $< > $<.end.c
|
||||
$(CC) $(CPPFLAGS) -E -DNDEBUG -DWITHIN_COVERAGE $< |grep -v '^#' |awk ' /END_COVERAGE/ { printit=0} printit { print } /START_COVERAGE/ { printit=1 }' |perl -p -e "s/;(?![\"'])/;\n/g ; s/}(?![\"'])/}\n/g ; s/{(?![\"'])/{\n/g" > $<.middle.c
|
||||
cat $<.first.c $<.middle.c $<.end.c > $<.c
|
||||
$(CC) $(CPPFLAGS) -ftest-coverage -fprofile-arcs -O -g $<.c -o $<.exe $(LDFLAGS)
|
||||
$(CC) $(CPPFLAGS) -DBUILD_COVERAGE -ftest-coverage -fprofile-arcs -O -g $<.c -o $<.exe $(LDFLAGS)
|
||||
$(LOG_COMPILER) ./$<.exe
|
||||
LANG=C gcov -b $<.gcno > `basename $< .c`.synt
|
||||
cat `basename $< .c`.synt
|
||||
|
||||
Reference in new issue
Block a user