diff options
| author | Jenkins <jenkins@review.openstack.org> | 2017-03-15 11:00:24 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2017-03-15 11:00:24 +0000 |
| commit | 85ca88882ea28f8c18c54dc2979aaa4f79549a5b (patch) | |
| tree | b811be5d0f93a1097cd4a631ce784969f664b427 | |
| parent | 0de503a81dc9eec672d9dea98524773edc6dbbd8 (diff) | |
| parent | 443694bcfa37a1e7a8f16c65ab173647a2b69af2 (diff) | |
| download | kolla-85ca88882ea28f8c18c54dc2979aaa4f79549a5b.tar.gz kolla-85ca88882ea28f8c18c54dc2979aaa4f79549a5b.zip | |
Merge "Add debian related test env"
| -rw-r--r-- | tests/test_build.py | 38 | ||||
| -rw-r--r-- | tox.ini | 22 |
2 files changed, 60 insertions, 0 deletions
diff --git a/tests/test_build.py b/tests/test_build.py index 491637e5b..0db8c19e9 100644 --- a/tests/test_build.py +++ b/tests/test_build.py @@ -140,6 +140,44 @@ class BuildTestUbuntuSource(BuildTest, base.BaseTestCase): "--type", "source"]) +class BuildTestDebianBinary(BuildTest, base.BaseTestCase): + excluded_images = [ + "bifrost-base", + "cloudkitty-base", + "congress-base", + "freezer-base", + "heat-all", + "karbor-base", + "kuryr-base", + "monasca-base", + "neutron-sfc-agent", + "octavia-base", + "panko-base", + "searchlight-base", + "senlin-base", + "solum-base", + "tacker", + "vitrage-base", + "vmtp", + "zaqar", + "zun-base" + ] + + def setUp(self): + super(BuildTestDebianBinary, self).setUp() + self.build_args.extend(["--base", "debian", + "--type", "binary"]) + + +class BuildTestDebianSource(BuildTest, base.BaseTestCase): + excluded_images = [] + + def setUp(self): + super(BuildTestDebianSource, self).setUp() + self.build_args.extend(["--base", "debian", + "--type", "source"]) + + class BuildTestOracleLinuxBinary(BuildTest, base.BaseTestCase): excluded_images = [ "bifrost-base", @@ -98,6 +98,28 @@ commands = testr run test_build.BuildTestUbuntuSource {toxinidir}/tools/dump_info.sh +[testenv:build-debian-binary] +whitelist_externals = find + bash +setenv = + DOCKER_BUILD_TEST=1 +commands = + find . -type f -name "*.py[c|o]" -delete + bash -c "if [ ! -d .testrepository ]; then testr init; fi" + testr run test_build.BuildTestDebianBinary + {toxinidir}/tools/dump_info.sh + +[testenv:build-debian-source] +whitelist_externals = find + bash +setenv = + DOCKER_BUILD_TEST=1 +commands = + find . -type f -name "*.py[c|o]" -delete + bash -c "if [ ! -d .testrepository ]; then testr init; fi" + testr run test_build.BuildTestDebianSource + {toxinidir}/tools/dump_info.sh + [testenv:build-oraclelinux-binary] whitelist_externals = find bash |
