[libconfig-model-dpkg-perl] 01/02: updated HOWTO.test
dod at debian.org
dod at debian.org
Thu May 26 10:59:48 UTC 2016
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 8a06b119f4d53b310058834c64fc8b4fad9d19ce
Author: Dominique Dumont <dod at debian.org>
Date: Thu May 26 12:56:35 2016 +0200
updated HOWTO.test
Gbp-Dch: Ignore
---
HOWTO.test | 109 ++++++++++++++++++++++++++++++++++++++++++++-----------------
1 file changed, 79 insertions(+), 30 deletions(-)
diff --git a/HOWTO.test b/HOWTO.test
index a112ee2..f54c55a 100644
--- a/HOWTO.test
+++ b/HOWTO.test
@@ -27,42 +27,91 @@ flag can be:
To find group and example, run
perl -Ilib t/model_tests.t |grep 'Beginning subtest'
-Each subtest name can be used as group and example.
+Each subtest name can be used as group and example (example can be a pattern).
For instance:
- $ perl -Ilib t/model_tests.t x debian-dpkg-control sdlperl
+$ perl -Ilib t/model_tests.t x dpkg-copyright oar
ok 1 - compiled
-# Beginning debian-dpkg-control test (t/model_tests.d/debian-dpkg-control-test-conf.pl)
-# debian-dpkg-control uses Dpkg::Control model on file control
-# Beginning subtest debian-dpkg-control sdlperl
-ok 2 - Copied debian-dpkg-control example sdlperl
-Reading package lists... Done
-Building dependency tree
-Reading state information... Done
-ok 3 - Read configuration and created instance with init() method with warning check
-ok 4 - load called
-ok 5 - apply_fixes called
-ok 6 - Ran dump_tree
-ok 7 - Dumped debian-dpkg-control config tree in full mode
-ok 8 - Dumped debian-dpkg-control config tree in custom mode
-ok 9 - check binary:libsdl-perl Depends:2 value ()
-ok 10 - debian-dpkg-control write back done
-ok 11 - Created instance debian-dpkg-control-test-sdlperl-w
-ok 12 - Dumped debian-dpkg-control 2nd config tree in custom mode
-ok 13 - compare original debian-dpkg-control custom data with 2nd instance custom data
-ok 14 - check that original debian-dpkg-control file was not clobbered
-# End of subtest debian-dpkg-control sdlperl
-# End of debian-dpkg-control test
-Unhandled type: GLOB at /usr/share/perl5/Devel/Cycle.pm line 107.
-ok 15 - test memory cycle
-1..15
-writing back cache file
-
-The 'x' flag is ignored
+# Beginning dpkg-copyright test (t/model_tests.d/dpkg-copyright-test-conf.pl)
+# dpkg-copyright uses Dpkg::Copyright model on file copyright
+# Beginning subtest dpkg-copyright oar
+ok 2 - Copied dpkg-copyright example oar
+not ok 3 - Read configuration and created instance with init() method with warning check
+# Failed test 'Read configuration and created instance with init() method with warning check '
+# at /usr/share/perl5/Config/Model/Tester.pm line 156.
+# found warning: Warning in 'Format' value 'http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/': Format does not match the recommended URL for DEP-5
+# found warning: Warning in 'Files:"sources/extra/orpheus/modules/lua-signal/lsignal.c" License short_name' value 'MIT': There are many versions of the MIT license. Please use Expat instead, when it matches. See L<Debian copyright format|https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/#license-specification> and L<wikipedia|https://en.wikipedia.org/wiki/MIT_License#Various_versions>for details.
+# expected to find warning: (?^:use Expat)
+ok 4 - Ran dump_tree (no warning check)
+ok 5 - Dumped dpkg-copyright config tree in full mode
+ok 6 - Dumped dpkg-copyright config tree in custom mode
+ok 7 - first check 'Files:"sources/extra/orpheus/modules/lua-signal/lsignal.c" License short_name' value
+ok 8 - dpkg-copyright write back done
+ok 9 - Created instance dpkg-copyright-test-oar-w
+ok 10 - Dumped second dpkg-copyright config tree in custom mode
+ok 11 - compare original dpkg-copyright custom data with 2nd instance custom data
+ok 12 - check that original dpkg-copyright file was not clobbered
+# End of subtest dpkg-copyright oar
+# Beginning subtest dpkg-copyright moarvm-from-scratch
+# starting test without original config data, i.e. from scratch
+ok 13 - Copied dpkg-copyright example moarvm-from-scratch
+ok 14 - Read configuration and created instance with init() method without warning check
+# updating config with in t/scanner/examples/moarvm.in quiet 1
+ok 15 - updated configuration
+ok 16 - Ran dump_tree (no warning check)
+ok 17 - Dumped dpkg-copyright config tree in full mode
+ok 18 - Dumped dpkg-copyright config tree in custom mode
+ok 19 - first check 'License:BSD-2-clause text' value with regexp
+ok 20 - first check 'License:ISC text' value with regexp
+ok 21 - dpkg-copyright write back done
+ok 22 - check that debian/copyright does not match regexp (?^:\n\nLicense: BSD-2-clause\n\n)
+ok 23 - Created instance dpkg-copyright-test-moarvm-from-scratch-w
+ok 24 - Dumped second dpkg-copyright config tree in custom mode
+ok 25 - compare original dpkg-copyright custom data with 2nd instance custom data
+ok 26 - check that original dpkg-copyright file was not clobbered
+ok 27 - second check 'Files:"3rdparty/dyncall/*" License full_license' value
+# End of subtest dpkg-copyright moarvm-from-scratch
+# End of dpkg-copyright test
+ok 28 - test memory cycle
+1..28
+# Looks like you failed 1 test of 28.
+
+The 'x' flag is ignored. The above command runs 2 subtests that match
+'oar': 'oar' and 'moarvm'.
+
+A pattern must be used to run only 'oar' subtest':
+
+$ perl -Ilib t/model_tests.t x dpkg-copyright '\boar\b'
+ok 1 - compiled
+# Beginning dpkg-copyright test (t/model_tests.d/dpkg-copyright-test-conf.pl)
+# dpkg-copyright uses Dpkg::Copyright model on file copyright
+# Beginning subtest dpkg-copyright oar
+ok 2 - Copied dpkg-copyright example oar
+not ok 3 - Read configuration and created instance with init() method with warning check
+# Failed test 'Read configuration and created instance with init() method with warning check '
+# at /usr/share/perl5/Config/Model/Tester.pm line 156.
+# found warning: Warning in 'Format' value 'http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/': Format does not match the recommended URL for DEP-5
+# found warning: Warning in 'Files:"sources/extra/orpheus/modules/lua-signal/lsignal.c" License short_name' value 'MIT': There are many versions of the MIT license. Please use Expat instead, when it matches. See L<Debian copyright format|https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/#license-specification> and L<wikipedia|https://en.wikipedia.org/wiki/MIT_License#Various_versions>for details.
+# expected to find warning: (?^:use Expat)
+ok 4 - Ran dump_tree (no warning check)
+ok 5 - Dumped dpkg-copyright config tree in full mode
+ok 6 - Dumped dpkg-copyright config tree in custom mode
+ok 7 - first check 'Files:"sources/extra/orpheus/modules/lua-signal/lsignal.c" License short_name' value
+ok 8 - dpkg-copyright write back done
+ok 9 - Created instance dpkg-copyright-test-oar-w
+ok 10 - Dumped second dpkg-copyright config tree in custom mode
+ok 11 - compare original dpkg-copyright custom data with 2nd instance custom data
+ok 12 - check that original dpkg-copyright file was not clobbered
+# End of subtest dpkg-copyright oar
+# End of dpkg-copyright test
+ok 13 - test memory cycle
+1..13
+# Looks like you failed 1 test of 13.
+
You can run a whole group by omitting the subtest name:
- perl -Ilib t/model_tests.t x debian-dpkg-control
+ $ perl -Ilib t/model_tests.t x dpkg-control
--
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