1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
#!/bin/bash
# SPDX-License-Identifier: BSD-2-Clause
# Copyright © 2020 Nicholas Guriev <guriev-ns@ya.ru>
set -e -u
what=$(basename "$0")
where=$(dirname "$0")
case "${what}" in
with-vim)
executor='vim.basic -e'
;;
with-gvim)
executor='xvfb-run -a vim.gtk3 --nofork -g'
;;
with-neovim)
executor='nvim -es'
;;
*)
echo >&2 'What editor are you going to test? Invoke this script via' \
'a corresponding symlink.'
exit 127
;;
esac
BASH_XTRACEFD=1
export VADER_OUTPUT_FILE=/dev/stdout
set -x
$executor -u "${where}/vimrc" "+Vader! ${*:-test/**/*.vader}"
|