oldtest: support for running by filename (#11473)

Follow-up to 8969efca8 (Vim patch 8.1.0723)

NOTE: This changes the main entrypoint for running single oldtest files
to not use/require the ".res" extension anymore.  But it is handled for
B/C.

Adds a phony rule to run oldtest by filename.
Not going through "$(MAKE)" avoids GNUmakefile being used then (which I
use for WIP things), and it seems like SINGLE_MAKE should be used anyway
probably.
This commit is contained in:
Daniel Hahler
2019-12-02 17:18:37 +01:00
committed by GitHub
parent 7d66a02b88
commit 0b7a7b23cc
3 changed files with 21 additions and 12 deletions

View File

@ -77,11 +77,14 @@ To run all legacy Vim tests:
make oldtest
To run a *single* legacy test set `TEST_FILE`, for example:
To run a *single* legacy test file you can use either:
TEST_FILE=test_syntax.res make oldtest
make oldtest TEST_FILE=test_syntax.vim
or:
make src/nvim/testdir/test_syntax.vim
- The `.res` extension (instead of `.vim`) is required.
- Specify only the test file name, not the full path.