5th time's a charm

This commit is contained in:
Willem Toorop 2016-03-22 10:16:15 +01:00
parent 255e60cdcd
commit 091d41dfe0
3 changed files with 15 additions and 14 deletions

View File

@ -18,13 +18,9 @@ EOT
exit 1 exit 1
fi fi
) 2>&1 > output ) 2>&1 > output
echo '**************************************' if ! awk '/^==.*(definitely|indirectly|possibly) lost/{print;if($4>0)exit(1)}' valgrind.log
echo '************** hiero ***************' then
echo '************** ***************' cat valgrind.log
awk '/^==.*(definitely|indirectly|possibly) lost/{print;if($4>0)exit(1)}' valgrind.log cat output
echo '************** ***************' exit 1
echo '************** hiero ***************' fi
echo '**************************************'
cat valgrind.log
cat output
exit 1

View File

@ -13,9 +13,14 @@ qwerlkjhasdfpuiqwyerm.1234kjhrqwersv.com
-H 2a04:b900:0:100::37 -H 2a04:b900:0:100::37
EOT EOT
( (
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 if ! "${BUILDDIR}/build-stub-only/libtool" exec valgrind -v --log-file=valgrind.log --leak-check=full --error-exitcode=1 --track-origins=yes "${GETDNS_STUB_QUERY}" -F queries -f "${TPKG_NAME}.ds" +dnssec_return_validation_chain
then then
exit 1 exit 1
fi fi
) 2>&1 | tee output ) 2>&1 > output
awk '/^==.*(definitely|indirectly|possibly) lost/{print;if($4>0)exit(1)}' output if ! awk '/^==.*(definitely|indirectly|possibly) lost/{print;if($4>0)exit(1)}' valgrind.log
then
cat valgrind.log
cat output
exit 1
fi

View File

@ -3,7 +3,7 @@
export SRCDIR=`dirname $0` export SRCDIR=`dirname $0`
. `dirname $0`/setup-env.sh . `dirname $0`/setup-env.sh
for TEST_PKG in ${SRCDIR}/125-*.tpkg for TEST_PKG in ${SRCDIR}/*.tpkg
do do
"${TPKG}" $* exe "${TEST_PKG}" "${TPKG}" $* exe "${TEST_PKG}"
done done