diff options
Diffstat (limited to 'debian/tests')
-rw-r--r-- | debian/tests/control | 2 | ||||
-rw-r--r-- | debian/tests/upstream-tests | 19 |
2 files changed, 21 insertions, 0 deletions
diff --git a/debian/tests/control b/debian/tests/control new file mode 100644 index 0000000..5a8f97d --- /dev/null +++ b/debian/tests/control @@ -0,0 +1,2 @@ +Tests: upstream-tests +Depends: @, @builddeps@, build-essential diff --git a/debian/tests/upstream-tests b/debian/tests/upstream-tests new file mode 100644 index 0000000..8f89386 --- /dev/null +++ b/debian/tests/upstream-tests @@ -0,0 +1,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 |