summaryrefslogtreecommitdiffstats
path: root/debian/tests/upstreamtest
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 08:50:33 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 08:50:33 +0000
commit1333020b904a8714d01f4ae4789c5070e8ff90f2 (patch)
tree338ef4570c790f46661f010deeebaaecc58c9bbc /debian/tests/upstreamtest
parentAdding upstream version 2:9.0.1378. (diff)
downloadvim-debian.tar.xz
vim-debian.zip
Adding debian version 2:9.0.1378-2.debian/2%9.0.1378-2debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/tests/upstreamtest')
-rwxr-xr-xdebian/tests/upstreamtest11
1 files changed, 11 insertions, 0 deletions
diff --git a/debian/tests/upstreamtest b/debian/tests/upstreamtest
new file mode 100755
index 0000000..6dc0a8d
--- /dev/null
+++ b/debian/tests/upstreamtest
@@ -0,0 +1,11 @@
+#!/bin/sh
+set -e
+
+if [ -z "$AUTOPKGTEST_NORMAL_USER" ]; then
+ adduser --quiet --disabled-login --gecos '' vim-ci
+ AUTOPKGTEST_NORMAL_USER=vim-ci
+fi
+
+cp -a "$(pwd)" "$AUTOPKGTEST_TMP"/vim
+chown -R "$AUTOPKGTEST_NORMAL_USER" "$AUTOPKGTEST_TMP"/vim
+runuser -u "$AUTOPKGTEST_NORMAL_USER" -- env TERM=xterm make -C "$AUTOPKGTEST_TMP"/vim/src/testdir VIMPROG="$1" XXDPROG=/usr/bin/xxd SCRIPTSOURCE="$(pwd)"/runtime