Mercurial > vim
diff src/testdir/README.txt @ 15430:d94901eeb762 v8.1.0723
patch 8.1.0723: cannot easily run specific test when in src/testdir
commit https://github.com/vim/vim/commit/ec50401e1e1357a1340b3c92109fd4860e38a8ac
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Jan 11 17:30:16 2019 +0100
patch 8.1.0723: cannot easily run specific test when in src/testdir
Problem: Cannot run specific test when in src/testdir the same was as in
the src directory.
Solution: Move build rule to src/testdir/Makefile.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 11 Jan 2019 17:45:05 +0100 |
parents | 6e4e0d43b20b |
children | e992f31274b7 |
line wrap: on
line diff
--- a/src/testdir/README.txt +++ b/src/testdir/README.txt @@ -1,4 +1,5 @@ This directory contains tests for various Vim features. +For testing an indent script see runtime/indent/testdir/README.txt. If it makes sense, add a new test method to an already existing file. You may want to separate it from other tests with comment lines. @@ -14,10 +15,10 @@ can. Use an old style test when it need TO ADD A NEW STYLE TEST: 1) Create a test_<subject>.vim file. -2) Add test_<subject>.res to NEW_TESTS in Make_all.mak in alphabetical order. -3) Also add an entry "test_<subject>" in src/Make_all.mak. -4) Use make test_<subject>.res to run a single test in src/testdir/. - Use make test_<subject> to run a single test in src/. +2) Add test_<subject>.res to NEW_TESTS_RES in Make_all.mak in alphabetical + order. +3) Also add an entry "test_<subject>" to NEW_TESTS in Make_all.mak. +4) Use make test_<subject> to run a single test. At 2), instead of running the test separately, it can be included in "test_alot". Do this for quick tests without side effects. The test runs a