diff --git a/tests/test_build.py b/tests/test_build.py index 7f68c2e118..829f452343 100644 --- a/tests/test_build.py +++ b/tests/test_build.py @@ -102,6 +102,29 @@ class BuildTestUbuntuSource(BuildTest, base.BaseTestCase): "--type", "source"]) +class BuildTestOracleLinuxBinary(BuildTest, base.BaseTestCase): + excluded_images = ["gnocchi-base", + "murano-base", + "ironic-pxe", + "ironic-inspector", + "mistral-base", + "murano-base"] + + def setUp(self): + super(BuildTestOracleLinuxBinary, self).setUp() + self.build_args.extend(["--base", "oraclelinux", + "--type", "binary"]) + + +class BuildTestOracleLinuxSource(BuildTest, base.BaseTestCase): + excluded_images = [] + + def setUp(self): + super(BuildTestOracleLinuxSource, self).setUp() + self.build_args.extend(["--base", "oraclelinux", + "--type", "source"]) + + class DeployTestCentosBinary(BuildTestCentosBinary): def setUp(self): super(DeployTestCentosBinary, self).setUp() @@ -114,6 +137,18 @@ class DeployTestCentosSource(BuildTestCentosSource): self.build_args.extend(["--profile", "gate"]) +class DeployTestOracleLinuxBinary(BuildTestOracleLinuxBinary): + def setUp(self): + super(DeployTestOracleLinuxBinary, self).setUp() + self.build_args.extend(["--profile", "gate"]) + + +class DeployTestOracleLinuxSource(BuildTestOracleLinuxSource): + def setUp(self): + super(DeployTestOracleLinuxSource, self).setUp() + self.build_args.extend(["--profile", "gate"]) + + class DeployTestUbuntuSource(BuildTestUbuntuSource): def setUp(self): super(DeployTestUbuntuSource, self).setUp() diff --git a/tox.ini b/tox.ini index 828cf2961e..5019a31828 100644 --- a/tox.ini +++ b/tox.ini @@ -71,6 +71,30 @@ commands = sudo -E -g docker testr run test_build.BuildTestUbuntuSource {toxinidir}/tools/dump_info.sh +[testenv:build-oraclelinux-binary] +whitelist_externals = find + bash + sudo +setenv = + DOCKER_BUILD_TEST=1 +commands = + find . -type f -name "*.pyc" -delete + bash -c "if [ ! -d .testrepository ]; then testr init; fi" + sudo -E -g docker testr run test_build.BuildTestOracleLinuxBinary + {toxinidir}/tools/dump_info.sh + +[testenv:build-oraclelinux-source] +whitelist_externals = find + bash + sudo +setenv = + DOCKER_BUILD_TEST=1 +commands = + find . -type f -name "*.pyc" -delete + bash -c "if [ ! -d .testrepository ]; then testr init; fi" + sudo -E -g docker testr run test_build.BuildTestOracleLinuxSource + {toxinidir}/tools/dump_info.sh + [testenv:deploy-centos-binary] whitelist_externals = find bash @@ -97,6 +121,32 @@ commands = sudo {toxinidir}/tools/deploy_aio.sh centos source {toxinidir}/tools/dump_info.sh +[testenv:deploy-oraclelinux-binary] +whitelist_externals = find + bash + sudo +setenv = + DOCKER_BUILD_TEST=1 +commands = + find . -type f -name "*.pyc" -delete + bash -c "if [ ! -d .testrepository ]; then testr init; fi" + sudo -E -g docker testr run test_build.DeployTestOracleLinuxBinary + sudo {toxinidir}/tools/deploy_aio.sh oraclelinux binary + {toxinidir}/tools/dump_info.sh + +[testenv:deploy-oraclelinux-source] +whitelist_externals = find + bash + sudo +setenv = + DOCKER_BUILD_TEST=1 +commands = + find . -type f -name "*.pyc" -delete + bash -c "if [ ! -d .testrepository ]; then testr init; fi" + sudo -E -g docker testr run test_build.DeployTestOracleLinuxSource + sudo {toxinidir}/tools/deploy_aio.sh oraclelinux source + {toxinidir}/tools/dump_info.sh + [testenv:deploy-ubuntu-source] whitelist_externals = find bash