Fix 4324 - add neovim 0.8 test (#4325)

* Fix 4324 - add neovim 0.8 test
* Update vim testbed image
* Update documentation

Co-authored-by: w0rp <w0rp@users.noreply.github.com>
This commit is contained in:
Horacio Sanson
2022-11-25 21:55:31 +09:00
committed by GitHub
parent 2cfbebdd59
commit cbf7045eee
4 changed files with 18 additions and 17 deletions

View File

@@ -20,12 +20,12 @@ git_version=$(git describe --always --tags)
DOCKER_RUN_IMAGE="$image:$image_tag"
export DOCKER_RUN_IMAGE
tests='test/*.vader test/*/*.vader test/*/*/*.vader test/*/*/*.vader'
tests='test/*.vader test/*/*.vader test/*/*/*.vader'
# These flags are forwarded to the script for running Vader tests.
verbose_flag=''
quiet_flag=''
run_neovim_02_tests=1
run_neovim_07_tests=1
run_neovim_08_tests=1
run_vim_80_tests=1
run_vim_90_tests=1
run_linters=1
@@ -44,7 +44,7 @@ while [ $# -ne 0 ]; do
run_vim_80_tests=0
run_vim_90_tests=0
run_neovim_02_tests=0
run_neovim_07_tests=0
run_neovim_08_tests=0
run_linters=0
shift
;;
@@ -55,13 +55,13 @@ while [ $# -ne 0 ]; do
shift
;;
--neovim-02-only)
run_neovim_07_tests=0
run_neovim_08_tests=0
run_vim_80_tests=0
run_vim_90_tests=0
run_linters=0
shift
;;
--neovim-07-only)
--neovim-08-only)
run_neovim_02_tests=0
run_vim_80_tests=0
run_vim_90_tests=0
@@ -70,19 +70,20 @@ while [ $# -ne 0 ]; do
;;
--vim-only)
run_neovim_02_tests=0
run_neovim_07_tests=0
run_neovim_08_tests=0
run_linters=0
shift
;;
--vim-80-only)
run_neovim_02_tests=0
run_neovim_07_tests=0
run_neovim_08_tests=0
run_vim_90_tests=0
run_linters=0
shift
;;
--vim-90-only)
run_neovim_02_tests=0
run_neovim_07_tests=0
run_neovim_08_tests=0
run_vim_80_tests=0
run_linters=0
shift
@@ -91,14 +92,14 @@ while [ $# -ne 0 ]; do
run_vim_80_tests=0
run_vim_90_tests=0
run_neovim_02_tests=0
run_neovim_07_tests=0
run_neovim_08_tests=0
shift
;;
--fast)
run_vim_80_tests=0
run_vim_90_tests=0
run_neovim_02_tests=0
run_neovim_07_tests=1
run_neovim_08_tests=1
shift
;;
--help)
@@ -113,7 +114,7 @@ while [ $# -ne 0 ]; do
echo ' --build-image Run docker image build only.'
echo ' --neovim-only Run tests only for NeoVim'
echo ' --neovim-02-only Run tests only for NeoVim 0.2'
echo ' --neovim-07-only Run tests only for NeoVim 0.7'
echo ' --neovim-08-only Run tests only for NeoVim 0.8'
echo ' --vim-only Run tests only for Vim'
echo ' --vim-80-only Run tests only for Vim 8.2'
echo ' --vim-90-only Run tests only for Vim 9.0'
@@ -219,7 +220,7 @@ for vim in $(docker run --rm "$DOCKER_RUN_IMAGE" ls /vim-build/bin | grep '^neov
if ( [[ $vim =~ ^vim-v8.0 ]] && ((run_vim_80_tests)) ) \
|| ( [[ $vim =~ ^vim-v9.0 ]] && ((run_vim_90_tests)) ) \
|| ( [[ $vim =~ ^neovim-v0.2 ]] && ((run_neovim_02_tests)) ) \
|| ( [[ $vim =~ ^neovim-v0.7 ]] && ((run_neovim_07_tests)) ); then
|| ( [[ $vim =~ ^neovim-v0.8 ]] && ((run_neovim_08_tests)) ); then
echo "Starting Vim: $vim..."
file_number=$((file_number+1))
test/script/run-vader-tests $quiet_flag $verbose_flag "$vim" "$tests" \