summaryrefslogtreecommitdiffstats
path: root/debian/tests
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 16:14:32 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 16:14:32 +0000
commit8ea997b6315ec29d6ddd5bf1232ef46dfb18151f (patch)
tree6ed8422504a14f49b53eacf48f737f0565b27fcd /debian/tests
parentAdding upstream version 3.2.7. (diff)
downloadrsync-8ea997b6315ec29d6ddd5bf1232ef46dfb18151f.tar.xz
rsync-8ea997b6315ec29d6ddd5bf1232ef46dfb18151f.zip
Adding debian version 3.2.7-1.debian/3.2.7-1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/tests')
-rw-r--r--debian/tests/control2
-rw-r--r--debian/tests/upstream-tests19
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