annotate src/testdir/test1.in @ 2004:9e554211caf5 v7.2.301

updated for version 7.2-301
author vimboss
date Tue, 17 Nov 2009 16:41:01 +0000
parents 3fc0f57ecb91
children afcf9db31561
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 First a simple test to check if the test script works.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 If Vim was not compiled with the +eval feature, the small.vim script will be
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 set to copy the test.ok file to test.out, so that it looks like the test
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 succeeded. Otherwise an empty small.vim is written. small.vim is sourced by
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 tests that require the +eval feature or other features that are missing in the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 small version.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 If Vim was not compiled with the +windows feature, the tiny.vim script will be
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 set like small.vim above. tiny.vim is sourced by tests that require the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 +windows feature or other features that are missing in the tiny version.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 If Vim was not compiled with the +multi_byte feature, the mbyte.vim script will be set like small.vim above. mbyte.vim is sourced by tests that require the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 +multi_byte feature.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 :" Write a single line to test.out to check if testing works at all.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 :%d
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 athis is a test:w! test.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 :" Create small.vim and tiny.vim empty, create mbyte.vim to skip the test.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 0D:w! small.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 :w! tiny.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 ae! test.ok
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 w! test.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 qa!
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 :w! mbyte.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 :" If +multi_byte feature supported, make mbyte.vim empty.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 :if has("multi_byte") | sp another | w! mbyte.vim | q | endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 :" If +eval feature supported quit here, leaving tiny.vim and small.vim empty.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 :" Otherwise write small.vim to skip the test.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 :if 1 | q! | endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 :w! small.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 :" If +windows feature not supported :sp will fail and tiny.vim will be
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 :" written to skip the test.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 :sp another
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 :wq! tiny.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 :qa!
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40