Add debian related test env

Change-Id: Ic186d8f563e58680e10d73a188ef63fa53e44c10
This commit is contained in:
Jeffrey Zhang 2017-02-24 10:30:36 +08:00
parent 60021eced0
commit 443694bcfa
2 changed files with 60 additions and 0 deletions

View File

@ -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",

22
tox.ini
View File

@ -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