plugin: shell
id: rendercheck/tests
requires:
 package.name == 'x11-apps'
command: ( rendercheck_test -b repeat -b gradients -d -o $PLAINBOX_SESSION_SHARE/rendercheck-results && echo "Rendercheck tests completed successfully" ) || ( echo "Error running rendercheck. Please see the log $PLAINBOX_SESSION_SHARE/rendercheck-results for details" >&2 && false )
_description:
 Runs all of the rendercheck test suites. This test can take a few minutes.

plugin: attachment
id: rendercheck/tarball
depends: rendercheck/tests
command: [ -e $PLAINBOX_SESSION_SHARE/rendercheck-results ] && tar cvfz $PLAINBOX_SESSION_SHARE/rendercheck-results.tar.gz $PLAINBOX_SESSION_SHARE/rendercheck-results && cat $PLAINBOX_SESSION_SHARE/rendercheck-results.tar.gz
_description: Attach log from rendercheck tests

