summaryrefslogtreecommitdiffstats
path: root/debian/tests/upstream-tests
blob: 8f8938632d29b327d45b9ce7f3ba6b267ecb7fc3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh
set -e

if [ -n "${DEB_HOST_GNU_TYPE:-}" ]; then
  CROSS_COMPILE="--host=$DEB_HOST_GNU_TYPE"
else
  CROSS_COMPILE=
fi

# Create needed files for tests
# Supress warnings (autopkg treats them as failures)
./prepare-source build 2>/dev/null
./configure.sh "$CROSS_COMPILE" 2>/dev/null

# Supress gcc warnings (autopkg treats them as failures)
make tls getgroups getfsdev trimslash t_unsafe wildtest testrun 2>/dev/null

# Run tests
rsync_bin="/usr/bin/rsync" ./runtests.sh