[libconfig-model-dpkg-perl] 04/05: test Autopkgtest with several stanzas

dod at debian.org dod at debian.org
Wed Nov 22 19:16:53 UTC 2017


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

dod pushed a commit to annotated tag debian/2.104
in repository libconfig-model-dpkg-perl.

commit 8e7d1a23b537bc8a8cd9938e09ce761fad4d996d
Author: Dominique Dumont <dod at debian.org>
Date:   Wed Nov 22 20:09:13 2017 +0100

    test Autopkgtest with several stanzas
---
 t/model_tests.d/dpkg-examples/autopkgtest/debian/tests/control | 10 ++++++++++
 t/model_tests.d/dpkg-test-conf.pl                              |  8 ++++----
 2 files changed, 14 insertions(+), 4 deletions(-)

diff --git a/t/model_tests.d/dpkg-examples/autopkgtest/debian/tests/control b/t/model_tests.d/dpkg-examples/autopkgtest/debian/tests/control
index 9ceacc2..0e15760 100644
--- a/t/model_tests.d/dpkg-examples/autopkgtest/debian/tests/control
+++ b/t/model_tests.d/dpkg-examples/autopkgtest/debian/tests/control
@@ -1,3 +1,13 @@
 Tests: fred, bill, bongo
 Depends: pkg1, pkg2 [amd64] | pkg3 (>= 3)
 Restrictions: needs-root, breaks-testbed
+
+Test-Command: /usr/share/pkg-perl-autopkgtest/runner build-deps
+Depends: @, @builddeps@, pkg-perl-autopkgtest
+
+Test-Command: /usr/share/pkg-perl-autopkgtest/runner runtime-deps
+Depends: @, pkg-perl-autopkgtest
+
+Test-Command: /usr/share/pkg-perl-autopkgtest/runner runtime-deps-and-recommends
+Depends: @, pkg-perl-autopkgtest
+Restrictions: needs-recommends
diff --git a/t/model_tests.d/dpkg-test-conf.pl b/t/model_tests.d/dpkg-test-conf.pl
index 543ab89..de6985f 100644
--- a/t/model_tests.d/dpkg-test-conf.pl
+++ b/t/model_tests.d/dpkg-test-conf.pl
@@ -73,10 +73,10 @@ sub add {
     {
         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",
+            'tests control:0 Tests:0' => 'fred',
+            'tests control:0 Tests:2' => 'bongo',
+            'tests control:0 Depends' => "pkg1, pkg2 [amd64] | pkg3 (>= 3)",
+            'tests control:0 Restrictions' => "breaks-testbed,needs-root",
         },
         # add() returns a sub used to tweak file list
         file_check_sub => add('home'),

-- 
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