aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/test_build.py38
-rw-r--r--tox.ini22
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",
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