Skip to content
Commits on Source (12)
......@@ -15,6 +15,11 @@ lintian (2.5.117) UNRELEASED; urgency=medium
+ [CL] Correct grammar of the debian-watch-does-not-check-gpg-signature
tag description.
 
* t/*:
+ [CL] Apply a patch series from Felix Lechner to use "skeletons" as
test templates, fixing a "exec failed: Text file busy" regression
when running tests by tag name. (Closes: #916087)
-- Chris Lamb <lamby@debian.org> Fri, 07 Dec 2018 10:41:09 +0100
 
lintian (2.5.116) unstable; urgency=medium
......
......@@ -8,7 +8,6 @@ Package-Architecture: all
Prev-Date: Mon, 01 Jan 1990 00:00:00 +0100
Skeleton: default
Builder: builder
Post-Template-Command: post_template
Sequence: 6000
Profile: debian
Options: -I -E
......
......@@ -441,19 +441,24 @@ sub generic_test_runner {
}
}
# load skeleton
if (exists $testdata->{skeleton}) {
# the skeleton we are working with
my $skeletonname = $testdata->{skeleton};
my $skeletonpath = "$TESTSET/skeletons/$suite/$skeletonname";
my $skeleton = read_config($skeletonpath);
foreach my $key (keys %{$skeleton}) {
$testdata->{$key} = $skeleton->{$key};
}
}
if ( $ALWAYS_REBUILD
or not up_to_date($stampfile, $testdir, $RUNNER_TS)
or -e "$targetdir/debian/debian") {
my $skel = $testdata->{skeleton};
my $tmpldir = "$TESTSET/templates/$suite/";
$test_state->info_msg(2, "Cleaning up and repopulating $targetdir...");
runsystem_ok('rm', '-rf', $targetdir);
......@@ -464,24 +469,9 @@ sub generic_test_runner {
}
# populate working directory with specified template sets
copy_skeleton_template_sets($skeleton->{template_sets},
copy_skeleton_template_sets($testdata->{template_sets},
$targetdir, $TESTSET)
if exists $skeleton->{template_sets};
# get post-template command
my $posttemplatename = $testdata->{post_template_command};
if (length $posttemplatename) {
my $posttemplatepath = "$targetdir/$posttemplatename";
# fill if needed
my $posttemplatetemplate = "$posttemplatepath.in";
fill_template($posttemplatetemplate, $posttemplatepath, $testdata,
$RUNNER_TS)
if -f $posttemplatetemplate;
safe_qx($posttemplatepath, $targetdir)
if -x $posttemplatepath;
}
if exists $testdata->{template_sets};
# delete templates for which we have originals
remove_surplus_templates($testdir, $targetdir);
......@@ -520,9 +510,9 @@ sub generic_test_runner {
if ($ALWAYS_REBUILD or not up_to_date($stampfile, $testdir, $RUNNER_TS)) {
# fill remaining templates
fill_skeleton_templates($skeleton->{fill_targets},
fill_skeleton_templates($testdata->{fill_targets},
$testdata, $RUNNER_TS, $targetdir, $TESTSET)
if exists $skeleton->{fill_targets};
if exists $testdata->{fill_targets};
}
# get lintian subject
......
Type: non-native
Template-Sets:
. (tests-make-builder)
Fill-Targets:
......
Type: non-native
Template-Sets:
debian (tests-pedantic),
debian (tests-watchfile),
. (tests-make-builder)
Fill-Targets:
debian (debian-packaging),
orig/debian (debian-packaging),
. (make-builder)
#!/bin/sh
set -e
DIR="$1"
if [ "{$type}" = "native" ]; then
rm -f "$DIR/debian/watch.in"
rm -f "$DIR/debian/watch"
fi
Testname: basic-non-native-with-epoch
Sequence: 0001
Version: 1:1.0-1
Type: non-native
Skeleton: non-native
Description: Basic test of a non-native package with epoch
Testname: basic-non-native
Sequence: 0001
Type: non-native
Skeleton: non-native
Version: 1.0-1
Description: Basic test of a non-native package
Testname: basic-quilt-updeb
Sequence: 0001
Type: non-native
Skeleton: non-native
Version: 1.0-1
Source-Format: 3.0 (quilt)
Description: Basic test of a 3.0 (quilt) non-native package
Testname: basic-quilt
Sequence: 0001
Type: non-native
Skeleton: non-native
Version: 1.0-1
Source-Format: 3.0 (quilt)
Description: Basic test of a 3.0 (quilt) non-native package
Testname: binaries-static-lib
Version: 1.0-1
Package-Architecture: any
Type: non-native
Skeleton: non-native
Description: Test checks related to static libs
Test-For:
static-library-has-unneeded-section
......
Testname: changelog-file-consecutive-debian-revision-unrel
Type: non-native
Skeleton: non-native
Version: 1.0-1
Description: Check for false positive in non-consecutive-debian-revision
Options: --pedantic -I -E
......
Testname: changelog-file-dch-wrong-name
Type: non-native
Skeleton: non-native
Version: 1.0-1
Description: Test if Debian changelog has the wrong name
Test-For: wrong-name-for-debian-changelog-file
Testname: changelog-file-etch-nmu
Type: non-native
Skeleton: non-native
Version: 1.0-1etch1.1
Description: Test for a code name in an unstable upload
Test-Against:
......
Testname: changelog-file-etch
Type: non-native
Skeleton: non-native
Version: 1.0-1etch1
Description: Test for a code name in an unstable upload
Test-Against:
......
Testname: changelog-file-extra-upstream
Type: non-native
Skeleton: non-native
Version: 1.0-1
Description: Check a package with ChangeLog and changelog.gz
Test-Against: changelog-file-not-compressed
Testname: changelog-file-general
Type: non-native
Skeleton: non-native
Version: 1.0-1
Description: General tests for changelog-file tags
Test-Against:
......
Testname: changelog-file-line-too-short
Type: non-native
Skeleton: non-native
Options: --pedantic
Version: 1.0-1
Description: Test for short changelog entries
......
Testname: changelog-file-missing
Type: non-native
Skeleton: non-native
Version: 1.0-1
Description: Test if Debian changelog is missing
Test-For:
......