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

[lintian] 09/09: Add a hand-crafted test case for autopkgtests



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

nthykier pushed a commit to branch master
in repository lintian.

commit c3bad0cb54327f708147a60b1b317039f4a5d190
Author: Niels Thykier <niels@thykier.net>
Date:   Wed Jul 6 16:53:18 2016 +0000

    Add a hand-crafted test case for autopkgtests
    
    Signed-off-by: Niels Thykier <niels@thykier.net>
---
 t/source/testsuite-control-missing-test-field/Makefile | 18 ++++++++++++++++++
 t/source/testsuite-control-missing-test-field/desc     |  5 +++++
 .../testsuite-control-missing-test-field/dsc.in.in     | 15 +++++++++++++++
 t/source/testsuite-control-missing-test-field/tags     |  1 +
 4 files changed, 39 insertions(+)

diff --git a/t/source/testsuite-control-missing-test-field/Makefile b/t/source/testsuite-control-missing-test-field/Makefile
new file mode 100644
index 0000000..c660a36
--- /dev/null
+++ b/t/source/testsuite-control-missing-test-field/Makefile
@@ -0,0 +1,18 @@
+name = testsuite-control-missing-test-field
+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
+	echo "Depends: @" > $(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/source/testsuite-control-missing-test-field/desc b/t/source/testsuite-control-missing-test-field/desc
new file mode 100644
index 0000000..f1d9ed7
--- /dev/null
+++ b/t/source/testsuite-control-missing-test-field/desc
@@ -0,0 +1,5 @@
+Testname: testsuite-control-missing-test-field
+Sequence: 6000
+Version: 1.0
+Description: Detection of missing test/test-command fields
+Test-For: missing-runtime-tests-field
diff --git a/t/source/testsuite-control-missing-test-field/dsc.in.in b/t/source/testsuite-control-missing-test-field/dsc.in.in
new file mode 100644
index 0000000..b3ceb4e
--- /dev/null
+++ b/t/source/testsuite-control-missing-test-field/dsc.in.in
@@ -0,0 +1,15 @@
+Format: 1.0
+Source: testsuite-control-missing-test-field
+Binary: testsuite-control-missing-test-field
+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-missing-test-field_1.tar.gz
+Checksums-Sha256:
+ @SHA256@ @SIZE@ testsuite-control-missing-test-field_1.tar.gz
+Files:
+ @MD5@ @SIZE@ testsuite-control-missing-test-field_1.tar.gz
diff --git a/t/source/testsuite-control-missing-test-field/tags b/t/source/testsuite-control-missing-test-field/tags
new file mode 100644
index 0000000..806989a
--- /dev/null
+++ b/t/source/testsuite-control-missing-test-field/tags
@@ -0,0 +1 @@
+W: testsuite-control-missing-test-field source: missing-runtime-tests-field tests || test-command paragraph starting at line 1

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


Reply to: