diff options
author | Petteri Aimonen <jpa@git.mail.kapsi.fi> | 2014-04-05 13:26:37 +0300 |
---|---|---|
committer | Petteri Aimonen <jpa@git.mail.kapsi.fi> | 2014-04-05 13:26:37 +0300 |
commit | a8de6acf2df23104be8907b9e3ed8647b33df6e2 (patch) | |
tree | 7246f8d4607220cd3e6770907699e40431519323 /tests/SConstruct | |
parent | 7880f308ea996292d5e28a81618370d79e2bdf26 (diff) |
Add rule for building coverage summary using lcov.
Also modified a few tests to be more compatible with coverage information,
so that they use the same pb_encode/decode.c instead of making a copy.
Diffstat (limited to 'tests/SConstruct')
-rw-r--r-- | tests/SConstruct | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/SConstruct b/tests/SConstruct index b6b877f7..e7aa4717 100644 --- a/tests/SConstruct +++ b/tests/SConstruct @@ -91,9 +91,9 @@ if 'gcc' in env['CC']: # GNU Compiler Collection # Debug info, warnings as errors - env.Append(CFLAGS = '-ansi -pedantic -g -O0 -Wall -Werror --coverage -fstack-protector-all') + env.Append(CFLAGS = '-ansi -pedantic -g -O0 -Wall -Werror -fprofile-arcs -ftest-coverage -fstack-protector-all') env.Append(CORECFLAGS = '-Wextra') - env.Append(LINKFLAGS = '--coverage') + env.Append(LINKFLAGS = '-g --coverage') # We currently need uint64_t anyway, even though ANSI C90 otherwise.. env.Append(CFLAGS = '-Wno-long-long') |