annotate test/test_listpackages.py @ 248:5dd710b167d2

Make bin/listpackages.py handle corner cases like no revisions built or --revision referring to non-exisiting revisions better. Add tests for this.
author Bernhard Herzog <bh@intevation.de>
date Fri, 06 Mar 2009 19:57:04 +0000
parents 59e2d8e26635
children 243f206574cb
rev   line source
246
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
1 # Copyright (C) 2009 by Intevation GmbH
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
2 # Authors:
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
3 # Bernhard Herzog <bh@intevation.de>
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
4 #
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
5 # This program is free software under the GPL (>=v2)
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
6 # Read the file COPYING coming with the software for details.
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
7
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
8
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
9 import sys
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
10 import os
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
11 import difflib
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
12 import unittest
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
13
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
14 from filesupport import FileTestMixin
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
15
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
16 from treepkg.run import call, capture_output, SubprocessError
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
17
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
18
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
19 def package_track_files(track, version, binaries, revisions):
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
20 src_templates = ["%s_%s.%%s%s" % (track, version, suffix)
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
21 for suffix in [".orig.tar.gz", "-1.diff.gz", "-1.dsc"]]
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
22 bin_templates = ["%s_%s.%%s-1_i386.deb" % (basename, version)
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
23 for basename in binaries]
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
24 return (track,
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
25 [("pkg", [("%s-%s" % (rev, rules_rev),
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
26 [("status", "TreePackagerStatus 0.0\n"),
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
27 ("src", [(template % (rev,), "")
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
28 for template in src_templates]),
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
29 ("binary", [(template % (rev,), "")
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
30 for template in bin_templates])])
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
31 for rev, rules_rev in revisions])])
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
32
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
33 class ListPackagesTest(unittest.TestCase, FileTestMixin):
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
34
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
35 treepkg_cfg_template = """\
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
36 [DEFAULT]
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
37 tracks_dir: %(tracksdir)s
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
38 root_cmd: true
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
39 pbuilderrc:
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
40 deb_email: packager@example.com
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
41 deb_fullname: Sample Packager
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
42 debrevision_prefix: treepkg
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
43 handle_dependencies: False
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
44
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
45 [treepkg]
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
46 check_interval: 3600
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
47 instructions_file:
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
48
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
49 [pkg_kdepim]
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
50 svn_url: svn://anonsvn.kde.org/home/kde/branches/kdepim/enterprise/kdepim
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
51 base_dir: %%(tracks_dir)s/kdepim
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
52 packager_class: recipes.kde_enterprise_3_5.kdepim
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
53
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
54 [pkg_kdepimlibs]
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
55 svn_url: svn://anonsvn.kde.org/home/kde/branches/kdepim/enterprise/kdepimlibs
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
56 base_dir: %%(tracks_dir)s/kdepimlibs
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
57 packager_class: recipes.kde_enterprise_3_5.kdepim
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
58 """
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
59
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
60 track_files = []
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
61
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
62 def setUp(self):
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
63 self.bindir = os.path.join(os.path.dirname(__file__),
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
64 os.pardir, "bin")
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
65 self.listpackages = os.path.join(self.bindir, "listpackages.py")
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
66 self.tracksdir = self.create_files("tracks", self.track_files)
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
67 config = self.treepkg_cfg_template % dict(tracksdir=self.tracksdir)
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
68 self.config_file = self.create_temp_file("treepkg.cfg", config)
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
69 self.base_command = [sys.executable, self.listpackages,
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
70 "--config-file=" + self.config_file]
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
71
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
72 def run_command(self, extra_args, expected_exit_code=0):
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
73 cmd = self.base_command + list(extra_args)
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
74 try:
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
75 output = capture_output(cmd)
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
76 except SubprocessError, exc:
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
77 if expected_exit_code != exc.returncode:
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
78 raise
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
79 output = exc.output
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
80 return output
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
81
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
82 def check_cmd(self, args, expected):
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
83 expected_lines = [os.path.join(self.tracksdir, filename) + "\n"
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
84 for filename in expected.splitlines()]
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
85 try:
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
86 output_lines = [line + "\n"
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
87 for line in self.run_command(args).splitlines()]
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
88 except SubprocessError, exc:
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
89 print >>sys.stderr, "Unexpected output:", exc.output
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
90 raise
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
91
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
92 # the order of the listed packages doesn't matter, so sort the
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
93 # lists before comparing them
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
94 expected_lines.sort()
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
95 output_lines.sort()
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
96
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
97 if expected_lines != output_lines:
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
98 diff = difflib.unified_diff(expected_lines, output_lines,
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
99 "expected", "found")
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
100 raise self.failureException("\n" + "".join(diff))
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
101
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
102
248
5dd710b167d2 Make bin/listpackages.py handle corner cases like no revisions built or
Bernhard Herzog <bh@intevation.de>
parents: 246
diff changeset
103 class TestListPackagesNoPackages(ListPackagesTest):
5dd710b167d2 Make bin/listpackages.py handle corner cases like no revisions built or
Bernhard Herzog <bh@intevation.de>
parents: 246
diff changeset
104
5dd710b167d2 Make bin/listpackages.py handle corner cases like no revisions built or
Bernhard Herzog <bh@intevation.de>
parents: 246
diff changeset
105 track_files = []
5dd710b167d2 Make bin/listpackages.py handle corner cases like no revisions built or
Bernhard Herzog <bh@intevation.de>
parents: 246
diff changeset
106
5dd710b167d2 Make bin/listpackages.py handle corner cases like no revisions built or
Bernhard Herzog <bh@intevation.de>
parents: 246
diff changeset
107 def test_listpackages_noargs(self):
5dd710b167d2 Make bin/listpackages.py handle corner cases like no revisions built or
Bernhard Herzog <bh@intevation.de>
parents: 246
diff changeset
108 # if nothing has been packaged yet, the output is simply empty
5dd710b167d2 Make bin/listpackages.py handle corner cases like no revisions built or
Bernhard Herzog <bh@intevation.de>
parents: 246
diff changeset
109 self.check_cmd(["--source"], "")
5dd710b167d2 Make bin/listpackages.py handle corner cases like no revisions built or
Bernhard Herzog <bh@intevation.de>
parents: 246
diff changeset
110
5dd710b167d2 Make bin/listpackages.py handle corner cases like no revisions built or
Bernhard Herzog <bh@intevation.de>
parents: 246
diff changeset
111 def test_listpackages_revision(self):
5dd710b167d2 Make bin/listpackages.py handle corner cases like no revisions built or
Bernhard Herzog <bh@intevation.de>
parents: 246
diff changeset
112 # if nothing has been packaged yet, the output is simply empty
5dd710b167d2 Make bin/listpackages.py handle corner cases like no revisions built or
Bernhard Herzog <bh@intevation.de>
parents: 246
diff changeset
113 self.assertEquals(self.run_command(["--source", "--revision=12345",
5dd710b167d2 Make bin/listpackages.py handle corner cases like no revisions built or
Bernhard Herzog <bh@intevation.de>
parents: 246
diff changeset
114 "--track=kdepim"],
5dd710b167d2 Make bin/listpackages.py handle corner cases like no revisions built or
Bernhard Herzog <bh@intevation.de>
parents: 246
diff changeset
115 expected_exit_code=1),
5dd710b167d2 Make bin/listpackages.py handle corner cases like no revisions built or
Bernhard Herzog <bh@intevation.de>
parents: 246
diff changeset
116 "No revision 12345\n")
5dd710b167d2 Make bin/listpackages.py handle corner cases like no revisions built or
Bernhard Herzog <bh@intevation.de>
parents: 246
diff changeset
117
5dd710b167d2 Make bin/listpackages.py handle corner cases like no revisions built or
Bernhard Herzog <bh@intevation.de>
parents: 246
diff changeset
118 def test_listpackages_revision_rulesrev(self):
5dd710b167d2 Make bin/listpackages.py handle corner cases like no revisions built or
Bernhard Herzog <bh@intevation.de>
parents: 246
diff changeset
119 # if nothing has been packaged yet, the output is simply empty
5dd710b167d2 Make bin/listpackages.py handle corner cases like no revisions built or
Bernhard Herzog <bh@intevation.de>
parents: 246
diff changeset
120 self.assertEquals(self.run_command(["--source", "--revision=12345-321",
5dd710b167d2 Make bin/listpackages.py handle corner cases like no revisions built or
Bernhard Herzog <bh@intevation.de>
parents: 246
diff changeset
121 "--track=kdepim"],
5dd710b167d2 Make bin/listpackages.py handle corner cases like no revisions built or
Bernhard Herzog <bh@intevation.de>
parents: 246
diff changeset
122 expected_exit_code=1),
5dd710b167d2 Make bin/listpackages.py handle corner cases like no revisions built or
Bernhard Herzog <bh@intevation.de>
parents: 246
diff changeset
123 "No revision 12345-321\n")
5dd710b167d2 Make bin/listpackages.py handle corner cases like no revisions built or
Bernhard Herzog <bh@intevation.de>
parents: 246
diff changeset
124
246
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
125 class TestListPackagesTrackNoRevision(ListPackagesTest):
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
126
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
127 track_files = [package_track_files("kdepim", "1.0.1",
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
128 ["kdepim", "kleopatra"],
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
129 [(704195, 31), (702432, 47)])]
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
130
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
131 def test_listpackages_source(self):
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
132 self.check_cmd(["--track=kdepim", "--source"],
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
133 """\
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
134 kdepim/pkg/704195-31/src/kdepim_1.0.1.704195-1.diff.gz
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
135 kdepim/pkg/704195-31/src/kdepim_1.0.1.704195-1.dsc
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
136 kdepim/pkg/704195-31/src/kdepim_1.0.1.704195.orig.tar.gz
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
137 """)
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
138
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
139 def test_listpackages_binary(self):
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
140 self.check_cmd(["--track=kdepim", "--binary"],
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
141 """\
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
142 kdepim/pkg/704195-31/binary/kdepim_1.0.1.704195-1_i386.deb
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
143 kdepim/pkg/704195-31/binary/kleopatra_1.0.1.704195-1_i386.deb
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
144 """)
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
145
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
146
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
147 class TestListPackagesNoTrackNoRevision(ListPackagesTest):
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
148
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
149 track_files = [package_track_files("kdepim", "1.0.1",
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
150 ["kdepim", "kleopatra"],
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
151 [(704195, 31), (702432, 47)]),
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
152 package_track_files("kdepimlibs", "1.0.1",
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
153 ["kdepimlibs"],
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
154 [(803691, 4321), (803692, 4322)]),
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
155 ]
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
156
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
157 def test_listpackages_source(self):
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
158 self.check_cmd(["--source"],
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
159 """\
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
160 kdepim/pkg/704195-31/src/kdepim_1.0.1.704195-1.diff.gz
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
161 kdepim/pkg/704195-31/src/kdepim_1.0.1.704195-1.dsc
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
162 kdepim/pkg/704195-31/src/kdepim_1.0.1.704195.orig.tar.gz
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
163 kdepimlibs/pkg/803692-4322/src/kdepimlibs_1.0.1.803692-1.diff.gz
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
164 kdepimlibs/pkg/803692-4322/src/kdepimlibs_1.0.1.803692-1.dsc
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
165 kdepimlibs/pkg/803692-4322/src/kdepimlibs_1.0.1.803692.orig.tar.gz""")
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
166
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
167 def test_listpackages_binary(self):
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
168 self.check_cmd(["--binary"],
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
169 """\
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
170 kdepim/pkg/704195-31/binary/kdepim_1.0.1.704195-1_i386.deb
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
171 kdepim/pkg/704195-31/binary/kleopatra_1.0.1.704195-1_i386.deb
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
172 kdepimlibs/pkg/803692-4322/binary/kdepimlibs_1.0.1.803692-1_i386.deb""")
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
173
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
174
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
175 class TestListPackagesTrackRevision(ListPackagesTest):
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
176
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
177 track_files = [package_track_files("kdepim", "1.0.1",
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
178 ["kdepim", "kleopatra"],
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
179 [(704195, 31), (702432, 47)]),
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
180 package_track_files("kdepimlibs", "1.0.1",
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
181 ["kdepimlibs"],
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
182 [(803691, 4321), (803692, 4322)]),
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
183 ]
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
184
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
185 def test_listpackages_source(self):
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
186 self.check_cmd(["--source", "--track=kdepim", "--revision=702432"],
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
187 """\
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
188 kdepim/pkg/702432-47/src/kdepim_1.0.1.702432-1.diff.gz
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
189 kdepim/pkg/702432-47/src/kdepim_1.0.1.702432-1.dsc
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
190 kdepim/pkg/702432-47/src/kdepim_1.0.1.702432.orig.tar.gz""")
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
191
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
192 def test_listpackages_binary(self):
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
193 self.check_cmd(["--binary", "--track=kdepim", "--revision=702432"],
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
194 """\
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
195 kdepim/pkg/702432-47/binary/kdepim_1.0.1.702432-1_i386.deb
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
196 kdepim/pkg/702432-47/binary/kleopatra_1.0.1.702432-1_i386.deb""")
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
197
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
198
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
199
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
200 class TestListPackagesMultipleRulesRevisions(ListPackagesTest):
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
201
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
202 track_files = [package_track_files("kdepim", "1.0.1",
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
203 ["kdepim", "kleopatra"],
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
204 [(704195, 31), (704195, 33),
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
205 (702432, 47)]),
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
206 package_track_files("kdepimlibs", "1.0.1",
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
207 ["kdepimlibs"],
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
208 [(803691, 4321), (803692, 4322)]),
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
209 ]
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
210
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
211 def test_listpackages_source_no_rev(self):
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
212 self.check_cmd(["--source", "--track=kdepim"],
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
213 """\
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
214 kdepim/pkg/704195-33/src/kdepim_1.0.1.704195-1.diff.gz
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
215 kdepim/pkg/704195-33/src/kdepim_1.0.1.704195-1.dsc
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
216 kdepim/pkg/704195-33/src/kdepim_1.0.1.704195.orig.tar.gz""")
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
217
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
218 def test_listpackages_binary_no_rev(self):
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
219 self.check_cmd(["--binary", "--track=kdepim"],
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
220 """\
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
221 kdepim/pkg/704195-33/binary/kdepim_1.0.1.704195-1_i386.deb
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
222 kdepim/pkg/704195-33/binary/kleopatra_1.0.1.704195-1_i386.deb""")
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
223
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
224 def test_listpackages_source_and_binary_no_rev(self):
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
225 self.check_cmd(["--source", "--track=kdepim", "--binary"],
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
226 """\
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
227 kdepim/pkg/704195-33/binary/kdepim_1.0.1.704195-1_i386.deb
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
228 kdepim/pkg/704195-33/binary/kleopatra_1.0.1.704195-1_i386.deb
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
229 kdepim/pkg/704195-33/src/kdepim_1.0.1.704195-1.diff.gz
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
230 kdepim/pkg/704195-33/src/kdepim_1.0.1.704195-1.dsc
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
231 kdepim/pkg/704195-33/src/kdepim_1.0.1.704195.orig.tar.gz
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
232 """)
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
233
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
234 def test_listpackages_source_no_rulesrev(self):
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
235 self.check_cmd(["--source", "--track=kdepim", "--revision=704195"],
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
236 """\
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
237 kdepim/pkg/704195-33/src/kdepim_1.0.1.704195-1.diff.gz
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
238 kdepim/pkg/704195-33/src/kdepim_1.0.1.704195-1.dsc
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
239 kdepim/pkg/704195-33/src/kdepim_1.0.1.704195.orig.tar.gz""")
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
240
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
241 def test_listpackages_binary_no_rulesrev(self):
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
242 self.check_cmd(["--binary", "--track=kdepim", "--revision=704195"],
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
243 """\
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
244 kdepim/pkg/704195-33/binary/kdepim_1.0.1.704195-1_i386.deb
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
245 kdepim/pkg/704195-33/binary/kleopatra_1.0.1.704195-1_i386.deb""")
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
246
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
247 def test_listpackages_source_rulesrev(self):
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
248 self.check_cmd(["--source", "--track=kdepim", "--revision=704195-31"],
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
249 """\
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
250 kdepim/pkg/704195-31/src/kdepim_1.0.1.704195-1.diff.gz
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
251 kdepim/pkg/704195-31/src/kdepim_1.0.1.704195-1.dsc
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
252 kdepim/pkg/704195-31/src/kdepim_1.0.1.704195.orig.tar.gz""")
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
253
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
254 def test_listpackages_binary_rulesrev(self):
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
255 self.check_cmd(["--binary", "--track=kdepim", "--revision=704195-31"],
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
256 """\
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
257 kdepim/pkg/704195-31/binary/kdepim_1.0.1.704195-1_i386.deb
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
258 kdepim/pkg/704195-31/binary/kleopatra_1.0.1.704195-1_i386.deb""")
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
259
59e2d8e26635 Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
260
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)