diff --git a/README.md b/README.md index 09657922..cc8b522d 100644 --- a/README.md +++ b/README.md @@ -106,7 +106,7 @@ with: * getdns can be configured for stub resolution mode only with the `--enable-stub-only` option to configure. This removed the dependency on `libunbound`. * Currently getdns only offers two helper functions to deal with IDN: `getdns_convert_ulabel_to_alabel` and `getdns_convert_alabel_to_ulabel`. If you do not need these functions, getdns can be configured to compile without them with the `--without-libidn` option to configure. -* When both `--enable-stub-only` and `--with-libidn` options are used, getdns has only one dependency left, which is OpenSSL. +* When both `--enable-stub-only` and `--without-libidn` options are used, getdns has only one dependency left, which is OpenSSL. ## Extensions / Event loop dependencies diff --git a/src/test/tpkg/run-all-lcov.sh b/src/test/tpkg/run-all-lcov.sh new file mode 100755 index 00000000..5e5bfffe --- /dev/null +++ b/src/test/tpkg/run-all-lcov.sh @@ -0,0 +1,18 @@ +#!/bin/sh + +export SRCDIR=`dirname $0` +. `dirname $0`/setup-env.sh + +LCOV_MERGE="" +for TEST_PKG in ${SRCDIR}/*.tpkg +do + # when we run our test, we need to compile with profiling + CFLAGS="-fprofile-arcs -ftest-coverage -O0" "${TPKG}" $* exe "${TEST_PKG}" + # after the test is complete, we need to collect the coverage data + INFO_FILE=`echo $TEST_PKG | sed 's/.tpkg$//'`.info + geninfo $SRCDIR/.. -o $INFO_FILE + LCOV_MERGE="$LCOV_MERGE -a $INFO_FILE" +done +lcov $LCOV_MERGE -o run-all.info +genhtml run-all.info --output-directory coverage-html +"${TPKG}" r