Permalink
Browse files

patch 8.0.1302: still too many old style tests

Problem:    Still too many old style tests.
Solution:   Convert a few more tests to new style. (Yegappan Lakshmanan,
            closes #2326)
  • Loading branch information...
brammool committed Nov 16, 2017
1 parent 7cb769a commit 209d3874c19d73b209e7d223cf05ea22e183f408
View
@@ -2097,18 +2097,14 @@ run_message_test: $(MESSAGE_TEST_TARGET)
# Run individual OLD style test.
# These do not depend on the executable, compile it when needed.
test1 \
test_close_count \
test_erasebackword \
test_eval \
test_fixeol \
test_listchars \
test_wordcount \
test3 test11 test14 test15 test17 \
test29 test30 test36 test37 test39 \
test42 test44 test48 test49 \
test50 test52 test59 \
test64 test68 test69 \
test70 test72 test73 \
test64 test69 \
test70 test72 \
test85 test86 test87 test88 \
test94 test95 test99 test108:
cd testdir; rm -f $@.out; $(MAKE) -f Makefile $@.out VIMPROG=../$(VIMTARGET) $(GUI_TESTARG) SCRIPTSOURCE=../$(SCRIPTSOURCE)
@@ -2133,6 +2129,7 @@ test_arglist \
test_charsearch_utf8 \
test_cindent \
test_clientserver \
test_close_count \
test_cmdline \
test_command_count \
test_comparators \
@@ -2145,6 +2142,7 @@ test_arglist \
test_digraph \
test_display \
test_edit \
test_erasebackword \
test_escaped_glob \
test_ex_undo \
test_ex_z \
@@ -2164,7 +2162,9 @@ test_arglist \
test_filetype \
test_filter_cmd \
test_filter_map \
test_find_complete \
test_findfile \
test_fixeol \
test_float_func \
test_fnameescape \
test_fnamemodify \
@@ -2200,6 +2200,7 @@ test_arglist \
test_let \
test_lineending \
test_lispwords \
test_listchars \
test_listdict \
test_listlbr \
test_listlbr_utf8 \
@@ -2272,6 +2273,7 @@ test_arglist \
test_tcl \
test_terminal \
test_terminal_fail \
test_textformat \
test_textobjects \
test_timers \
test_true_false \
View
@@ -24,20 +24,14 @@ SCRIPTS_ALL = \
test44.out \
test48.out \
test64.out \
test68.out \
test69.out \
test70.out \
test73.out \
test88.out \
test94.out \
test95.out \
test99.out \
test108.out \
test_close_count.out \
test_erasebackword.out \
test_eval.out \
test_fixeol.out \
test_listchars.out \
test_wordcount.out
@@ -86,6 +80,7 @@ NEW_TESTS = test_arabic.res \
test_charsearch.res \
test_cindent.res \
test_clientserver.res \
test_close_count.res \
test_cmdline.res \
test_command_count.res \
test_crypt.res \
@@ -95,9 +90,12 @@ NEW_TESTS = test_arabic.res \
test_digraph.res \
test_display.res \
test_edit.res \
test_erasebackword.res \
test_exists.res \
test_farsi.res \
test_file_size.res \
test_find_complete.res \
test_fixeol.res \
test_fnameescape.res \
test_fold.res \
test_getvar.res \
@@ -119,6 +117,7 @@ NEW_TESTS = test_arabic.res \
test_langmap.res \
test_let.res \
test_lineending.res \
test_listchars.res \
test_listdict.res \
test_listlbr.res \
test_listlbr_utf8.res \
@@ -63,8 +63,7 @@ win32: fixff nolog $(SCRIPTS_FIRST) $(SCRIPTS) $(SCRIPTS_WIN32) newtests
fixff:
-$(VIMPROG) -u dos.vim $(NO_INITS) "+argdo set ff=dos|upd" +q *.in *.ok
-$(VIMPROG) -u dos.vim $(NO_INITS) "+argdo set ff=unix|upd" +q \
dotest.in test_listchars.ok \
test_wordcount.ok
dotest.in test_wordcount.ok
clean:
-@if exist *.out $(DEL) *.out
View
@@ -78,16 +78,12 @@ SCRIPT = test1.out test3.out \
test29.out \
test30.out test36.out test37.out test39.out \
test42.out test44.out test48.out test49.out \
test64.out test68.out test69.out \
test64.out test69.out \
test72.out test77a.out test88.out \
test94.out test95.out test99.out test108.out \
test_autocmd_option.out \
test_breakindent.out \
test_close_count.out \
test_erasebackword.out \
test_eval.out \
test_fixeol.out \
test_listchars.out \
test_listlbr.out \
test_listlbr_utf8.out \
test_utf8.out \
@@ -114,7 +110,7 @@ GUI_OPTION = -g
.ENDIF
.IFDEF WANT_UNIX
SCRIPT_UNIX = test10.out test17.out test27.out test49.out test73.out
SCRIPT_UNIX = test10.out test17.out test27.out test49.out
.ENDIF
.IFDEF WANT_WIN
View
@@ -103,6 +103,10 @@ func RunTheTest(test)
" buffers.
%bwipe!
" The test may change the current directory. Save and restore the
" directory after executing the test.
let save_cwd = getcwd()
if exists("*SetUp")
try
call SetUp()
@@ -157,6 +161,8 @@ func RunTheTest(test)
break
endif
endwhile
exe 'cd ' . save_cwd
endfunc
func AfterTheTest()
View

This file was deleted.

Oops, something went wrong.
View

This file was deleted.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit 209d387

Please sign in to comment.