diff options
Diffstat (limited to '')
-rwxr-xr-x | debian/tests/upstreamtest | 11 |
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 |