#!/bin/sh

set -e

# Should be kept in sync with the variable definitions at debian/rules.
SKIP="2d-imageio|2dmyocardsegset-io-xml|3d-vectorfield|3d-rigidregister|cmdlineparseroutput|cmdxmlhelp|fastica-implementation-fastica"
if [ $(dpkg-architecture --query DEB_HOST_ARCH_BITS) -eq 32 ]; then
    SKIP_32="|2dimage-cost-lsd"
fi

dh_auto_test -- ARGS\+="--exclude-regex \"${SKIP}${SKIP_32}\""
