annotate src/gen_opt_test.vim @ 11024:973fa964cb91 v8.0.0401

patch 8.0.0401: test fails with missing balloon feature commit https://github.com/vim/vim/commit/a0107bdf8762d81cb49909ef02ffff9954092fb6 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Mar 2 22:48:01 2017 +0100 patch 8.0.0401: test fails with missing balloon feature Problem: Test fails with missing balloon feature. Solution: Add check for balloon feature.
author Christian Brabandt <cb@256bit.org>
date Thu, 02 Mar 2017 23:00:05 +0100
parents fdf42c56bb2e
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
10958
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
1 " Script to generate testdir/opt_test.vim from option.c
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
2
10994
fdf42c56bb2e patch 8.0.0386: tiny build has a problem with generating the options test
Christian Brabandt <cb@256bit.org>
parents: 10962
diff changeset
3 set cpo=&vim
10958
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
4
10994
fdf42c56bb2e patch 8.0.0386: tiny build has a problem with generating the options test
Christian Brabandt <cb@256bit.org>
parents: 10962
diff changeset
5 " Only do this when build with the +eval feature.
fdf42c56bb2e patch 8.0.0386: tiny build has a problem with generating the options test
Christian Brabandt <cb@256bit.org>
parents: 10962
diff changeset
6 if 1
fdf42c56bb2e patch 8.0.0386: tiny build has a problem with generating the options test
Christian Brabandt <cb@256bit.org>
parents: 10962
diff changeset
7
10958
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
8 set nomore
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
9
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
10 let script = [
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
11 \ 'let save_columns = &columns',
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
12 \ 'let save_lines = &lines',
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
13 \ 'let save_term = &term',
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
14 \ ]
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
15
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
16 edit option.c
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
17 /#define p_term
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
18 let end = line('.')
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
19
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
20 " Two lists with values: values that work and values that fail.
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
21 " When not listed, "othernum" or "otherstring" is used.
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
22 let test_values = {
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
23 \ 'cmdheight': [[1, 2, 10], [-1, 0]],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
24 \ 'cmdwinheight': [[1, 2, 10], [-1, 0]],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
25 \ 'columns': [[12, 80], [-1, 0, 10]],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
26 \ 'conceallevel': [[0, 1, 2, 3], [-1, 4, 99]],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
27 \ 'foldcolumn': [[0, 1, 4, 12], [-1, 13, 999]],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
28 \ 'helpheight': [[0, 10, 100], [-1]],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
29 \ 'history': [[0, 1, 100], [-1, 10001]],
10960
d7b78cbf85e4 patch 8.0.0369: a few options are not defined, depending on features
Christian Brabandt <cb@256bit.org>
parents: 10958
diff changeset
30 \ 'iminsert': [[0, 1], [-1, 3, 999]],
d7b78cbf85e4 patch 8.0.0369: a few options are not defined, depending on features
Christian Brabandt <cb@256bit.org>
parents: 10958
diff changeset
31 \ 'imsearch': [[-1, 0, 1], [-2, 3, 999]],
10958
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
32 \ 'lines': [[2, 24], [-1, 0, 1]],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
33 \ 'numberwidth': [[1, 4, 8, 10], [-1, 0, 11]],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
34 \ 'regexpengine': [[0, 1, 2], [-1, 3, 999]],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
35 \ 'report': [[0, 1, 2, 9999], [-1]],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
36 \ 'scroll': [[0, 1, 2, 20], [-1]],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
37 \ 'scrolljump': [[-50, -1, 0, 1, 2, 20], [999]],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
38 \ 'scrolloff': [[0, 1, 2, 20], [-1]],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
39 \ 'shiftwidth': [[0, 1, 8, 999], [-1]],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
40 \ 'sidescroll': [[0, 1, 8, 999], [-1]],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
41 \ 'sidescrolloff': [[0, 1, 8, 999], [-1]],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
42 \ 'tabstop': [[1, 4, 8, 12], [-1, 0]],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
43 \ 'textwidth': [[0, 1, 8, 99], [-1]],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
44 \ 'timeoutlen': [[0, 8, 99999], [-1]],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
45 \ 'titlelen': [[0, 1, 8, 9999], [-1]],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
46 \ 'updatecount': [[0, 1, 8, 9999], [-1]],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
47 \ 'updatetime': [[0, 1, 8, 9999], [-1]],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
48 \ 'verbose': [[-1, 0, 1, 8, 9999], []],
10962
6da4287fd735 patch 8.0.0370: invalid memory access when setting wildchar empty
Christian Brabandt <cb@256bit.org>
parents: 10960
diff changeset
49 \ 'wildcharm': [[-1, 0, 100], []],
10958
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
50 \ 'winheight': [[1, 10, 999], [-1, 0]],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
51 \ 'winminheight': [[0, 1], [-1]],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
52 \ 'winminwidth': [[0, 1, 10], [-1]],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
53 \ 'winwidth': [[1, 10, 999], [-1, 0]],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
54 \
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
55 \ 'ambiwidth': [['', 'single'], ['xxx']],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
56 \ 'background': [['', 'light', 'dark'], ['xxx']],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
57 \ 'backspace': [[0, 2, '', 'eol', 'eol,start'], ['xxx']],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
58 \ 'backupcopy': [['yes', 'auto'], ['', 'xxx', 'yes,no']],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
59 \ 'backupext': [['xxx'], ['']],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
60 \ 'belloff': [['', 'all', 'copy,error'], ['xxx']],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
61 \ 'breakindentopt': [['', 'min:3', 'sbr'], ['xxx', 'min', 'min:x']],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
62 \ 'browsedir': [['', 'last', '/tmp/'], ['xxx']],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
63 \ 'bufhidden': [['', 'hide', 'wipe'], ['xxx', 'hide,wipe']],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
64 \ 'buftype': [['', 'help', 'nofile'], ['xxx', 'help,nofile']],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
65 \ 'casemap': [['', 'internal'], ['xxx']],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
66 \ 'cedit': [['', '\<Esc>'], ['xxx', 'f']],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
67 \ 'clipboard': [['', 'unnamed', 'autoselect,unnamed'], ['xxx']],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
68 \ 'colorcolumn': [['', '8', '+2'], ['xxx']],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
69 \ 'comments': [['', 'b:#'], ['xxx']],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
70 \ 'commentstring': [['', '/*%s*/'], ['xxx']],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
71 \ 'complete': [['', 'w,b'], ['xxx']],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
72 \ 'concealcursor': [['', 'n', 'nvic'], ['xxx']],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
73 \ 'completeopt': [['', 'menu', 'menu,longest'], ['xxx', 'menu,,,longest,']],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
74 \ 'cryptmethod': [['', 'zip'], ['xxx']],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
75 \ 'cscopequickfix': [['', 's-', 's-,c+,e0'], ['xxx', 's,g,d']],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
76 \ 'debug': [['', 'msg', 'msg', 'beep'], ['xxx']],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
77 \ 'diffopt': [['', 'filler', 'icase,iwhite'], ['xxx']],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
78 \ 'display': [['', 'lastline', 'lastline,uhex'], ['xxx']],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
79 \ 'eadirection': [['', 'both', 'ver'], ['xxx', 'ver,hor']],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
80 \ 'encoding': [['latin1'], ['xxx', '']],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
81 \ 'eventignore': [['', 'WinEnter', 'WinLeave,winenter'], ['xxx']],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
82 \ 'fileencoding': [['', 'latin1', 'xxx'], []],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
83 \ 'fileformat': [['', 'dos', 'unix'], ['xxx']],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
84 \ 'fileformats': [['', 'dos', 'dos,unix'], ['xxx']],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
85 \ 'fillchars': [['', 'vert:x'], ['xxx']],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
86 \ 'foldclose': [['', 'all'], ['xxx']],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
87 \ 'foldmethod': [['manual', 'indent'], ['', 'xxx', 'expr,diff']],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
88 \ 'foldopen': [['', 'all', 'hor,jump'], ['xxx']],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
89 \ 'foldmarker': [['((,))'], ['', 'xxx']],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
90 \ 'formatoptions': [['', 'vt', 'v,t'], ['xxx']],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
91 \ 'guicursor': [['', 'n:block-Cursor'], ['xxx']],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
92 \ 'helplang': [['', 'de', 'de,it'], ['xxx']],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
93 \ 'highlight': [['', 'e:Error'], ['xxx']],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
94 \ 'isfname': [['', '@', '@,48-52'], ['xxx', '@48']],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
95 \ 'isident': [['', '@', '@,48-52'], ['xxx', '@48']],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
96 \ 'iskeyword': [['', '@', '@,48-52'], ['xxx', '@48']],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
97 \ 'isprint': [['', '@', '@,48-52'], ['xxx', '@48']],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
98 \ 'keymap': [['', 'accents'], ['xxx']],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
99 \ 'keymodel': [['', 'startsel', 'startsel,stopsel'], ['xxx']],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
100 \ 'langmap': [['', 'xX', 'aA,bB'], ['xxx']],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
101 \ 'listchars': [['', 'eol:x', 'eol:x,space:y'], ['xxx']],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
102 \ 'matchpairs': [['', '(:)', '(:),<:>'], ['xxx']],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
103 \ 'mkspellmem': [['10000,100,12'], ['', 'xxx']],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
104 \ 'mouse': [['', 'a', 'nvi'], ['xxx', 'n,v,i']],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
105 \ 'mousemodel': [['', 'popup'], ['xxx']],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
106 \ 'mouseshape': [['', 'n:arrow'], ['xxx']],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
107 \ 'nrformats': [['', 'alpha', 'alpha,hex,bin'], ['xxx']],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
108 \ 'printmbfont': [['', 'r:some', 'b:Bold,c:yes'], ['xxx']],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
109 \ 'printoptions': [['', 'header:0', 'left:10pc,top:5pc'], ['xxx']],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
110 \ 'scrollopt': [['', 'ver', 'ver,hor'], ['xxx']],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
111 \ 'selection': [['old', 'inclusive'], ['', 'xxx']],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
112 \ 'selectmode': [['', 'mouse', 'key,cmd'], ['xxx']],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
113 \ 'sessionoptions': [['', 'blank', 'help,options,slash'], ['xxx']],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
114 \ 'signcolumn': [['', 'auto', 'no'], ['xxx', 'no,yes']],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
115 \ 'spellfile': [['', 'file.en.add'], ['xxx', '/tmp/file']],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
116 \ 'spellsuggest': [['', 'best', 'double,33'], ['xxx']],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
117 \ 'switchbuf': [['', 'useopen', 'split,newtab'], ['xxx']],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
118 \ 'tagcase': [['smart', 'match'], ['', 'xxx', 'smart,match']],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
119 \ 'term': [['ansi'], ['', 'gui']],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
120 \ 'toolbar': [['', 'icons', 'text'], ['xxx']],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
121 \ 'toolbariconsize': [['', 'tiny', 'huge'], ['xxx']],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
122 \ 'ttymouse': [['', 'xterm'], ['xxx']],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
123 \ 'ttytype': [['ansi'], ['', 'gui']],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
124 \ 'viewoptions': [['', 'cursor', 'unix,slash'], ['xxx']],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
125 \ 'viminfo': [['', '''50', '"30'], ['xxx']],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
126 \ 'virtualedit': [['', 'all', 'all,block'], ['xxx']],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
127 \ 'whichwrap': [['', 'b,s', 'bs'], ['xxx']],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
128 \ 'wildmode': [['', 'full', 'list:full', 'full,longest'], ['xxx']],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
129 \ 'wildoptions': [['', 'tagfile'], ['xxx']],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
130 \ 'winaltkeys': [['menu', 'no'], ['', 'xxx']],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
131 \
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
132 \ 'luadll': [[], []],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
133 \ 'perldll': [[], []],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
134 \ 'pythondll': [[], []],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
135 \ 'pythonthreedll': [[], []],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
136 \ 'pyxversion': [[], []],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
137 \ 'rubydll': [[], []],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
138 \ 'tcldll': [[], []],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
139 \
10962
6da4287fd735 patch 8.0.0370: invalid memory access when setting wildchar empty
Christian Brabandt <cb@256bit.org>
parents: 10960
diff changeset
140 \ 'othernum': [[-1, 0, 100], ['']],
10958
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
141 \ 'otherstring': [['', 'xxx'], []],
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
142 \}
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
143
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
144 1
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
145 /struct vimoption options
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
146 while 1
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
147 /{"
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
148 if line('.') > end
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
149 break
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
150 endif
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
151 let line = getline('.')
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
152 let name = substitute(line, '.*{"\([^"]*\)".*', '\1', '')
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
153 let shortname = substitute(line, '.*"\([^"]*\)".*', '\1', '')
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
154
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
155 if has_key(test_values, name)
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
156 let a = test_values[name]
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
157 elseif line =~ 'P_NUM'
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
158 let a = test_values['othernum']
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
159 else
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
160 let a = test_values['otherstring']
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
161 endif
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
162 if len(a[0]) > 0 || len(a[1]) > 0
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
163 if line =~ 'P_BOOL'
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
164 call add(script, 'set ' . name)
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
165 call add(script, 'set ' . shortname)
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
166 call add(script, 'set no' . name)
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
167 call add(script, 'set no' . shortname)
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
168 else
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
169 for val in a[0]
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
170 call add(script, 'set ' . name . '=' . val)
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
171 call add(script, 'set ' . shortname . '=' . val)
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
172 endfor
10960
d7b78cbf85e4 patch 8.0.0369: a few options are not defined, depending on features
Christian Brabandt <cb@256bit.org>
parents: 10958
diff changeset
173
d7b78cbf85e4 patch 8.0.0369: a few options are not defined, depending on features
Christian Brabandt <cb@256bit.org>
parents: 10958
diff changeset
174 " setting an option can only fail when it's implemented.
d7b78cbf85e4 patch 8.0.0369: a few options are not defined, depending on features
Christian Brabandt <cb@256bit.org>
parents: 10958
diff changeset
175 call add(script, "if exists('+" . name . "')")
10958
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
176 for val in a[1]
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
177 call add(script, "call assert_fails('set " . name . "=" . val . "')")
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
178 call add(script, "call assert_fails('set " . shortname . "=" . val . "')")
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
179 endfor
10960
d7b78cbf85e4 patch 8.0.0369: a few options are not defined, depending on features
Christian Brabandt <cb@256bit.org>
parents: 10958
diff changeset
180 call add(script, "endif")
10958
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
181 endif
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
182
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
183 call add(script, 'set ' . name . '&')
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
184 call add(script, 'set ' . shortname . '&')
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
185 endif
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
186 endwhile
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
187
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
188 call add(script, 'let &term = save_term')
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
189 call add(script, 'let &columns = save_columns')
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
190 call add(script, 'let &lines = save_lines')
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
191
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
192 call writefile(script, 'testdir/opt_test.vim')
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
193
10994
fdf42c56bb2e patch 8.0.0386: tiny build has a problem with generating the options test
Christian Brabandt <cb@256bit.org>
parents: 10962
diff changeset
194 endif
fdf42c56bb2e patch 8.0.0386: tiny build has a problem with generating the options test
Christian Brabandt <cb@256bit.org>
parents: 10962
diff changeset
195
10958
e5896de85dcf patch 8.0.0368: not all options are tested with a range of values
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
196 qa!