File: testsuite

package info (click to toggle)
gnustep-netclasses 1.06.dfsg%2Breally1.1.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 668 kB
  • sloc: objc: 4,272; makefile: 27; sh: 24
file content (32 lines) | stat: -rwxr-xr-x 957 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/sh

set -e

export GNUSTEP_MAKEFILES=/usr/share/GNUstep/Makefiles
export GNUSTEP_INSTALLATION_DOMAIN=SYSTEM

if [ -z $AUTOPKGTEST_TMP ]; then
    # The script is invoked from the override_dh_auto_test target.
    make install DESTDIR=`pwd`/test
    export LD_LIBRARY_PATH=/usr/lib:`pwd`/test/usr/lib/${DEB_HOST_MULTIARCH}
    export ADDITIONAL_INCLUDE_DIRS=-I`pwd`/test/usr/include/${DEB_HOST_MULTIARCH}/GNUstep
    export ADDITIONAL_LIB_DIRS=-L`pwd`/test/usr/lib/${DEB_HOST_MULTIARCH}
    export LD=$OBJC
    dpkg-buildflags --export=sh
fi

if [ "`echo "$DEB_BUILD_OPTIONS" | grep terse`" ]; then
    verbose=
else
    verbose="messages=yes"
fi

make -e -C testsuite $verbose
# Skip test on big-endian architectures as it's doomed to fail there.
if [ $(dpkg-architecture -q DEB_HOST_ARCH_ENDIAN) = "little" ]; then
    ./testsuite/conversions
fi
./testsuite/testtcp
# Cleaning for the sake of build-time testing.
make -C testsuite clean
rm -rf test