Old version valgrind tpkg (test mode)

This commit is contained in:
Willem Toorop 2016-03-22 09:37:01 +01:00
parent d2e62acf0d
commit 213a3dc5d8
2 changed files with 15 additions and 4 deletions

View File

@ -12,6 +12,11 @@ qwerlkjhasdfpuiqwyerm.1234kjhrqwersv.com
-H 8.8.8.8
-H 2a04:b900:0:100::37
EOT
valgrind -v --leak-check=full --error-exitcode=1 --errors-for-leak-kinds=definite,possible --track-origins=yes true || valgrind --help
"${BUILDDIR}/build/libtool" exec valgrind -v --leak-check=full --error-exitcode=1 --errors-for-leak-kinds=definite,possible --track-origins=yes "${GETDNS_QUERY}" -F queries -f "${TPKG_NAME}.ds" +dnssec_return_validation_chain
(
if ! "${BUILDDIR}/build/libtool" exec valgrind -v --leak-check=full --error-exitcode=1 --track-origins=yes "${GETDNS_QUERY}" -F queries -f "${TPKG_NAME}.ds" +dnssec_return_validation_chain
then
exit 1
fi
) 2>&1 | tee output
awk '/^==.*(definitely|indirectly|possibly) lost/{print;if($4>0)exit(1)}' output
exit 1

View File

@ -12,4 +12,10 @@ qwerlkjhasdfpuiqwyerm.1234kjhrqwersv.com
-H 8.8.8.8
-H 2a04:b900:0:100::37
EOT
"${BUILDDIR}/build-stub-only/libtool" exec valgrind -v --leak-check=full --error-exitcode=1 --errors-for-leak-kinds=definite,possible --track-origins=yes "${GETDNS_STUB_QUERY}" -F queries -f "${TPKG_NAME}.ds" +dnssec_return_validation_chain
(
if ! "${BUILDDIR}/build-stub-only/libtool" exec valgrind -v --leak-check=full --error-exitcode=1 --track-origins=yes "${GETDNS_STUB_QUERY}" -F queries -f "${TPKG_NAME}.ds" +dnssec_return_validation_chain
then
exit 1
fi
) 2>&1 | tee output
awk '/^==.*(definitely|indirectly|possibly) lost/{print;if($4>0)exit(1)}' output