#!/bin/sh

set -e

. $(dirname $0)/../common

# Get build-dependencies (debhelper and dh-octave excluded)
builddeps=$(parse_control 'Build-Depends' 'debhelper dh-octave')

cat <<EOF
Test-Command: DH_OCTAVE_TEST_ENV="xvfb-run -a" /usr/bin/dh_octave_check --use-installed-package
Depends: @, $builddeps dh-octave-autopkgtest (>= 0.5.6), xauth, xvfb, ${pkg_octave_extra_depends:-}
Restrictions: allow-stderr, ${pkg_octave_extra_restrictions:-}
EOF
