#!/bin/sh
XDEBUG_VERSION=$(dpkg-parsechangelog -SVersion | sed -e 's/-[^-]*$//' -e 's/^[0-9]*://')
git clone --depth=1 --branch="$XDEBUG_VERSION" https://github.com/xdebug/xdebug.git "$AUTOPKGTEST_TMP/xdebug"
cd "$AUTOPKGTEST_TMP/xdebug" && NO_INTERACTION=1 SKIP_ONLINE_TESTS=1 SKIP_SLOW_TESTS=1 SKIP_DBGP_TESTS=1 php run-xdebug-tests.php -d xdebug.mode=debug
