Add call to picohttp_ct in test.
@@ -44,6 +44,22 @@ jobs:
echo "$leaked <= $previous_leak";
fi
else
- echo "No leaks detected"
+ echo "No leaks detected in picoquic_ct"
+ fi
+ ./picohttp_ct -n -r 2>sanity.txt
+ QUICHTTPRESULT=$?
+ echo "running picohttp_ct returns $QUICHTTPRESULT "
+ cat sanity.txt
+ if [ ${QUICHTTPRESULT} != 0 ]; then exit 1; fi;
+ leaked=`grep "SUMMARY: AddressSanitizer:" sanity.txt | cut -d ' ' -f 3`
+ previous_leak=0
+ if [ ! -z "$leaked" ]; then
+ if [ $leaked -gt $previous_leak ]; then
+ echo "$leaked > $previous_leak"; exit 1;
+ else
+ echo "$leaked <= $previous_leak";
+ fi
+ else
+ echo "No leaks detected in picoquic_ct"
fi
exit 0
\ No newline at end of file
