1
0
mirror of https://github.com/amix/vimrc synced 2025-06-16 01:25:00 +08:00

Updated plugins

This commit is contained in:
Amir Salihefendic
2018-08-25 18:13:42 +02:00
parent 587a185a98
commit 6bd9eda8c3
169 changed files with 2625 additions and 2334 deletions

View File

@ -16,8 +16,7 @@ vim=${1:-}
case "$vim" in
"vim-7.4")
# This is what the most recent Ubuntu LTS (16.04) ships with.
tag="v7.4.1689"
tag="v7.4.2009"
giturl="https://github.com/vim/vim"
;;

View File

@ -16,6 +16,15 @@ if !exists('g:test_verbose')
endif
let g:go_echo_command_info = 0
function! s:logmessages() abort
" Add all messages (usually errors).
redir => s:mess
silent messages
redir END
let s:logs = s:logs + filter(split(s:mess, "\n"), 'v:val !~ "^Messages maintainer"')
silent messages clear
endfunction
" Source the passed test file.
source %
@ -31,12 +40,14 @@ let g:vim_go_root = fnamemodify(getcwd(), ':p')
redir @q
silent function /^Test_
redir END
let s:tests = split(substitute(@q, 'function \(\k*()\)', '\1', 'g'))
let s:tests = split(substitute(@q, 'function \(\k\+()\)', '\1', 'g'))
" log any messages that we may already accumulated.
call s:logmessages()
" Iterate over all tests and execute them.
for s:test in sort(s:tests)
" Since we extract the tests from a regexp the "abort" keyword is also in the
" list, which is not a test name :-)
" Since we extract the tests from a regexp the "abort" keyword is also in
" the list, which is not a test name :-)
if s:test == 'abort'
continue
endif
@ -57,6 +68,8 @@ for s:test in sort(s:tests)
let s:elapsed_time = substitute(reltimestr(reltime(s:started)), '^\s*\(.\{-}\)\s*$', '\1', '')
let s:done += 1
call s:logmessages()
if len(v:errors) > 0
let s:fail += 1
call add(s:logs, printf("--- FAIL %s (%ss)", s:test[:-3], s:elapsed_time))
@ -79,12 +92,6 @@ endif
let s:total_elapsed_time = substitute(reltimestr(reltime(s:total_started)), '^\s*\(.\{-}\)\s*$', '\1', '')
" Add all messages (usually errors).
redir => s:mess
silent messages
redir END
let s:logs = s:logs + filter(split(s:mess, "\n"), 'v:val !~ "^Messages maintainer"')
" Also store all internal messages from s:logs as well.
silent! split /tmp/vim-go-test/test.tmp
call append(line('$'), s:logs)