Format of test specifications
Hi,
The format for test specifications in 'desc' mixes template fill data
(Package-Architecture:) with test options (Output-Format:) and
constraints (Test-Architectures:). I would like to split it into three
files.
* Please note that all test specifications throughout 't/' would be split. *
There are no tests currently that use all three sections. As a
example, therefore, the default configuration in 't/defaults/desc'
would look something like this:
desc/template-fill:
Author: Debian Lintian Maintainers <lintian-maint@debian.org>
Section: devel
Distribution: unstable
Type: native
Source-Format: 1.0
Package-Architecture: all
Prev-Date: Mon, 01 Jan 1990 00:00:00 +0100
desc/test-options:
Skeleton: default
Post-Template-Command: post_template
Runner: generic.t
Builder: builder
Sequence: 6000
Profile: debian
Options: -I -E
Output-Format: EWI
Sort: yes
Todo: no
desc/constraints:
Test-Architectures: any
I considered and discarded the idea to continue to use one file in a
format with multiple sections. When degrees of freedom are allowed (by
altering the template input) the information ends up in different
places: The template data belongs to a single built package, while
constraints apply to a group of tests around the specification. File
modification times also matter; changing 'Test-Architectures', should
not trigger the rebuilding of packages.
If there are no objections, I will probably file merge requests in a
few weeks. Please let me know what you think!
Kind regards,
Felix
Reply to: