#!/bin/sh

set +x
set -e

# generate outoload-files. keep in sync with debian/rules::override_dh_auto_build

phpab --template debian/autoload-test-autopkgtest.php.tpl \
  --output test/autoload.php \
  test

SKIP_32_BIT="$(php -n -r "echo PHP_INT_SIZE === 4 ? ',32bit-incompatible' : '';")"

# keep in sync with debian/rules::override_dh_auto_test
LC_ALL=C.UTF-8 phpunit --bootstrap $(dirname $0)/config.php --no-coverage --exclude-group selenium,network,git-revision,environment,extension-iconv$SKIP_32_BIT
