diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2024-10-18 17:38:29 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-18 17:38:29 +0800 |
| commit | b5e69b32d7e299b8283f13f4f97081f6cf795f0a (patch) | |
| tree | c7f2be5e6caeddc6d2c8aadfc218647e54744f99 /test/old/testdir/Makefile | |
| parent | f4b620c4e6430ea8cbc5632d6853b24da09d7dfc (diff) | |
| download | rneovim-b5e69b32d7e299b8283f13f4f97081f6cf795f0a.tar.gz rneovim-b5e69b32d7e299b8283f13f4f97081f6cf795f0a.tar.bz2 rneovim-b5e69b32d7e299b8283f13f4f97081f6cf795f0a.zip | |
vim-patch: make gen_opt_test.vim work with Nvim (#30850)
Problem: Insufficient test coverage for validation of option values.
Solution: Port Vim's gen_opt_test.vim and make it work with Nvim.
vim-patch:9.1.0760: tests: no error reported, if gen_opt_test.vim fails
vim-patch:9.1.0791: tests: errors in gen_opt_test.vim are not shown
Diffstat (limited to 'test/old/testdir/Makefile')
| -rw-r--r-- | test/old/testdir/Makefile | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/old/testdir/Makefile b/test/old/testdir/Makefile index 20272a24c7..6f6c90fda1 100644 --- a/test/old/testdir/Makefile +++ b/test/old/testdir/Makefile @@ -55,6 +55,8 @@ else endif endif +default: nongui + nongui: nolog $(FIXFF) newtests report .gdbinit: @@ -112,6 +114,7 @@ CLEAN_FILES := *.out \ *.rej \ *.orig \ *.tlog \ + opt_test.vim \ test_result.log \ $(CLEANUP_FILES) \ $(RM_ON_RUN) \ @@ -151,6 +154,18 @@ newtests: newtestssilent newtestssilent: $(NEW_TESTS_RES) +GEN_OPT_DEPS = gen_opt_test.vim ../../../src/nvim/options.lua + +opt_test.vim: $(GEN_OPT_DEPS) + $(NVIM_PRG) -e -s -u NONE $(NO_INITS) -S $(GEN_OPT_DEPS) + @if test -f test.log; then \ + cat test.log; \ + exit 1; \ + fi + +# Explicit dependencies. +test_options.res test_alot.res: opt_test.vim + %.res: %.vim .gdbinit @echo "[OLDTEST] Running" $* @rm -rf $*.failed test.ok $(RM_ON_RUN) |