mirror of
				https://github.com/amix/vimrc
				synced 2025-10-31 06:33:35 +08:00 
			
		
		
		
	Updated plugins
This commit is contained in:
		| @ -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" | ||||
|     ;; | ||||
|  | ||||
|  | ||||
| @ -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) | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Amir Salihefendic
					Amir Salihefendic