From 443694bcfa37a1e7a8f16c65ab173647a2b69af2 Mon Sep 17 00:00:00 2001 From: Jeffrey Zhang Date: Fri, 24 Feb 2017 10:30:36 +0800 Subject: Add debian related test env Change-Id: Ic186d8f563e58680e10d73a188ef63fa53e44c10 --- tests/test_build.py | 38 ++++++++++++++++++++++++++++++++++++++ tox.ini | 22 ++++++++++++++++++++++ 2 files changed, 60 insertions(+) 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", diff --git a/tox.ini b/tox.ini index b67e9bcee..4bc44534f 100644 --- a/tox.ini +++ b/tox.ini @@ -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 -- cgit v1.2.3