#!/bin/sh

[ -e debian/tests.home ] || mkdir debian/tests.home
export HOME="$(pwd)/debian/tests.home"
mkdir -p "$HOME"/.config || true
trap "rm -rf debian/tests.home" EXIT

# Disable xcf simple-rgb-gimp-2.8.10.xcf test
mv autotests/read/xcf/simple-rgb-gimp-2.8.10.xcf \
    autotests/read/xcf/simple-rgb-gimp-2.8.10.xcf.disabled

# Disable xcf simple-rgba-gimp-2.8.10.xcf test
mv autotests/read/xcf/simple-rgba-gimp-2.8.10.xcf \
    autotests/read/xcf/simple-rgba-gimp-2.8.10.xcf.disabled

xvfb-run -a --server-args="-screen 0 1024x768x24" \
    dbus-run-session -- debian/tests/testsuite.xsession
