patch 9.1.1517: filetype: autopkgtest files are not recognized
Problem: filetype: autopkgtest files are not recognized
Solution: detect */debian/tests/control files as autopkgtest filetype
(James McCoy)
Autopkgtest is a Debian tool for testing installed versions of packages
when other, related packages are updated.
Reference:
- https://www.debian.org/doc/debian-policy/autopkgtest.txt
related: #17679
Signed-off-by: James McCoy <jamessan@jamessan.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
08e5b128b8
commit
5bcc492649
@ -690,11 +690,16 @@ au BufNewFile,BufRead *.dfy setf dafny
|
||||
" Dart
|
||||
au BufRead,BufNewfile *.dart,*.drt setf dart
|
||||
|
||||
" Debian autopkgtest
|
||||
au BufNewFile,BufRead */debian/tests/control setf autopkgtest
|
||||
|
||||
" Debian Control
|
||||
au BufNewFile,BufRead */{debian,DEBIAN}/control setf debcontrol
|
||||
au BufNewFile,BufRead control
|
||||
\ if getline(1) =~ '^Source:\|^Package:'
|
||||
\| setf debcontrol
|
||||
\| elseif getline(1) =~ '^Tests:\|^Test-Command:'
|
||||
\| setf autopkgtest
|
||||
\| endif
|
||||
|
||||
" Debian Copyright
|
||||
|
||||
Reference in New Issue
Block a user