Mercurial > vim
comparison src/testdir/README.txt @ 21741:baccf9e06efe v8.2.1420
patch 8.2.1420: test 49 is old style
Commit: https://github.com/vim/vim/commit/f7c4d83609acdfe0e4d0fec9413697ac97c0c3f9
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Aug 11 20:42:19 2020 +0200
patch 8.2.1420: test 49 is old style
Problem: Test 49 is old style.
Solution: Convert remaining parts to new style. Remove obsolete items.
(Yegappan Lakshmanan, closes #6683)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 11 Aug 2020 20:45:05 +0200 |
parents | 07627d1b4d8c |
children | 808edde1e97d |
comparison
equal
deleted
inserted
replaced
21740:54928f1c0d20 | 21741:baccf9e06efe |
---|---|
1 This directory contains tests for various Vim features. | 1 This directory contains tests for various Vim features. |
2 For testing an indent script see runtime/indent/testdir/README.txt. | 2 For testing an indent script see runtime/indent/testdir/README.txt. |
3 | 3 |
4 If it makes sense, add a new test method to an already existing file. You may | 4 If it makes sense, add a new test method to an already existing file. You may |
5 want to separate it from other tests with comment lines. | 5 want to separate it from other tests with comment lines. |
6 | |
7 The numbered tests are older, we have switched to named tests. Don't add any | |
8 more numbered tests. | |
9 | |
10 And then you can choose between a new style test, which is a Vim script, or an | |
11 old style test, which uses Normal mode commands. Use a new style test if you | |
12 can. Use an old style test when it needs to run without the +eval feature. | |
13 | |
14 | 6 |
15 TO ADD A NEW STYLE TEST: | 7 TO ADD A NEW STYLE TEST: |
16 | 8 |
17 1) Create a test_<subject>.vim file. | 9 1) Create a test_<subject>.vim file. |
18 2) Add test_<subject>.res to NEW_TESTS_RES in Make_all.mak in alphabetical | 10 2) Add test_<subject>.res to NEW_TESTS_RES in Make_all.mak in alphabetical |
55 TO ADD A SCREEN DUMP TEST: | 47 TO ADD A SCREEN DUMP TEST: |
56 | 48 |
57 Mostly the same as writing a new style test. Additionally, see help on | 49 Mostly the same as writing a new style test. Additionally, see help on |
58 "terminal-dumptest". Put the reference dump in "dumps/Test_func_name.dump". | 50 "terminal-dumptest". Put the reference dump in "dumps/Test_func_name.dump". |
59 | 51 |
60 | |
61 TO ADD AN OLD STYLE TEST: | |
62 | |
63 1) Create test_<subject>.in and test_<subject>.ok files. | |
64 2) Add test_<subject>.out to SCRIPTS_ALL in Make_all.mak in alphabetical order. | |
65 3) Use make test_<subject>.out to run a single test in src/testdir/. | |
66 Use make test_<subject> to run a single test in src/. | |
67 4) Also add an entry in src/Makefile. | |
68 | |
69 Keep in mind that the files are used as if everything was typed: | |
70 - To add comments use: :" (that's an Ex command comment) | |
71 - A line break is like pressing Enter. If that happens on the last line | |
72 you'll hear a beep! |