mirror of https://github.com/getdnsapi/getdns.git
Old version valgrind tpkg (test mode)
This commit is contained in:
parent
d2e62acf0d
commit
213a3dc5d8
|
@ -12,6 +12,11 @@ qwerlkjhasdfpuiqwyerm.1234kjhrqwersv.com
|
||||||
-H 8.8.8.8
|
-H 8.8.8.8
|
||||||
-H 2a04:b900:0:100::37
|
-H 2a04:b900:0:100::37
|
||||||
EOT
|
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
|
|
@ -12,4 +12,10 @@ qwerlkjhasdfpuiqwyerm.1234kjhrqwersv.com
|
||||||
-H 8.8.8.8
|
-H 8.8.8.8
|
||||||
-H 2a04:b900:0:100::37
|
-H 2a04:b900:0:100::37
|
||||||
EOT
|
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
|
||||||
|
|
Loading…
Reference in New Issue