robin/laufey

git clone https://git.robinwobin.dev/robin/laufey

zeertzjqMerge pull request #38751 from zeertzjq/vim-9.2.02911fcd849d40

master
18.3 KiB531 linesraw
1" Tests for 'packpath' and :packadd
2
3
4func SetUp()
5  let s:topdir = getcwd() . '/Xdir'
6  exe 'set packpath=' . s:topdir
7  let s:plugdir = s:topdir . '/pack/mine/opt/mytest'
8endfunc
9
10func TearDown()
11  call delete(s:topdir, 'rf')
12endfunc
13
14func Test_packadd()
15  if !exists('s:plugdir')
16    echomsg 'when running this test manually, call SetUp() first'
17    return
18  endif
19
20  call mkdir(s:plugdir . '/plugin/also', 'p')
21  call mkdir(s:plugdir . '/ftdetect', 'p')
22  call mkdir(s:plugdir . '/after', 'p')
23
24  " This used to crash Vim
25  let &rtp = 'nosuchdir,' . s:plugdir . '/after'
26  packadd mytest
27  " plugdir should be inserted before plugdir/after
28  call assert_match('^nosuchdir,' . s:plugdir . ',', &rtp)
29
30  " This used to cause heep-buffer-overflow
31  " All existing entries in 'rtp' have the same length here
32  let &rtp = 'Xfoodir,Xbardir,Xbazdir'
33  packadd mytest
34  " plugdir should be inserted after the existing directories
35  call assert_match('^Xfoodir,Xbardir,Xbazdir,' .. s:plugdir .. ',', &rtp)
36
37  set rtp&
38  let rtp = &rtp
39  filetype on
40
41  let rtp_entries = split(rtp, ',')
42  for entry in rtp_entries
43    if entry =~? '\<after\>'
44      let first_after_entry = entry
45      break
46    endif
47  endfor
48
49  exe 'split ' . s:plugdir . '/plugin/test.vim'
50  call setline(1, 'let g:plugin_works = 42')
51  wq
52
53  exe 'split ' . s:plugdir . '/plugin/also/loaded.vim'
54  call setline(1, 'let g:plugin_also_works = 77')
55  wq
56
57  exe 'split ' . s:plugdir . '/ftdetect/test.vim'
58  call setline(1, 'let g:ftdetect_works = 17')
59  wq
60
61  packadd mytest
62
63  call assert_equal(42, g:plugin_works)
64  call assert_equal(77, g:plugin_also_works)
65  call assert_equal(17, g:ftdetect_works)
66  call assert_true(len(&rtp) > len(rtp))
67  call assert_match('/testdir/Xdir/pack/mine/opt/mytest\($\|,\)', &rtp)
68
69  let new_after = match(&rtp, '/testdir/Xdir/pack/mine/opt/mytest/after,')
70  let forwarded = substitute(first_after_entry, '\\', '[/\\\\]', 'g')
71  let old_after = match(&rtp, ',' . forwarded . '\>')
72  call assert_true(new_after > 0, 'rtp is ' . &rtp)
73  call assert_true(old_after > 0, 'match ' . forwarded . ' in ' . &rtp)
74  call assert_true(new_after < old_after, 'rtp is ' . &rtp)
75
76  " NOTE: '/.../opt/myte' forwardly matches with '/.../opt/mytest'
77  call mkdir(fnamemodify(s:plugdir, ':h') . '/myte', 'p')
78  let rtp = &rtp
79  packadd myte
80
81  " Check the path of 'myte' is added
82  call assert_true(len(&rtp) > len(rtp))
83  call assert_match('/testdir/Xdir/pack/mine/opt/myte\($\|,\)', &rtp)
84
85  " Check exception
86  call assert_fails("packadd directorynotfound", 'E919:')
87  call assert_fails("packadd", 'E471:')
88endfunc
89
90func Test_packadd_start()
91  let plugdir = s:topdir . '/pack/mine/start/other'
92  call mkdir(plugdir . '/plugin', 'p')
93  set rtp&
94  let rtp = &rtp
95  filetype on
96
97  exe 'split ' . plugdir . '/plugin/test.vim'
98  call setline(1, 'let g:plugin_works = 24')
99  wq
100
101  packadd other
102
103  call assert_equal(24, g:plugin_works)
104  call assert_true(len(&rtp) > len(rtp))
105  call assert_match('/testdir/Xdir/pack/mine/start/other\($\|,\)', &rtp)
106endfunc
107
108func Test_packadd_noload()
109  call mkdir(s:plugdir . '/plugin', 'p')
110  call mkdir(s:plugdir . '/syntax', 'p')
111  set rtp&
112  let rtp = &rtp
113
114  exe 'split ' . s:plugdir . '/plugin/test.vim'
115  call setline(1, 'let g:plugin_works = 42')
116  wq
117  let g:plugin_works = 0
118
119  packadd! mytest
120
121  call assert_true(len(&rtp) > len(rtp))
122  call assert_match('testdir/Xdir/pack/mine/opt/mytest\($\|,\)', &rtp)
123  call assert_equal(0, g:plugin_works)
124
125  " check the path is not added twice
126  let new_rtp = &rtp
127  packadd! mytest
128  call assert_equal(new_rtp, &rtp)
129endfunc
130
131func Test_packadd_symlink_dir()
132  if !has('unix')
133    return
134  endif
135  let top2_dir = s:topdir . '/Xdir2'
136  let real_dir = s:topdir . '/Xsym'
137  call mkdir(real_dir, 'p')
138  exec "silent !ln -s Xsym"  top2_dir
139  let &rtp = top2_dir . ',' . top2_dir . '/after'
140  let &packpath = &rtp
141
142  let s:plugdir = top2_dir . '/pack/mine/opt/mytest'
143  call mkdir(s:plugdir . '/plugin', 'p')
144
145  exe 'split ' . s:plugdir . '/plugin/test.vim'
146  call setline(1, 'let g:plugin_works = 44')
147  wq
148  let g:plugin_works = 0
149
150  packadd mytest
151
152  " Must have been inserted in the middle, not at the end
153  call assert_match('/pack/mine/opt/mytest,', &rtp)
154  call assert_equal(44, g:plugin_works)
155
156  " No change when doing it again.
157  let rtp_before = &rtp
158  packadd mytest
159  call assert_equal(rtp_before, &rtp)
160
161  set rtp&
162  let rtp = &rtp
163  exec "silent !rm" top2_dir
164endfunc
165
166func Test_packadd_symlink_dir2()
167  if !has('unix')
168    return
169  endif
170  let top2_dir = s:topdir . '/Xdir2'
171  let real_dir = s:topdir . '/Xsym/pack'
172  call mkdir(top2_dir, 'p')
173  call mkdir(real_dir, 'p')
174  let &rtp = top2_dir . ',' . top2_dir . '/after'
175  let &packpath = &rtp
176
177  exec "silent !ln -s ../Xsym/pack"  top2_dir . '/pack'
178  let s:plugdir = top2_dir . '/pack/mine/opt/mytest'
179  call mkdir(s:plugdir . '/plugin', 'p')
180
181  exe 'split ' . s:plugdir . '/plugin/test.vim'
182  call setline(1, 'let g:plugin_works = 48')
183  wq
184  let g:plugin_works = 0
185
186  packadd mytest
187
188  " Must have been inserted in the middle, not at the end
189  call assert_match('/Xdir2/pack/mine/opt/mytest,', &rtp)
190  call assert_equal(48, g:plugin_works)
191
192  " No change when doing it again.
193  let rtp_before = &rtp
194  packadd mytest
195  call assert_equal(rtp_before, &rtp)
196
197  set rtp&
198  let rtp = &rtp
199  exec "silent !rm" top2_dir . '/pack'
200  exec "silent !rmdir" top2_dir
201endfunc
202
203" Check command-line completion for :packadd
204func Test_packadd_completion()
205  let optdir1 = &packpath . '/pack/mine/opt'
206  let optdir2 = &packpath . '/pack/candidate/opt'
207
208  call mkdir(optdir1 . '/pluginA', 'p')
209  call mkdir(optdir1 . '/pluginC', 'p')
210  call writefile([], optdir1 . '/unrelated')
211  call mkdir(optdir2 . '/pluginB', 'p')
212  call mkdir(optdir2 . '/pluginC', 'p')
213  call writefile([], optdir2 . '/unrelated')
214
215  let li = []
216  call feedkeys(":packadd \<Tab>')\<C-B>call add(li, '\<CR>", 't')
217  call feedkeys(":packadd " . repeat("\<Tab>", 2) . "')\<C-B>call add(li, '\<CR>", 't')
218  call feedkeys(":packadd " . repeat("\<Tab>", 3) . "')\<C-B>call add(li, '\<CR>", 't')
219  call feedkeys(":packadd " . repeat("\<Tab>", 4) . "')\<C-B>call add(li, '\<CR>", 'tx')
220  call assert_equal("packadd pluginA", li[0])
221  call assert_equal("packadd pluginB", li[1])
222  call assert_equal("packadd pluginC", li[2])
223  call assert_equal("packadd ", li[3])
224endfunc
225
226func Test_packloadall()
227  " plugin foo with an autoload directory
228  let fooplugindir = &packpath . '/pack/mine/start/foo/plugin'
229  call mkdir(fooplugindir, 'p')
230  call writefile(['let g:plugin_foo_number = 1234',
231	\ 'let g:plugin_foo_auto = bbb#value',
232	\ 'let g:plugin_extra_auto = extra#value'], fooplugindir . '/bar.vim')
233  let fooautodir = &packpath . '/pack/mine/start/foo/autoload'
234  call mkdir(fooautodir, 'p')
235  call writefile(['let bar#value = 77'], fooautodir . '/bar.vim')
236
237  " plugin aaa with an autoload directory
238  let aaaplugindir = &packpath . '/pack/mine/start/aaa/plugin'
239  call mkdir(aaaplugindir, 'p')
240  call writefile(['let g:plugin_aaa_number = 333',
241	\ 'let g:plugin_aaa_auto = bar#value'], aaaplugindir . '/bbb.vim')
242  let aaaautodir = &packpath . '/pack/mine/start/aaa/autoload'
243  call mkdir(aaaautodir, 'p')
244  call writefile(['let bbb#value = 55'], aaaautodir . '/bbb.vim')
245
246  " plugin extra with only an autoload directory
247  let extraautodir = &packpath . '/pack/mine/start/extra/autoload'
248  call mkdir(extraautodir, 'p')
249  call writefile(['let extra#value = 99'], extraautodir . '/extra.vim')
250
251  packloadall
252  call assert_equal(1234, g:plugin_foo_number)
253  call assert_equal(55, g:plugin_foo_auto)
254  call assert_equal(99, g:plugin_extra_auto)
255  call assert_equal(333, g:plugin_aaa_number)
256  call assert_equal(77, g:plugin_aaa_auto)
257
258  " only works once
259  call writefile(['let g:plugin_bar_number = 4321'], fooplugindir . '/bar2.vim')
260  packloadall
261  call assert_false(exists('g:plugin_bar_number'))
262
263  " works when ! used
264  packloadall!
265  call assert_equal(4321, g:plugin_bar_number)
266endfunc
267
268func Test_start_autoload()
269  " plugin foo with an autoload directory
270  let autodir = &packpath .. '/pack/mine/start/foo/autoload'
271  call mkdir(autodir, 'p')
272  let fname = autodir .. '/foobar.vim'
273  call writefile(['func foobar#test()',
274	\ '  return 1666',
275	\ 'endfunc'], fname)
276
277  call assert_equal(1666, foobar#test())
278  call delete(fname)
279endfunc
280
281func Test_helptags()
282  let docdir1 = &packpath . '/pack/mine/start/foo/doc'
283  let docdir2 = &packpath . '/pack/mine/start/bar/doc'
284  call mkdir(docdir1, 'p')
285  call mkdir(docdir2, 'p')
286  call writefile(['look here: *look-here*'], docdir1 . '/bar.txt')
287  call writefile(['look away: *look-away*'], docdir2 . '/foo.txt')
288  exe 'set rtp=' . &packpath . '/pack/mine/start/foo,' . &packpath . '/pack/mine/start/bar'
289
290  helptags ALL
291
292  let tags1 = readfile(docdir1 . '/tags')
293  call assert_match('look-here', tags1[0])
294  let tags2 = readfile(docdir2 . '/tags')
295  call assert_match('look-away', tags2[0])
296
297  call assert_fails('helptags abcxyz', 'E150:')
298endfunc
299
300func Test_colorscheme()
301  let colordirrun = &packpath . '/runtime/colors'
302  let colordirstart = &packpath . '/pack/mine/start/foo/colors'
303  let colordiropt = &packpath . '/pack/mine/opt/bar/colors'
304  call mkdir(colordirrun, 'p')
305  call mkdir(colordirstart, 'p')
306  call mkdir(colordiropt, 'p')
307  call writefile(['let g:found_one = 1'], colordirrun . '/one.vim')
308  call writefile(['let g:found_two = 1'], colordirstart . '/two.vim')
309  call writefile(['let g:found_three = 1'], colordiropt . '/three.vim')
310  exe 'set rtp=' . &packpath . '/runtime'
311
312  colorscheme one
313  call assert_equal(1, g:found_one)
314  colorscheme two
315  call assert_equal(1, g:found_two)
316  colorscheme three
317  call assert_equal(1, g:found_three)
318endfunc
319
320func Test_colorscheme_completion()
321  let colordirrun = &packpath . '/runtime/colors'
322  let colordirstart = &packpath . '/pack/mine/start/foo/colors'
323  let colordiropt = &packpath . '/pack/mine/opt/bar/colors'
324  call mkdir(colordirrun, 'p')
325  call mkdir(colordirstart, 'p')
326  call mkdir(colordiropt, 'p')
327  call writefile(['let g:found_one = 1'], colordirrun . '/one.vim')
328  call writefile(['let g:found_two = 1'], colordirstart . '/two.vim')
329  call writefile(['let g:found_three = 1'], colordiropt . '/three.vim')
330  exe 'set rtp=' . &packpath . '/runtime'
331
332  let li=[]
333  call feedkeys(":colorscheme " . repeat("\<Tab>", 1) . "')\<C-B>call add(li, '\<CR>", 't')
334  call feedkeys(":colorscheme " . repeat("\<Tab>", 2) . "')\<C-B>call add(li, '\<CR>", 't')
335  call feedkeys(":colorscheme " . repeat("\<Tab>", 3) . "')\<C-B>call add(li, '\<CR>", 't')
336  call feedkeys(":colorscheme " . repeat("\<Tab>", 4) . "')\<C-B>call add(li, '\<CR>", 'tx')
337  call assert_equal("colorscheme one", li[0])
338  call assert_equal("colorscheme three", li[1])
339  call assert_equal("colorscheme two", li[2])
340  call assert_equal("colorscheme ", li[3])
341endfunc
342
343func Test_runtime()
344  let rundir = &packpath . '/runtime/extra'
345  let startdir = &packpath . '/pack/mine/start/foo/extra'
346  let optdir = &packpath . '/pack/mine/opt/bar/extra'
347  call mkdir(rundir, 'p')
348  call mkdir(startdir, 'p')
349  call mkdir(optdir, 'p')
350  call writefile(['let g:sequence .= "run"'], rundir . '/bar.vim')
351  call writefile(['let g:sequence .= "start"'], startdir . '/bar.vim')
352  call writefile(['let g:sequence .= "foostart"'], startdir . '/foo.vim')
353  call writefile(['let g:sequence .= "opt"'], optdir . '/bar.vim')
354  call writefile(['let g:sequence .= "xxxopt"'], optdir . '/xxx.vim')
355  exe 'set rtp=' . &packpath . '/runtime'
356
357  let g:sequence = ''
358  runtime extra/bar.vim
359  call assert_equal('run', g:sequence)
360  let g:sequence = ''
361  runtime NoSuchFile extra/bar.vim
362  call assert_equal('run', g:sequence)
363
364  let g:sequence = ''
365  runtime START extra/bar.vim
366  call assert_equal('start', g:sequence)
367  let g:sequence = ''
368  runtime START NoSuchFile extra/bar.vim extra/foo.vim
369  call assert_equal('start', g:sequence)
370  let g:sequence = ''
371  runtime START NoSuchFile extra/foo.vim extra/bar.vim
372  call assert_equal('foostart', g:sequence)
373  let g:sequence = ''
374  runtime! START NoSuchFile extra/bar.vim extra/foo.vim
375  call assert_equal('startfoostart', g:sequence)
376
377  let g:sequence = ''
378  runtime OPT extra/bar.vim
379  call assert_equal('opt', g:sequence)
380  let g:sequence = ''
381  runtime OPT NoSuchFile extra/bar.vim extra/xxx.vim
382  call assert_equal('opt', g:sequence)
383  let g:sequence = ''
384  runtime OPT NoSuchFile extra/xxx.vim extra/bar.vim
385  call assert_equal('xxxopt', g:sequence)
386  let g:sequence = ''
387  runtime! OPT NoSuchFile extra/bar.vim extra/xxx.vim
388  call assert_equal('optxxxopt', g:sequence)
389
390  let g:sequence = ''
391  runtime PACK extra/bar.vim
392  call assert_equal('start', g:sequence)
393  let g:sequence = ''
394  runtime! PACK extra/bar.vim
395  call assert_equal('startopt', g:sequence)
396  let g:sequence = ''
397  runtime PACK extra/xxx.vim
398  call assert_equal('xxxopt', g:sequence)
399  let g:sequence = ''
400  runtime PACK extra/xxx.vim extra/foo.vim extra/bar.vim
401  call assert_equal('foostart', g:sequence)
402  let g:sequence = ''
403  runtime! PACK extra/bar.vim extra/xxx.vim extra/foo.vim
404  call assert_equal('startfoostartoptxxxopt', g:sequence)
405
406  let g:sequence = ''
407  runtime ALL extra/bar.vim
408  call assert_equal('run', g:sequence)
409  let g:sequence = ''
410  runtime ALL extra/foo.vim
411  call assert_equal('foostart', g:sequence)
412  let g:sequence = ''
413  runtime! ALL extra/xxx.vim
414  call assert_equal('xxxopt', g:sequence)
415  let g:sequence = ''
416  runtime! ALL extra/bar.vim
417  call assert_equal('runstartopt', g:sequence)
418  let g:sequence = ''
419  runtime ALL extra/xxx.vim extra/foo.vim extra/bar.vim
420  call assert_equal('run', g:sequence)
421  let g:sequence = ''
422  runtime! ALL extra/bar.vim extra/xxx.vim extra/foo.vim
423  call assert_equal('runstartfoostartoptxxxopt', g:sequence)
424endfunc
425
426func Test_runtime_completion()
427  let rundir = &packpath . '/runtime/Aextra'
428  let startdir = &packpath . '/pack/mine/start/foo/Aextra'
429  let optdir = &packpath . '/pack/mine/opt/bar/Aextra'
430  call mkdir(rundir . '/Arunbaz', 'p')
431  call mkdir(startdir . '/Astartbaz', 'p')
432  call mkdir(optdir . '/Aoptbaz', 'p')
433  call writefile([], rundir . '/../Arunfoo.vim')
434  call writefile([], rundir . '/Arunbar.vim')
435  call writefile([], rundir . '/Aunrelated')
436  call writefile([], rundir . '/../Aunrelated')
437  call writefile([], startdir . '/../Astartfoo.vim')
438  call writefile([], startdir . '/Astartbar.vim')
439  call writefile([], startdir . '/Aunrelated')
440  call writefile([], startdir . '/../Aunrelated')
441  call writefile([], optdir . '/../Aoptfoo.vim')
442  call writefile([], optdir . '/Aoptbar.vim')
443  call writefile([], optdir . '/Aunrelated')
444  call writefile([], optdir . '/../Aunrelated')
445  exe 'set rtp=' . &packpath . '/runtime'
446
447  func Check_runtime_completion(arg, arg_prev, res)
448    call feedkeys(':runtime ' .. a:arg .. "\<C-A>\<C-B>\"\<CR>", 'xt')
449    call assert_equal('"runtime ' .. a:arg_prev .. join(a:res), @:)
450    call assert_equal(a:res, getcompletion(a:arg, 'runtime'))
451  endfunc
452
453  call Check_runtime_completion('', '',
454        \ ['Aextra/', 'Arunfoo.vim', 'START', 'OPT', 'PACK', 'ALL'])
455  call Check_runtime_completion('S', '',
456        \ ['START'])
457  call Check_runtime_completion('O', '',
458        \ ['OPT'])
459  call Check_runtime_completion('P', '',
460        \ ['PACK'])
461  call Check_runtime_completion('A', '',
462        \ ['Aextra/', 'Arunfoo.vim', 'ALL'])
463  call Check_runtime_completion('Other.vim ', 'Other.vim ',
464        \ ['Aextra/', 'Arunfoo.vim'])
465  call Check_runtime_completion('Aextra/', '',
466        \ ['Aextra/Arunbar.vim', 'Aextra/Arunbaz/'])
467  call Check_runtime_completion('Other.vim Aextra/', 'Other.vim ',
468        \ ['Aextra/Arunbar.vim', 'Aextra/Arunbaz/'])
469
470  call Check_runtime_completion('START ', 'START ',
471        \ ['Aextra/', 'Astartfoo.vim'])
472  call Check_runtime_completion('START Other.vim ', 'START Other.vim ',
473        \ ['Aextra/', 'Astartfoo.vim'])
474  call Check_runtime_completion('START A', 'START ',
475        \ ['Aextra/', 'Astartfoo.vim'])
476  call Check_runtime_completion('START Other.vim A', 'START Other.vim ',
477        \ ['Aextra/', 'Astartfoo.vim'])
478  call Check_runtime_completion('START Aextra/', 'START ',
479        \ ['Aextra/Astartbar.vim', 'Aextra/Astartbaz/'])
480  call Check_runtime_completion('START Other.vim Aextra/', 'START Other.vim ',
481        \ ['Aextra/Astartbar.vim', 'Aextra/Astartbaz/'])
482
483  call Check_runtime_completion('OPT ', 'OPT ',
484        \ ['Aextra/', 'Aoptfoo.vim'])
485  call Check_runtime_completion('OPT Other.vim ', 'OPT Other.vim ',
486        \ ['Aextra/', 'Aoptfoo.vim'])
487  call Check_runtime_completion('OPT A', 'OPT ',
488        \ ['Aextra/', 'Aoptfoo.vim'])
489  call Check_runtime_completion('OPT Other.vim A', 'OPT Other.vim ',
490        \ ['Aextra/', 'Aoptfoo.vim'])
491  call Check_runtime_completion('OPT Aextra/', 'OPT ',
492        \ ['Aextra/Aoptbar.vim', 'Aextra/Aoptbaz/'])
493  call Check_runtime_completion('OPT Other.vim Aextra/', 'OPT Other.vim ',
494        \ ['Aextra/Aoptbar.vim', 'Aextra/Aoptbaz/'])
495
496  call Check_runtime_completion('PACK ', 'PACK ',
497        \ ['Aextra/', 'Aoptfoo.vim', 'Astartfoo.vim'])
498  call Check_runtime_completion('PACK Other.vim ', 'PACK Other.vim ',
499        \ ['Aextra/', 'Aoptfoo.vim', 'Astartfoo.vim'])
500  call Check_runtime_completion('PACK A', 'PACK ',
501        \ ['Aextra/', 'Aoptfoo.vim', 'Astartfoo.vim'])
502  call Check_runtime_completion('PACK Other.vim A', 'PACK Other.vim ',
503        \ ['Aextra/', 'Aoptfoo.vim', 'Astartfoo.vim'])
504  call Check_runtime_completion('PACK Aextra/', 'PACK ',
505        \ ['Aextra/Aoptbar.vim', 'Aextra/Aoptbaz/',
506        \ 'Aextra/Astartbar.vim', 'Aextra/Astartbaz/'])
507  call Check_runtime_completion('PACK Other.vim Aextra/', 'PACK Other.vim ',
508        \ ['Aextra/Aoptbar.vim', 'Aextra/Aoptbaz/',
509        \ 'Aextra/Astartbar.vim', 'Aextra/Astartbaz/'])
510
511  call Check_runtime_completion('ALL ', 'ALL ',
512        \ ['Aextra/', 'Aoptfoo.vim', 'Arunfoo.vim', 'Astartfoo.vim'])
513  call Check_runtime_completion('ALL Other.vim ', 'ALL Other.vim ',
514        \ ['Aextra/', 'Aoptfoo.vim', 'Arunfoo.vim', 'Astartfoo.vim'])
515  call Check_runtime_completion('ALL A', 'ALL ',
516        \ ['Aextra/', 'Aoptfoo.vim', 'Arunfoo.vim', 'Astartfoo.vim'])
517  call Check_runtime_completion('ALL Other.vim A', 'ALL Other.vim ',
518        \ ['Aextra/', 'Aoptfoo.vim', 'Arunfoo.vim', 'Astartfoo.vim'])
519  call Check_runtime_completion('ALL Aextra/', 'ALL ',
520        \ ['Aextra/Aoptbar.vim', 'Aextra/Aoptbaz/',
521        \ 'Aextra/Arunbar.vim', 'Aextra/Arunbaz/',
522        \ 'Aextra/Astartbar.vim', 'Aextra/Astartbaz/'])
523  call Check_runtime_completion('ALL Other.vim Aextra/', 'ALL Other.vim ',
524        \ ['Aextra/Aoptbar.vim', 'Aextra/Aoptbaz/',
525        \ 'Aextra/Arunbar.vim', 'Aextra/Arunbaz/',
526        \ 'Aextra/Astartbar.vim', 'Aextra/Astartbaz/'])
527
528  delfunc Check_runtime_completion
529endfunc
530
531" vim: shiftwidth=2 sts=2 expandtab