[libconfig-model-dpkg-perl] 08/10: test autopkgtest

dod at debian.org dod at debian.org
Mon Nov 13 17:29:41 UTC 2017


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

dod pushed a commit to branch master
in repository libconfig-model-dpkg-perl.

commit 5a58e3e692dab4ccd210e157dffeeab66b4640d8
Author: Dominique Dumont <dod at debian.org>
Date:   Fri Nov 10 19:15:52 2017 +0100

    test autopkgtest
---
 .../dpkg-examples/autopkgtest/debian/changelog     |  7 +++++++
 .../dpkg-examples/autopkgtest/debian/compat        |  1 +
 .../dpkg-examples/autopkgtest/debian/control       | 22 ++++++++++++++++++++++
 .../dpkg-examples/autopkgtest/debian/copyright     | 22 ++++++++++++++++++++++
 .../dpkg-examples/autopkgtest/debian/rules         |  4 ++++
 .../dpkg-examples/autopkgtest/debian/source/format |  1 +
 .../dpkg-examples/autopkgtest/debian/tests/control |  3 +++
 .../dpkg-examples/autopkgtest/debian/watch         |  2 ++
 t/model_tests.d/dpkg-test-conf.pl                  | 14 ++++++++++++++
 9 files changed, 76 insertions(+)

