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

[lintian] 07/09: Remake testsuite-control-not-file as hand-crafted test suite



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

nthykier pushed a commit to branch master
in repository lintian.

commit 7fddce5e6facf2a07de02af2c3e6effc95cae08d
Author: Niels Thykier <niels@thykier.net>
Date:   Wed Jul 6 16:41:01 2016 +0000

    Remake testsuite-control-not-file as hand-crafted test suite
    
    Signed-off-by: Niels Thykier <niels@thykier.net>
---
 t/source/testsuite-control-not-file/Makefile           | 18 ++++++++++++++++++
 t/{tests => source}/testsuite-control-not-file/desc    |  0
 t/source/testsuite-control-not-file/dsc.in.in          | 15 +++++++++++++++
 t/source/testsuite-control-not-file/tags               |  1 +
 .../debian/debian/control.in                           | 16 ----------------
 t/tests/testsuite-control-not-file/pre_build           |  7 -------
 t/tests/testsuite-control-not-file/tags                |  2 --
 7 files changed, 34 insertions(+), 25 deletions(-)

diff --git a/t/source/testsuite-control-not-file/Makefile b/t/source/testsuite-control-not-file/Makefile
new file mode 100644
index 0000000..52e436a
--- /dev/null
+++ b/t/source/testsuite-control-not-file/Makefile
@@ -0,0 +1,18 @@
+name = testsuite-control-not-file
+dir  = $(name)-1.0
+
+all:
+	mkdir $(dir)
+	mkdir $(dir)/debian
+	cp changelog copyright control rules $(dir)/debian/
+	echo 7 > $(dir)/debian/compat
+	mkdir $(dir)/debian/source
+	echo 1.0 > $(dir)/debian/source/format
+	mkdir $(dir)/debian/tests
+	mkfifo $(dir)/debian/tests/control
+	tar cfz $(name)_1.tar.gz $(dir)
+	subst-dsc $(name)_1.tar.gz < dsc.in > $(name)_1.dsc
+
+clean:
+	rm -rf $(dir)
+	rm -f $(name)_*
diff --git a/t/tests/testsuite-control-not-file/desc b/t/source/testsuite-control-not-file/desc
similarity index 100%
rename from t/tests/testsuite-control-not-file/desc
rename to t/source/testsuite-control-not-file/desc
diff --git a/t/source/testsuite-control-not-file/dsc.in.in b/t/source/testsuite-control-not-file/dsc.in.in
new file mode 100644
index 0000000..18e5ba4
--- /dev/null
+++ b/t/source/testsuite-control-not-file/dsc.in.in
@@ -0,0 +1,15 @@
+Format: 1.0
+Source: testsuite-control-not-file
+Binary: testsuite-control-not-file
+Architecture: all
+Version: 1
+Maintainer: Debian Lintian Maintainers <lintian-maint@debian.org>
+Standards-Version: {$standards_version}
+Build-Depends: debhelper (>= 7)
+Testsuite: autopkgtest
+Checksums-Sha1:
+ @SHA1@ @SIZE@ testsuite-control-not-file_1.tar.gz
+Checksums-Sha256:
+ @SHA256@ @SIZE@ testsuite-control-not-file_1.tar.gz
+Files:
+ @MD5@ @SIZE@ testsuite-control-not-file_1.tar.gz
diff --git a/t/source/testsuite-control-not-file/tags b/t/source/testsuite-control-not-file/tags
new file mode 100644
index 0000000..4cc5e56
--- /dev/null
+++ b/t/source/testsuite-control-not-file/tags
@@ -0,0 +1 @@
+I: testsuite-control-not-file source: debian-tests-control-is-not-a-regular-file
diff --git a/t/tests/testsuite-control-not-file/debian/debian/control.in b/t/tests/testsuite-control-not-file/debian/debian/control.in
deleted file mode 100644
index f774b8d..0000000
--- a/t/tests/testsuite-control-not-file/debian/debian/control.in
+++ /dev/null
@@ -1,16 +0,0 @@
-Source: {$source}
-Priority: extra
-Section: {$section}
-Maintainer: {$author}
-Standards-Version: {$standards_version}
-Build-Depends: debhelper (>= 9)
-XS-Testsuite: autopkgtest
-
-Package: {$source}
-Architecture: {$architecture}
-Depends: $\{shlibs:Depends\}, $\{misc:Depends\}
-Description: {$description}
- This is a test package designed to exercise some feature or tag of
- Lintian.  It is part of the Lintian test suite and may do very odd
- things.  It should not be installed like a regular package.  It may
- be an empty package.
diff --git a/t/tests/testsuite-control-not-file/pre_build b/t/tests/testsuite-control-not-file/pre_build
deleted file mode 100755
index 274cfa8..0000000
--- a/t/tests/testsuite-control-not-file/pre_build
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/bin/sh
-
-set -e
-
-DIR="$1"
-mkdir -p "$DIR/debian/tests"
-mkfifo "$DIR/debian/tests/control"
diff --git a/t/tests/testsuite-control-not-file/tags b/t/tests/testsuite-control-not-file/tags
deleted file mode 100644
index ec620ee..0000000
--- a/t/tests/testsuite-control-not-file/tags
+++ /dev/null
@@ -1,2 +0,0 @@
-I: testsuite-control-not-file source: debian-tests-control-is-not-a-regular-file
-I: testsuite-control-not-file source: xs-testsuite-header-in-debian-control xs-testsuite

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


Reply to: