summaryrefslogtreecommitdiffstats
path: root/src/testdir/Makefile
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-04-21 22:19:45 +0200
committerBram Moolenaar <Bram@vim.org>2020-04-21 22:19:45 +0200
commitad48e6c1590842ab6d48e6caba3e9250734dae27 (patch)
treec81fe7bc66f2807223cdf76306dccf5b714f3650 /src/testdir/Makefile
parentff06f283e3e4b3ec43012dd3b83f8454c98f6639 (diff)
patch 8.2.0615: regexp benchmark stest is old stylev8.2.0615
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)
Diffstat (limited to 'src/testdir/Makefile')
-rw-r--r--src/testdir/Makefile20
1 files changed, 10 insertions, 10 deletions
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"