List system dependencies for running common tests

Add an other-requirements.txt file containing a cross-platform list
of dependencies needed for running included tox-based tests. Also
include a tox environment for convenience calling the bindep[*]
utility to list any missing system requirements.

This change is self-testing.

For other-requirements.txt see also
http://docs.openstack.org/infra/manual/drivers.html#package-requirements

[*] http://docs.openstack.org/infra/bindep/

Change-Id: I1fda19c8867fee722bc9dff06f3c07fb6d4959b8
This commit is contained in:
Andreas Jaeger 2016-06-28 11:37:05 +02:00
parent c2fc33d840
commit 6cfbd38f0b
2 changed files with 24 additions and 0 deletions

16
other-requirements.txt Normal file
View File

@ -0,0 +1,16 @@
# This is a cross-platform list tracking distribution packages needed by tests;
# see http://docs.openstack.org/infra/bindep/ for additional information.
dbus-devel [platform:rpm]
dbus-glib-devel [platform:rpm]
language-pack-en [platform:ubuntu]
locales [platform:debian]
python-dev [platform:dpkg]
python-devel [platform:rpm]
python-libvirt [platform:dpkg]
python3-all-dev [platform:ubuntu !platform:ubuntu-precise]
python3-dev [platform:dpkg]
python3-devel [platform:fedora]
python3.4 [platform:ubuntu-trusty]
python34-devel [platform:centos]
python3.5 [platform:ubuntu-xenial]

View File

@ -43,3 +43,11 @@ exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build
commands =
bash -c "tools/generate_dashboards.sh"
sphinx-build doc/dashboards/ build/
[testenv:bindep]
# Do not install any requirements. We want this to be fast and work even if
# system dependencies are missing, since it's used to tell you what system
# dependencies are missing! This also means that bindep must be installed
# separately, outside of the requirements files.
deps = bindep
commands = bindep test