From 1333020b904a8714d01f4ae4789c5070e8ff90f2 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 10:50:33 +0200 Subject: Adding debian version 2:9.0.1378-2. Signed-off-by: Daniel Baumann --- debian/tests/control | 15 +++++++++++++++ debian/tests/upstreamtest | 11 +++++++++++ debian/tests/variants | 7 +++++++ 3 files changed, 33 insertions(+) create mode 100644 debian/tests/control create mode 100755 debian/tests/upstreamtest create mode 100755 debian/tests/variants (limited to 'debian/tests') diff --git a/debian/tests/control b/debian/tests/control new file mode 100644 index 0000000..fd5ed50 --- /dev/null +++ b/debian/tests/control @@ -0,0 +1,15 @@ +Test-Command: ./debian/tests/variants --version +Depends: @ +Restrictions: superficial + +Test-Command: ./debian/tests/upstreamtest /usr/bin/vim +Depends: vim, cscope, procps, python3, xxd +Restrictions: needs-root, allow-stderr, flaky + +Test-Command: ./debian/tests/upstreamtest /usr/bin/vim +Depends: vim-nox, cscope, procps, xxd +Restrictions: needs-root, allow-stderr, flaky + +Test-Command: ./debian/tests/upstreamtest /usr/bin/vi +Depends: vim-tiny, xxd +Restrictions: needs-root, allow-stderr, flaky 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 diff --git a/debian/tests/variants b/debian/tests/variants new file mode 100755 index 0000000..71e4164 --- /dev/null +++ b/debian/tests/variants @@ -0,0 +1,7 @@ +#!/bin/sh +set -eu + +for variant in /usr/bin/vim.* +do + $variant "$@" +done -- cgit v1.2.3