Skip to content
Snippets Groups Projects
Commit 6ef5ec6a authored by Guido Gunther's avatar Guido Gunther :zzz:
Browse files

smoketest: Check for definite leaks

parent 14cf060a
No related branches found
No related tags found
No related merge requests found
...@@ -9,6 +9,7 @@ WORKDIR=$(mktemp -d) ...@@ -9,6 +9,7 @@ WORKDIR=$(mktemp -d)
PHOSH_LOG="${OUTDIR}/phosh.log" PHOSH_LOG="${OUTDIR}/phosh.log"
WLROOTS_LOG="${OUTDIR}/rootston.log" WLROOTS_LOG="${OUTDIR}/rootston.log"
ROOTSTON_CONFIG="${WORKDIR}/rootston.ini" ROOTSTON_CONFIG="${WORKDIR}/rootston.ini"
VGDUMP="./vgdump"
TIMEOUT=5 TIMEOUT=5
function cleanup () { function cleanup () {
...@@ -104,20 +105,26 @@ sleep "${TIMEOUT}" ...@@ -104,20 +105,26 @@ sleep "${TIMEOUT}"
! kill -0 $PHOSH_PID >&/dev/null ! kill -0 $PHOSH_PID >&/dev/null
echo "yes." echo "yes."
if grep "WARNING" "${PHOSH_LOG}"; then echo "Started/stopped phosh successfully"
echo "Found error log messages" RET=0
cat ${PHOSH_LOG}
if grep -qs "WARNING" "${PHOSH_LOG}"; then
echo "Found warning log messages" 1>&2
# We're having warnings due to missing DBus # We're having warnings due to missing DBus
# services and gnome-session depending on X11 # services and gnome-session depending on X11.
#exit 1 # python-dbusmock I'm looking at you
#RET=1
fi fi
if grep -E "CRITICAL" "${PHOSH_LOG}"; then if grep -qs "CRITICAL" "${PHOSH_LOG}"; then
echo "Found error log messages" echo "Found critical log messages" 1>&2
cat ${PHOSH_LOG} RET=1
exit 1 fi
if [ -n "${PHOSH_VALGRIND}" ] && grep -qs "definitely lost in loss record" "${VGDUMP}"; then
echo "Found memory leaks" 1>&2
cat ${VGDUMP}
RET=1
fi fi
echo "Started/stopped phosh successfully"
RET=0
exit $RET exit $RET
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment