diff options
| author | Mehmet Samet Duman <yongdohyun@projecttick.org> | 2026-04-03 22:21:25 +0300 |
|---|---|---|
| committer | Mehmet Samet Duman <yongdohyun@projecttick.org> | 2026-04-04 00:23:03 +0300 |
| commit | 2eae5db069dc171f74cd863487655f6a88e5384d (patch) | |
| tree | 2d9d05e09978a2a44acbfbb8d651f240df3ca052 /uvim/src/testdir/Makefile | |
| parent | 473d922faed49241a5d29d9e37dc4819cd512006 (diff) | |
| download | Project-Tick-2eae5db069dc171f74cd863487655f6a88e5384d.tar.gz Project-Tick-2eae5db069dc171f74cd863487655f6a88e5384d.zip | |
NOISSUE rebrand vim to MNV's not Vim
Signed-off-by: Mehmet Samet Duman <yongdohyun@projecttick.org>
Diffstat (limited to 'uvim/src/testdir/Makefile')
| -rw-r--r-- | uvim/src/testdir/Makefile | 102 |
1 files changed, 51 insertions, 51 deletions
diff --git a/uvim/src/testdir/Makefile b/uvim/src/testdir/Makefile index 2e1d900b88..b3f0818302 100644 --- a/uvim/src/testdir/Makefile +++ b/uvim/src/testdir/Makefile @@ -1,11 +1,11 @@ # -# Makefile to run all tests for Vim +# Makefile to run all tests for MNV # # Use console or GUI. -VIMPROG = ../vim +MNVPROG = ../mnv XXDPROG = ../xxd/xxd -# VIMPROG = ../gvim +# MNVPROG = ../gmnv SCRIPTSOURCE = ../../runtime @@ -16,12 +16,12 @@ REDIR_TEST_TO_NULL = --cmd 'au SwapExists * let v:swapchoice = "e"' | LC_ALL=C a # Uncomment this line to use valgrind for memory leaks and extra warnings. # The output goes into a file "valgrind.testN" -# Vim should be compiled with EXITFREE to avoid false warnings. +# MNV should be compiled with EXITFREE to avoid false warnings. # This will make testing about 10 times as slow. # VALGRIND = valgrind --tool=memcheck --leak-check=yes --num-callers=45 --log-file=valgrind.$* # To execute one test, e.g. in gdb, use something like this: -# run -f -u util/unix.vim --gui-dialog-file guidialog -U NONE --noplugin --not-a-term -S runtest.vim test_name.vim +# run -f -u util/unix.mnv --gui-dialog-file guidialog -U NONE --noplugin --not-a-term -S runtest.mnv test_name.mnv default: nongui @@ -30,9 +30,9 @@ default: nongui include Make_all.mak # Explicit dependencies. -test_options_all.res: opt_test.vim +test_options_all.res: opt_test.mnv -.SUFFIXES: .in .out .res .vim +.SUFFIXES: .in .out .res .mnv nongui: nolog tinytests newtests report @@ -48,7 +48,7 @@ report: then cp test.log test_result.log; \ else echo No failures reported > test_result.log; \ fi" - $(VIMPROG) -u NONE $(NO_INITS) -S util/summarize.vim messages $(REDIR_TEST_TO_NULL) + $(MNVPROG) -u NONE $(NO_INITS) -S util/summarize.mnv messages $(REDIR_TEST_TO_NULL) @rm -f starttime @echo @echo 'Test results:' @@ -58,7 +58,7 @@ report: else echo ALL DONE; \ fi" -$(SCRIPTS_TINY_OUT) $(NEW_TESTS_RES): $(VIMPROG) +$(SCRIPTS_TINY_OUT) $(NEW_TESTS_RES): $(MNVPROG) # For $ASAN_OPTIONS and $UBSAN_OPTIONS append the testname to it. # This assumes $ASAN_OPTIONS contains log_path as last part of the environment variable @@ -68,7 +68,7 @@ $(SCRIPTS_TINY_OUT) $(NEW_TESTS_RES): $(VIMPROG) # make test_largefile $(NEW_TESTS): rm -f $@.res $(CLEANUP_FILES) - @MAKEFLAGS=--no-print-directory $(MAKE) -f Makefile $@.res VIMPROG=$(VIMPROG) XXDPROG=$(XXDPROG) SCRIPTSOURCE=$(SCRIPTSOURCE) + @MAKEFLAGS=--no-print-directory $(MAKE) -f Makefile $@.res MNVPROG=$(MNVPROG) XXDPROG=$(XXDPROG) SCRIPTSOURCE=$(SCRIPTSOURCE) @cat messages @if test -f test.log; then \ exit 1; \ @@ -76,32 +76,32 @@ $(NEW_TESTS): codestyle: rm -f test_codestyle.res $(CLEANUP_FILES) - @MAKEFLAGS=--no-print-directory $(MAKE) -f Makefile test_codestyle.res VIMPROG=$(VIMPROG) XXDPROG=$(XXDPROG) SCRIPTSOURCE=$(SCRIPTSOURCE) + @MAKEFLAGS=--no-print-directory $(MAKE) -f Makefile test_codestyle.res MNVPROG=$(MNVPROG) XXDPROG=$(XXDPROG) SCRIPTSOURCE=$(SCRIPTSOURCE) @cat messages @if test -f test.log; then \ exit 1; \ fi -# Run only tests specific for Vim9 script -test_vim9: - rm -f test_vim9_*.res $(CLEANUP_FILES) - @MAKEFLAGS=--no-print-directory $(MAKE) -f Makefile $(TEST_VIM9_RES) VIMPROG=$(VIMPROG) XXDPROG=$(XXDPROG) SCRIPTSOURCE=$(SCRIPTSOURCE) +# Run only tests specific for MNV9 script +test_mnv9: + rm -f test_mnv9_*.res $(CLEANUP_FILES) + @MAKEFLAGS=--no-print-directory $(MAKE) -f Makefile $(TEST_MNV9_RES) MNVPROG=$(MNVPROG) XXDPROG=$(XXDPROG) SCRIPTSOURCE=$(SCRIPTSOURCE) @cat messages @rm -f starttime - @MAKEFLAGS=--no-print-directory $(MAKE) -f Makefile report VIMPROG=$(VIMPROG) XXDPROG=$(XXDPROG) SCRIPTSOURCE=$(SCRIPTSOURCE) + @MAKEFLAGS=--no-print-directory $(MAKE) -f Makefile report MNVPROG=$(MNVPROG) XXDPROG=$(XXDPROG) SCRIPTSOURCE=$(SCRIPTSOURCE) @if test -f test.log; then \ exit 1; \ fi -RM_ON_RUN = test.out X* viminfo +RM_ON_RUN = test.out X* mnvinfo RM_ON_START = test.ok benchmark.out -RUN_VIMPROG = VIMRUNTIME=$(SCRIPTSOURCE) $(VALGRIND) $(VIMPROG) -f $(GUI_FLAG) -u util/unix.vim $(NO_INITS) -s dotest.in +RUN_MNVPROG = MNVRUNTIME=$(SCRIPTSOURCE) $(VALGRIND) $(MNVPROG) -f $(GUI_FLAG) -u util/unix.mnv $(NO_INITS) -s dotest.in # Delete files that may interfere with running tests. This includes some files # that may result from working on the tests, not only from running them. clean: -rm -rf *.out *.failed *.res *.rej *.orig XfakeHOME Xdir1 Xfind failed - -rm -f opt_test.vim test_result.log $(CLEANUP_FILES) + -rm -f opt_test.mnv test_result.log $(CLEANUP_FILES) -rm -f gen_opt_test.log -rm -rf $(RM_ON_RUN) $(RM_ON_START) -rm -f valgrind.* @@ -127,9 +127,9 @@ tinytests: $(SCRIPTS_TINY_OUT) @# a second, fall back to a second if it fails. @-/bin/sh -c "sleep .2 > /dev/null 2>&1 || sleep 1" if test -n "$${ASAN_OPTIONS}"; then \ - ASAN_OPTIONS="$${ASAN_OPTIONS}_$*" UBSAN_OPTIONS="$${UBSAN_OPTIONS}_$*" $(RUN_VIMPROG) $*.in $(REDIR_TEST_TO_NULL) ; \ + ASAN_OPTIONS="$${ASAN_OPTIONS}_$*" UBSAN_OPTIONS="$${UBSAN_OPTIONS}_$*" $(RUN_MNVPROG) $*.in $(REDIR_TEST_TO_NULL) ; \ else \ - $(RUN_VIMPROG) $*.in $(REDIR_TEST_TO_NULL) ; \ + $(RUN_MNVPROG) $*.in $(REDIR_TEST_TO_NULL) ; \ fi @# Check if the test.out file matches test.ok. @@ -143,14 +143,14 @@ tinytests: $(SCRIPTS_TINY_OUT) @/bin/sh -c "if test -f valgrind; then\ mv -f valgrind valgrind.$*; \ fi" - -rm -rf X* test.ok viminfo + -rm -rf X* test.ok mnvinfo -# New style of tests uses Vim script with assert calls. These are easier +# New style of tests uses MNV script with assert calls. These are easier # to write and a lot easier to read and debug. # Limitation: Only works with the +eval feature. # Add --gui-dialog-file to avoid getting stuck in a dialog. -RUN_VIMTEST = VIMRUNTIME=$(SCRIPTSOURCE) $(VALGRIND) $(VIMPROG) -f $(GUI_FLAG) -u util/unix.vim --gui-dialog-file guidialog +RUN_MNVTEST = MNVRUNTIME=$(SCRIPTSOURCE) $(VALGRIND) $(MNVPROG) -f $(GUI_FLAG) -u util/unix.mnv --gui-dialog-file guidialog newtests: newtestssilent @/bin/sh -c "if test -f messages; then cat messages; fi" @@ -158,44 +158,44 @@ newtests: newtestssilent newtestssilent: $(NEW_TESTS_RES) -.vim.res: - @echo "$(VIMPROG)" > vimcmd - @echo "$(RUN_VIMTEST)" >> vimcmd +.mnv.res: + @echo "$(MNVPROG)" > mnvcmd + @echo "$(RUN_MNVTEST)" >> mnvcmd if test -n "$${ASAN_OPTIONS}"; then \ - ASAN_OPTIONS="$${ASAN_OPTIONS}_$*" UBSAN_OPTIONS="$${UBSAN_OPTIONS}_$*" $(RUN_VIMTEST) $(NO_INITS) -S runtest.vim $*.vim $(REDIR_TEST_TO_NULL) ; \ + ASAN_OPTIONS="$${ASAN_OPTIONS}_$*" UBSAN_OPTIONS="$${UBSAN_OPTIONS}_$*" $(RUN_MNVTEST) $(NO_INITS) -S runtest.mnv $*.mnv $(REDIR_TEST_TO_NULL) ; \ else \ - $(RUN_VIMTEST) $(NO_INITS) -S runtest.vim $*.vim $(REDIR_TEST_TO_NULL) ; \ + $(RUN_MNVTEST) $(NO_INITS) -S runtest.mnv $*.mnv $(REDIR_TEST_TO_NULL) ; \ fi - @rm vimcmd + @rm mnvcmd -test_gui.res: test_gui.vim - @echo "$(VIMPROG)" > vimcmd - @echo "$(RUN_GVIMTEST)" >> vimcmd +test_gui.res: test_gui.mnv + @echo "$(MNVPROG)" > mnvcmd + @echo "$(RUN_GMNVTEST)" >> mnvcmd if test -n "$${ASAN_OPTIONS}"; then \ - ASAN_OPTIONS="$${ASAN_OPTIONS}_$*" UBSAN_OPTIONS="$${UBSAN_OPTIONS}_$*" $(RUN_VIMTEST) -u NONE $(NO_INITS) -S runtest.vim $< ; \ + ASAN_OPTIONS="$${ASAN_OPTIONS}_$*" UBSAN_OPTIONS="$${UBSAN_OPTIONS}_$*" $(RUN_MNVTEST) -u NONE $(NO_INITS) -S runtest.mnv $< ; \ else \ - $(RUN_VIMTEST) -u NONE $(NO_INITS) -S runtest.vim $< ; \ + $(RUN_MNVTEST) -u NONE $(NO_INITS) -S runtest.mnv $< ; \ fi - @rm vimcmd + @rm mnvcmd -test_gui_init.res: test_gui_init.vim - @echo "$(VIMPROG)" > vimcmd - @echo "$(RUN_GVIMTEST_WITH_GVIMRC)" >> vimcmd +test_gui_init.res: test_gui_init.mnv + @echo "$(MNVPROG)" > mnvcmd + @echo "$(RUN_GMNVTEST_WITH_GMNVRC)" >> mnvcmd if test -n "$${ASAN_OPTIONS}"; then \ - ASAN_OPTIONS="$${ASAN_OPTIONS}_$*" UBSAN_OPTIONS="$${UBSAN_OPTIONS}_$*" $(RUN_VIMTEST) -u util/gui_preinit.vim -U util/gui_init.vim $(NO_PLUGINS) -S runtest.vim $< ; \ + ASAN_OPTIONS="$${ASAN_OPTIONS}_$*" UBSAN_OPTIONS="$${UBSAN_OPTIONS}_$*" $(RUN_MNVTEST) -u util/gui_preinit.mnv -U util/gui_init.mnv $(NO_PLUGINS) -S runtest.mnv $< ; \ else \ - $(RUN_VIMTEST) -u util/gui_preinit.vim -U util/gui_init.vim $(NO_PLUGINS) -S runtest.vim $< ; \ + $(RUN_MNVTEST) -u util/gui_preinit.mnv -U util/gui_init.mnv $(NO_PLUGINS) -S runtest.mnv $< ; \ fi - @rm vimcmd + @rm mnvcmd -GEN_OPT_DEPS = util/gen_opt_test.vim ../optiondefs.h ../../runtime/doc/options.txt +GEN_OPT_DEPS = util/gen_opt_test.mnv ../optiondefs.h ../../runtime/doc/options.txt -opt_test.vim: $(GEN_OPT_DEPS) +opt_test.mnv: $(GEN_OPT_DEPS) if test -n "$${ASAN_OPTIONS}"; then \ - ASAN_OPTIONS="$${ASAN_OPTIONS}_$*" UBSAN_OPTIONS="$${UBSAN_OPTIONS}_$*" $(VIMPROG) -e -s -u NONE $(NO_INITS) --nofork --gui-dialog-file guidialog -S $(GEN_OPT_DEPS) ; \ + ASAN_OPTIONS="$${ASAN_OPTIONS}_$*" UBSAN_OPTIONS="$${UBSAN_OPTIONS}_$*" $(MNVPROG) -e -s -u NONE $(NO_INITS) --nofork --gui-dialog-file guidialog -S $(GEN_OPT_DEPS) ; \ else \ - $(VIMPROG) -e -s -u NONE $(NO_INITS) --nofork --gui-dialog-file guidialog -S $(GEN_OPT_DEPS) ; \ + $(MNVPROG) -e -s -u NONE $(NO_INITS) --nofork --gui-dialog-file guidialog -S $(GEN_OPT_DEPS) ; \ fi @if test -f gen_opt_test.log; then \ cat gen_opt_test.log; \ @@ -204,20 +204,20 @@ opt_test.vim: $(GEN_OPT_DEPS) test_xxd.res: if test -n "$${ASAN_OPTIONS}"; then \ - XXD=$(XXDPROG); export XXD; ASAN_OPTIONS="$${ASAN_OPTIONS}_$*" UBSAN_OPTIONS="$${UBSAN_OPTIONS}_$*" $(RUN_VIMTEST) $(NO_INITS) -S runtest.vim test_xxd.vim ; \ + XXD=$(XXDPROG); export XXD; ASAN_OPTIONS="$${ASAN_OPTIONS}_$*" UBSAN_OPTIONS="$${UBSAN_OPTIONS}_$*" $(RUN_MNVTEST) $(NO_INITS) -S runtest.mnv test_xxd.mnv ; \ else \ - XXD=$(XXDPROG); export XXD; $(RUN_VIMTEST) $(NO_INITS) -S runtest.vim test_xxd.vim ; \ + XXD=$(XXDPROG); export XXD; $(RUN_MNVTEST) $(NO_INITS) -S runtest.mnv test_xxd.mnv ; \ fi -test_bench_regexp.res: test_bench_regexp.vim +test_bench_regexp.res: test_bench_regexp.mnv -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" if test -n "$${ASAN_OPTIONS}"; then \ - ASAN_OPTIONS="$${ASAN_OPTIONS}_$*" UBSAN_OPTIONS="$${UBSAN_OPTIONS}_$*" $(RUN_VIMTEST) $(NO_INITS) -S runtest.vim $*.vim $(REDIR_TEST_TO_NULL) ; \ + ASAN_OPTIONS="$${ASAN_OPTIONS}_$*" UBSAN_OPTIONS="$${UBSAN_OPTIONS}_$*" $(RUN_MNVTEST) $(NO_INITS) -S runtest.mnv $*.mnv $(REDIR_TEST_TO_NULL) ; \ else \ - $(RUN_VIMTEST) $(NO_INITS) -S runtest.vim $*.vim $(REDIR_TEST_TO_NULL) ; \ + $(RUN_MNVTEST) $(NO_INITS) -S runtest.mnv $*.mnv $(REDIR_TEST_TO_NULL) ; \ fi @/bin/sh -c "if test -f benchmark.out; then cat benchmark.out; fi" |
