[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[lintian] 01/01: Add a testcase to check that symlinked missing-sources do the right thing (re. #890468).



This is an automated email from the git hooks/post-receive script.

lamby pushed a commit to branch master
in repository lintian.

commit 2c09091df0c8425e96ac2104b6f49fab8f1f7b10
Author: Chris Lamb <lamby@debian.org>
Date:   Thu Feb 15 09:30:22 2018 +0000

    Add a testcase to check that symlinked missing-sources do the right thing (re. #890468).
---
 debian/changelog                                            | 4 ++++
 t/tests/cruft-upstream-binaries/debian/debian/source/format | 1 +
 t/tests/cruft-upstream-binaries/pre_build                   | 5 +++++
 t/tests/cruft-upstream-binaries/pre_upstream                | 3 +++
 t/tests/cruft-upstream-binaries/tags                        | 2 ++
 5 files changed, 15 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 9c9df21..97c9a02 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,6 +6,10 @@ lintian (2.5.76) UNRELEASED; urgency=medium
     + [CL] Drop all the overrides for Lintian titself now that we use the
       <!nocheck> build profile for the previously-spurious warnings.
 
+  * t/tests/cruft-upstream-binaries:
+    + [CL] Add a testcase to check that symlinked missing-sources do the
+      right thing (re. #890468).
+
  -- Chris Lamb <lamby@debian.org>  Wed, 14 Feb 2018 15:06:27 +0000
 
 lintian (2.5.75) unstable; urgency=medium
diff --git a/t/tests/cruft-upstream-binaries/debian/debian/source/format b/t/tests/cruft-upstream-binaries/debian/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/t/tests/cruft-upstream-binaries/debian/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/t/tests/cruft-upstream-binaries/pre_build b/t/tests/cruft-upstream-binaries/pre_build
new file mode 100755
index 0000000..b35385b
--- /dev/null
+++ b/t/tests/cruft-upstream-binaries/pre_build
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+mkdir -p $1/debian/missing-sources
+cp $1/hello.c $1/debian/missing-sources/sourced.c
+ln -s sourced.c $1/debian/missing-sources/symlink-to-sourced.c
diff --git a/t/tests/cruft-upstream-binaries/pre_upstream b/t/tests/cruft-upstream-binaries/pre_upstream
index 8b389ae..c94b2d3 100755
--- a/t/tests/cruft-upstream-binaries/pre_upstream
+++ b/t/tests/cruft-upstream-binaries/pre_upstream
@@ -4,3 +4,6 @@ cd "$1"
 gcc -o hello hello.c
 # create non source binary
 cp hello notsourced
+# create two sourced binaries
+cp hello sourced
+cp hello symlink-to-sourced
diff --git a/t/tests/cruft-upstream-binaries/tags b/t/tests/cruft-upstream-binaries/tags
index 7f1a384..7ec157f 100644
--- a/t/tests/cruft-upstream-binaries/tags
+++ b/t/tests/cruft-upstream-binaries/tags
@@ -2,3 +2,5 @@ E: cruft-upstream-binaries source: source-is-missing notsourced
 P: cruft-upstream-binaries source: debian-watch-does-not-check-gpg-signature
 P: cruft-upstream-binaries source: source-contains-prebuilt-binary hello
 P: cruft-upstream-binaries source: source-contains-prebuilt-binary notsourced
+P: cruft-upstream-binaries source: source-contains-prebuilt-binary sourced
+P: cruft-upstream-binaries source: source-contains-prebuilt-binary symlink-to-sourced

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git


Reply to: