3
# A thin wrapper that sets up an environment, runs a test, and exits with an
4
# error if the test does not write a file indicating success.
5
# Copyright Canonical, 2013. Author: Chad MILLER <chad.miller@canonical.com>
13
trap "rm -rf ${WORKDIR}" EXIT INT QUIT ABRT PIPE TERM
17
script=$(readlink -m -- ${0}-actual)
20
LC_ALL=C HOME=${WORKDIR} xvfb-run ${script} ${SRCDIR} 2>&1
22
test -f ${WORKDIR}/result-success && echo PASS || echo FAIL