diff options
author | Guillem Jover <guillem@debian.org> | 2016-05-13 17:10:33 +0200 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2016-07-03 18:44:24 +0200 |
commit | 0d159ba9b5da8bd5dfcb9e9110ba3e4c2867b0fe (patch) | |
tree | 2d06cb942ad9152ed4ab0dbfc871717408d0d649 /scripts/Dpkg/Control/FieldsCore.pm | |
parent | fc55edbf31dc9d8649229fdca441cb63844424d9 (diff) | |
download | dpkg-0d159ba9b5da8bd5dfcb9e9110ba3e4c2867b0fe.tar.gz |
Dpkg::Control: Add new autopkgtest control files support
Add new CTRL_TESTS control types, new Dpkg::Control::Tests and
Dpkg::Control::Tests::Entry modules, add support for the fields that
can appear on these control files, and update Dpkg::Index to handle
them as well.
[niels@thykier.net: Fix logic inversion. ]
Diffstat (limited to 'scripts/Dpkg/Control/FieldsCore.pm')
-rw-r--r-- | scripts/Dpkg/Control/FieldsCore.pm | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/scripts/Dpkg/Control/FieldsCore.pm b/scripts/Dpkg/Control/FieldsCore.pm index 1f01ae0b0..0c7ce4b1f 100644 --- a/scripts/Dpkg/Control/FieldsCore.pm +++ b/scripts/Dpkg/Control/FieldsCore.pm @@ -153,6 +153,10 @@ our %FIELDS = ( 'Changes' => { allowed => ALL_CHANGES, }, + 'Classes' => { + allowed => CTRL_TESTS, + separator => FIELD_SEP_COMMA, + }, 'Closes' => { allowed => ALL_CHANGES, separator => FIELD_SEP_SPACE, @@ -187,7 +191,7 @@ our %FIELDS = ( allowed => ALL_CHANGES | CTRL_REPO_RELEASE, }, 'Depends' => { - allowed => ALL_PKG, + allowed => ALL_PKG | CTRL_TESTS, separator => FIELD_SEP_COMMA, dependency => 'normal', dep_order => 2, @@ -213,6 +217,10 @@ our %FIELDS = ( 'Essential' => { allowed => ALL_PKG, }, + 'Features' => { + allowed => CTRL_TESTS, + separator => FIELD_SEP_SPACE, + }, 'Filename' => { allowed => CTRL_INDEX_PKG, separator => FIELD_SEP_LINE | FIELD_SEP_SPACE, @@ -291,6 +299,10 @@ our %FIELDS = ( dependency => 'union', dep_order => 8, }, + 'Restrictions' => { + allowed => CTRL_TESTS, + separator => FIELD_SEP_SPACE, + }, 'Section' => { allowed => CTRL_INFO_SRC | CTRL_INDEX_SRC | ALL_PKG, }, @@ -328,6 +340,16 @@ our %FIELDS = ( 'Task' => { allowed => ALL_PKG, }, + 'Test-Command' => { + allowed => CTRL_TESTS, + }, + 'Tests' => { + allowed => CTRL_TESTS, + separator => FIELD_SEP_SPACE, + }, + 'Tests-Directory' => { + allowed => CTRL_TESTS, + }, 'Testsuite' => { allowed => ALL_SRC, separator => FIELD_SEP_COMMA, |