mirror of https://github.com/getdnsapi/getdns.git
Coverage linking + missing constant in str2int
This commit is contained in:
parent
cf3d4a4b2e
commit
e80d3340c6
|
@ -826,6 +826,7 @@ static struct const_name_info consts_name_info[] = {
|
||||||
{ "GETDNS_RCODE_BADTIME", 18 },
|
{ "GETDNS_RCODE_BADTIME", 18 },
|
||||||
{ "GETDNS_RCODE_BADTRUNC", 22 },
|
{ "GETDNS_RCODE_BADTRUNC", 22 },
|
||||||
{ "GETDNS_RCODE_BADVERS", 16 },
|
{ "GETDNS_RCODE_BADVERS", 16 },
|
||||||
|
{ "GETDNS_RCODE_COOKIE", 23 },
|
||||||
{ "GETDNS_RCODE_FORMERR", 1 },
|
{ "GETDNS_RCODE_FORMERR", 1 },
|
||||||
{ "GETDNS_RCODE_NOERROR", 0 },
|
{ "GETDNS_RCODE_NOERROR", 0 },
|
||||||
{ "GETDNS_RCODE_NOTAUTH", 9 },
|
{ "GETDNS_RCODE_NOTAUTH", 9 },
|
||||||
|
|
|
@ -15,7 +15,7 @@ LCOV_MERGE=""
|
||||||
for TEST_PKG in ${SRCDIR}/*.tpkg
|
for TEST_PKG in ${SRCDIR}/*.tpkg
|
||||||
do
|
do
|
||||||
# when we run our test, we need to compile with profiling
|
# when we run our test, we need to compile with profiling
|
||||||
CFLAGS="-fprofile-arcs -ftest-coverage -O0" "${TPKG}" $* exe "${TEST_PKG}"
|
LDFLAGS="-lgcov --coverage" CFLAGS="-fprofile-arcs -ftest-coverage -O0" "${TPKG}" $* exe "${TEST_PKG}"
|
||||||
# after the test is complete, we need to collect the coverage data
|
# after the test is complete, we need to collect the coverage data
|
||||||
INFO_FILE=`echo $TEST_PKG | sed 's/.tpkg$//'`.info
|
INFO_FILE=`echo $TEST_PKG | sed 's/.tpkg$//'`.info
|
||||||
geninfo $SRCDIR/.. -o $INFO_FILE
|
geninfo $SRCDIR/.. -o $INFO_FILE
|
||||||
|
|
Loading…
Reference in New Issue