#!/bin/sh

set -e
set -u

rm -rf Tests/base/NSURL/test00.m
rm -rf Tests/base/NSURL/test01.m
rm -rf Tests/base/NSURLHandle/test01.m

export GNUSTEP_MAKEFILES=/usr/share/GNUstep/Makefiles

# Some tests require config.mak and GSConfig.h.
# Arguments to configure must be kept in sync with those in the
# override_dh_auto_configure target in debian/rules.
./configure CURRENT_GNUSTEP_MAKEFILES=$GNUSTEP_MAKEFILES \
            --with-installation-domain=SYSTEM --disable-bfd  \
    || (cat config.log; exit 1)

gnustep-tests Tests/base || (cat tests.log; exit 1)

exit 0
