From ad48e6c1590842ab6d48e6caba3e9250734dae27 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Tue, 21 Apr 2020 22:19:45 +0200 Subject: patch 8.2.0615: regexp benchmark stest is old style Problem: Regexp benchmark stest is old style. Solution: Make it a new style test. Fix using a NULL list. Add more tests. (Yegappan Lakshmanan, closes #5963) --- src/testdir/Makefile | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/testdir/Makefile') diff --git a/src/testdir/Makefile b/src/testdir/Makefile index b2eaecbf40..92506e6f41 100644 --- a/src/testdir/Makefile +++ b/src/testdir/Makefile @@ -38,7 +38,7 @@ test49.out: test49.vim test_options.res test_alot.res: opt_test.vim -SCRIPTS_BENCH = bench_re_freeze.out +SCRIPTS_BENCH = test_bench_regexp.res .SUFFIXES: .in .out .res .vim @@ -146,15 +146,6 @@ test1.out: test1.in fi" -rm -rf X* test.ok viminfo -bench_re_freeze.out: bench_re_freeze.vim - -rm -rf benchmark.out $(RM_ON_RUN) - # Sleep a moment to avoid that the xterm title is messed up. - # 200 msec is sufficient, but only modern sleep supports a fraction of - # a second, fall back to a second if it fails. - @-/bin/sh -c "sleep .2 > /dev/null 2>&1 || sleep 1" - $(RUN_VIM) $*.in $(REDIR_TEST_TO_NULL) - @/bin/sh -c "if test -f benchmark.out; then cat benchmark.out; fi" - nolog: -rm -f test.log messages @@ -193,3 +184,12 @@ opt_test.vim: ../optiondefs.h gen_opt_test.vim test_xxd.res: XXD=$(XXDPROG); export XXD; $(RUN_VIMTEST) $(NO_INITS) -S runtest.vim test_xxd.vim + +test_bench_regexp.res: test_bench_regexp.vim + -rm -rf benchmark.out $(RM_ON_RUN) + # Sleep a moment to avoid that the xterm title is messed up. + # 200 msec is sufficient, but only modern sleep supports a fraction of + # a second, fall back to a second if it fails. + @-/bin/sh -c "sleep .2 > /dev/null 2>&1 || sleep 1" + $(RUN_VIMTEST) $(NO_INITS) -S runtest.vim $*.vim $(REDIR_TEST_TO_NULL) + @/bin/sh -c "if test -f benchmark.out; then cat benchmark.out; fi" -- cgit v1.2.3