#!/bin/sh
# Copyright 2019 Collabora Ltd.
# Copyright 2021 Simon McVittie
# SPDX-License-Identifier: Zlib
# (see "zlib/libpng" in debian/copyright)

set -eux

set -- xvfb-run -a

for dir in /usr/lib/*/installed-tests/SDL2_gfx; do
    cd "$dir"
    "$@" ./testframerate --seconds 2
    "$@" ./testgfx --once
    "$@" ./testimagefilter
    "$@" ./testrotozoom --once
done
