File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2262,6 +2262,10 @@ test1 \
22622262
22632263# Run individual NEW style test.
22642264# These do not depend on the executable, compile it when needed.
2265+ # Set $TEST_FILTER to select what test function to invoke, e.g.:
2266+ # export TEST_FILTER=Test_terminal_wipe_buffer
2267+ # A partial match also works:
2268+ # export TEST_FILTER=wipe_buffer
22652269$(NEW_TESTS ) :
22662270 cd testdir; $(MAKE ) $@ VIMPROG=../$(VIMTESTTARGET ) $(GUI_TESTARG ) SCRIPTSOURCE=../$(SCRIPTSOURCE )
22672271
Original file line number Diff line number Diff line change @@ -384,6 +384,12 @@ if argc() > 1
384384 let s: tests = filter (s: tests , ' v:val =~ argv(1)' )
385385endif
386386
387+ " If the environment variable $TEST_FILTER is set then filter the function
388+ " names against it.
389+ if $TEST_FILTER != ' '
390+ let s: tests = filter (s: tests , ' v:val =~ $TEST_FILTER' )
391+ endif
392+
387393" Execute the tests in alphabetical order.
388394for s: test in sort (s: tests )
389395 " Silence, please!
Original file line number Diff line number Diff line change 88 let g: failed += a: match+ 0
99 elseif a: type == # ' skipped'
1010 let g: skipped += 1
11- call extend (g: skipped_output , [" \t " . a: match ])
11+ call extend (g: skipped_output , [" \t " .. a: match ])
1212 endif
1313 endfunc
1414
1919 let g: failed_output = []
2020 let output = [" " ]
2121
22+ if $TEST_FILTER != ' '
23+ call extend (g: skipped_output , [" \t All tests not matching $TEST_FILTER: '" .. $TEST_FILTER .. " '" ])
24+ endif
25+
2226 try
2327 " This uses the :s command to just fetch and process the output of the
2428 " tests, it doesn't actually replace anything.
Original file line number Diff line number Diff line change @@ -757,6 +757,8 @@ static char *(features[]) =
757757
758758static int included_patches [] =
759759{ /* Add new patch number below this line */
760+ /**/
761+ 2087 ,
760762/**/
761763 2086 ,
762764/**/
You can’t perform that action at this time.
0 commit comments