Mercurial > treepkg
comparison test/test_readconfig.py @ 465:296d26453e2a
Update test_readconfig for additional config parameters
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Thu, 09 Sep 2010 14:26:59 +0000 |
parents | f9cd55aea87d |
children | e5b66539f893 |
comparison
equal
deleted
inserted
replaced
464:5fda6768bef6 | 465:296d26453e2a |
---|---|
44 handle_dependencies: True | 44 handle_dependencies: True |
45 signing_key_id: abcd1234 | 45 signing_key_id: abcd1234 |
46 changelog_msg_template: Update to feature branch r%%(revision)s | 46 changelog_msg_template: Update to feature branch r%%(revision)s |
47 version_template: 1.0.svn%%(revision)s | 47 version_template: 1.0.svn%%(revision)s |
48 os: foo os | 48 os: foo os |
49 status_hook: echo simple hook | |
49 | 50 |
50 [pkg_extraargs] | 51 [pkg_extraargs] |
51 svn_url: svn://example.com/%(name)s/trunk | 52 svn_url: svn://example.com/%(name)s/trunk |
52 svn_subset: -N . | 53 svn_subset: -N . |
53 subdir | 54 subdir |
56 packager_class: readconfig_test.extraargs | 57 packager_class: readconfig_test.extraargs |
57 orig_tarball: %(base_dir)s/mytarball.tgz | 58 orig_tarball: %(base_dir)s/mytarball.tgz |
58 rules_svn_url: file:///tmp/my-debian-repository | 59 rules_svn_url: file:///tmp/my-debian-repository |
59 deb_build_options: parallel=2 | 60 deb_build_options: parallel=2 |
60 os: bar os | 61 os: bar os |
62 status_hook: echo extra hook | |
61 """ | 63 """ |
62 | 64 |
63 files = [("treepkg.cfg", config_contents), | 65 files = [("treepkg.cfg", config_contents), |
64 ("readconfig_test", | 66 ("readconfig_test", |
65 [("__init__.py", ""), | 67 [("__init__.py", ""), |
116 orig_tarball=("/home/builder/mill/" | 118 orig_tarball=("/home/builder/mill/" |
117 "tracks/extraargs/mytarball.tgz"), | 119 "tracks/extraargs/mytarball.tgz"), |
118 git_url="", | 120 git_url="", |
119 git_branch="", | 121 git_branch="", |
120 builder_cls="PBuilder", | 122 builder_cls="PBuilder", |
121 os="bar os"), | 123 os="bar os", |
124 status_hook="echo extra hook"), | |
122 dict(name="simple", | 125 dict(name="simple", |
123 base_dir="/home/builder/mill/tracks/simple", | 126 base_dir="/home/builder/mill/tracks/simple", |
124 changelog_msg_template=("Update to feature branch" | 127 changelog_msg_template=("Update to feature branch" |
125 " r%(revision)s"), | 128 " r%(revision)s"), |
126 deb_email="treepkg@example.com", | 129 deb_email="treepkg@example.com", |
139 svn_url="svn://example.com/simple/trunk", | 142 svn_url="svn://example.com/simple/trunk", |
140 version_template="1.0.svn%(revision)s", | 143 version_template="1.0.svn%(revision)s", |
141 git_url="", | 144 git_url="", |
142 git_branch="", | 145 git_branch="", |
143 builder_cls="PBuilder", | 146 builder_cls="PBuilder", |
144 os="foo os")]) | 147 os="foo os", |
148 status_hook="echo simple hook")]) | |
145 | 149 |
146 def main(): | 150 def main(): |
147 unittest.main() | 151 unittest.main() |
148 | 152 |
149 if __name__ == "__main__": | 153 if __name__ == "__main__": |