summaryrefslogtreecommitdiffstats
path: root/debian/tests/upstreamtest
blob: 11340aa72503d8f2c9b8d974fa478c7361fbc084 (plain)
1
2
3
4
5
6
7
8
9
10
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" SCRIPTSOURCE="$(pwd)"/runtime