diff --git a/t/model_tests.d/dpkg-examples/autopkgtest/debian/changelog b/t/model_tests.d/dpkg-examples/autopkgtest/debian/changelog
new file mode 100644
index 0000000..c212977
--- /dev/null
+++ b/t/model_tests.d/dpkg-examples/autopkgtest/debian/changelog
@@ -0,0 +1,7 @@
+libconfig-model-approx-perl (1.004-1) UNRELEASED; urgency=low
+
+  [ Dominique Dumont ]
+  * control and copyright: updated my e-mail address
+
+ -- Fabrizio Regalli <fabreg at fabreg.it>  Mon, 27 Jun 2011 23:41:57 +0200
+
diff --git a/t/model_tests.d/dpkg-examples/autopkgtest/debian/compat b/t/model_tests.d/dpkg-examples/autopkgtest/debian/compat
new file mode 100644
index 0000000..45a4fb7
--- /dev/null
+++ b/t/model_tests.d/dpkg-examples/autopkgtest/debian/compat
@@ -0,0 +1 @@
+8
diff --git a/t/model_tests.d/dpkg-examples/autopkgtest/debian/control b/t/model_tests.d/dpkg-examples/autopkgtest/debian/control
new file mode 100644
index 0000000..a7a5e1e
--- /dev/null
+++ b/t/model_tests.d/dpkg-examples/autopkgtest/debian/control
@@ -0,0 +1,22 @@
+Source: libconfig-model-approx-perl
+Section: perl
+Priority: optional
+Build-Depends: debhelper (>= 8)
+Build-Depends-Indep: perl, libconfig-model-perl (>= 1.245),
+  liblog-log4perl-perl, libtest-pod-perl, libfile-slurp-perl, libmodule-build-perl (>= 0.380000) | perl (>= 5.13.11)
+Maintainer: <pkg-xxx-maintainers at lists.alioth.debian.org>
+Uploaders: Dominique Dumont <domi.dumont at free.fr>,
+           gregor herrmann <gregoa at debian.org>, Jonathan Yu <jawnsy at cpan.org>,
+           Fabrizio Regalli <fabreg at fabreg.it>
+Standards-Version: 4.1.1
+Homepage: http://search.cpan.org/dist/Config-Model-Approx/
+
+Package: libconfig-model-approx-perl
+Architecture: all
+Depends: ${perl:Depends}, ${misc:Depends},
+  libconfig-model-perl (>= 1.245), liblog-log4perl-perl
+Recommends: libconfig-model-tkui-perl
+Suggests: libconfig-model-cursesui-perl
+Description: approx proxy server configuration editor
+ Config::Model::Approx and config-edit-approx provide a configuration
+ model and a configuration editor for /etc/approx/approx.conf.
diff --git a/t/model_tests.d/dpkg-examples/autopkgtest/debian/copyright b/t/model_tests.d/dpkg-examples/autopkgtest/debian/copyright
new file mode 100644
index 0000000..b40c818
--- /dev/null
+++ b/t/model_tests.d/dpkg-examples/autopkgtest/debian/copyright
@@ -0,0 +1,22 @@
+Format-Specification: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=135
+Maintainer: Dominique Dumont <ddumont at cpan.org>
+Source: http://search.cpan.org/dist/Config-Model-Approx/
+Name: Config-Model-Approx
+
+Files: *
+Copyright: 2009-2011, Dominique Dumont <ddumont at cpan.org>
+License: LGPL-2.1+
+
+Files: debian/*
+Copyright: 2009, Dominique Dumont <domi.dumont at free.fr>
+ 2009, Jonathan Yu <jawnsy at cpan.org>
+ 2011, Fabrizio Regalli <fabreg at fabreg.it>
+License: LGPL-2.1+
+
+License: LGPL-2.1+
+    This program is free software; you can redistribute it and/or
+    modify it under the terms of the GNU Lesser Public License as
+    published by the Free Software Foundation; either version 2.1 of
+    the License, or (at your option) any later version.
+    On Debian GNU/Linux systems, the complete text of version 2.1 of the GNU
+    Lesser Public License can be found in `/usr/share/common-licenses/LGPL-2.1'
diff --git a/t/model_tests.d/dpkg-examples/autopkgtest/debian/rules b/t/model_tests.d/dpkg-examples/autopkgtest/debian/rules
new file mode 100755
index 0000000..2d33f6a
--- /dev/null
+++ b/t/model_tests.d/dpkg-examples/autopkgtest/debian/rules
@@ -0,0 +1,4 @@
+#!/usr/bin/make -f
+
+%:
+	dh $@
diff --git a/t/model_tests.d/dpkg-examples/autopkgtest/debian/source/format b/t/model_tests.d/dpkg-examples/autopkgtest/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/t/model_tests.d/dpkg-examples/autopkgtest/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/t/model_tests.d/dpkg-examples/autopkgtest/debian/tests/control b/t/model_tests.d/dpkg-examples/autopkgtest/debian/tests/control
new file mode 100644
index 0000000..9ceacc2
--- /dev/null
+++ b/t/model_tests.d/dpkg-examples/autopkgtest/debian/tests/control
@@ -0,0 +1,3 @@
+Tests: fred, bill, bongo
+Depends: pkg1, pkg2 [amd64] | pkg3 (>= 3)
+Restrictions: needs-root, breaks-testbed
diff --git a/t/model_tests.d/dpkg-examples/autopkgtest/debian/watch b/t/model_tests.d/dpkg-examples/autopkgtest/debian/watch
new file mode 100644
index 0000000..c8b5b84
--- /dev/null
+++ b/t/model_tests.d/dpkg-examples/autopkgtest/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://search.cpan.org/dist/Config-Model-Approx/   .*/Config-Model-Approx-v?(\d[\d.-]+)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip)$
diff --git a/t/model_tests.d/dpkg-test-conf.pl b/t/model_tests.d/dpkg-test-conf.pl
index 2565372..543ab89 100644
--- a/t/model_tests.d/dpkg-test-conf.pl
+++ b/t/model_tests.d/dpkg-test-conf.pl
@@ -70,6 +70,20 @@ sub add {
         # dump_warnings => [ (qr/deprecated/) x 3 ],
     },
 
+    {
+        name => 'autopkgtest',
+        check => {
+            'test-control Tests:0' => 'fred',
+            'test-control Tests:2' => 'bongo',
+            'test-control Depends' => "pkg1, pkg2 [amd64] | pkg3 (>= 3)",
+            'test-control Restrictions' => "breaks-testbed,needs-root",
+        },
+        # add() returns a sub used to tweak file list
+        file_check_sub => add('home'),
+        apply_fix => 1 ,
+        load_warnings => [ qr/dual life/ ],
+    },
+
     { 
         name => 'libversion' ,
         load_warnings => [ qr/standard/, qr/unnecessary/, (qr/dual life/) x2, (qr/canonical/) x 2 ],

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libconfig-model-dpkg-perl.git



More information about the Pkg-perl-cvs-commits mailing list