Mercurial > treepkg
annotate test/test_listpackages.py @ 246:59e2d8e26635
Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Add test cases for listpackages.
author | Bernhard Herzog <bh@intevation.de> |
---|---|
date | Fri, 06 Mar 2009 19:21:56 +0000 |
parents | |
children | 5dd710b167d2 |
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 |
59e2d8e26635
Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
103 class TestListPackagesTrackNoRevision(ListPackagesTest): |
59e2d8e26635
Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
104 |
59e2d8e26635
Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
105 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
|
106 ["kdepim", "kleopatra"], |
59e2d8e26635
Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
107 [(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
|
108 |
59e2d8e26635
Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
109 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
|
110 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
|
111 """\ |
59e2d8e26635
Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
112 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
|
113 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
|
114 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
|
115 """) |
59e2d8e26635
Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
116 |
59e2d8e26635
Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
117 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
|
118 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
|
119 """\ |
59e2d8e26635
Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
120 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
|
121 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
|
122 """) |
59e2d8e26635
Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
123 |
59e2d8e26635
Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
124 |
59e2d8e26635
Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
125 class TestListPackagesNoTrackNoRevision(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 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
|
131 ["kdepimlibs"], |
59e2d8e26635
Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
132 [(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
|
133 ] |
59e2d8e26635
Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
134 |
59e2d8e26635
Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
135 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
|
136 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
|
137 """\ |
59e2d8e26635
Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
138 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
|
139 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
|
140 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
|
141 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
|
142 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
|
143 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
|
144 |
59e2d8e26635
Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
145 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
|
146 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
|
147 """\ |
59e2d8e26635
Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
148 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
|
149 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
|
150 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
|
151 |
59e2d8e26635
Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
152 |
59e2d8e26635
Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
153 class TestListPackagesTrackRevision(ListPackagesTest): |
59e2d8e26635
Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
154 |
59e2d8e26635
Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
155 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
|
156 ["kdepim", "kleopatra"], |
59e2d8e26635
Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
157 [(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
|
158 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
|
159 ["kdepimlibs"], |
59e2d8e26635
Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
160 [(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
|
161 ] |
59e2d8e26635
Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
162 |
59e2d8e26635
Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
163 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
|
164 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
|
165 """\ |
59e2d8e26635
Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
166 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
|
167 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
|
168 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
|
169 |
59e2d8e26635
Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
170 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
|
171 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
|
172 """\ |
59e2d8e26635
Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
173 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
|
174 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
|
175 |
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 |
59e2d8e26635
Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
178 class TestListPackagesMultipleRulesRevisions(ListPackagesTest): |
59e2d8e26635
Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
179 |
59e2d8e26635
Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
180 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
|
181 ["kdepim", "kleopatra"], |
59e2d8e26635
Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
182 [(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
|
183 (702432, 47)]), |
59e2d8e26635
Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
184 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
|
185 ["kdepimlibs"], |
59e2d8e26635
Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
186 [(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
|
187 ] |
59e2d8e26635
Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
188 |
59e2d8e26635
Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
189 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
|
190 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
|
191 """\ |
59e2d8e26635
Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
192 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
|
193 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
|
194 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
|
195 |
59e2d8e26635
Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
196 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
|
197 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
|
198 """\ |
59e2d8e26635
Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
199 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
|
200 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
|
201 |
59e2d8e26635
Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
202 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
|
203 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
|
204 """\ |
59e2d8e26635
Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
205 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
|
206 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
|
207 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
|
208 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
|
209 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
|
210 """) |
59e2d8e26635
Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
211 |
59e2d8e26635
Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
212 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
|
213 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
|
214 """\ |
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.diff.gz |
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-1.dsc |
59e2d8e26635
Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
217 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
|
218 |
59e2d8e26635
Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
219 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
|
220 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
|
221 """\ |
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/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
|
223 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
|
224 |
59e2d8e26635
Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
225 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
|
226 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
|
227 """\ |
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-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
|
229 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
|
230 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
|
231 |
59e2d8e26635
Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
232 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
|
233 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
|
234 """\ |
59e2d8e26635
Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
235 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
|
236 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
|
237 |
59e2d8e26635
Extend --revision parameter of bin/listpackages.py to accept rules revision too.
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
238 |