Bootstrap Python venv for tests
commit213137217a60eca18e9b55817f00dfdd6eaff74a
authorCleber Rosa <crosa@redhat.com>
Thu, 18 Oct 2018 15:31:32 +0000 (18 11:31 -0400)
committerEduardo Habkost <ehabkost@redhat.com>
Wed, 31 Oct 2018 00:13:54 +0000 (30 21:13 -0300)
treec47eaf9e2e35e2cf933e1c4511c590983d068662
parente21b5f34d669b82087597273f3783626947291a0
Bootstrap Python venv for tests

A number of QEMU tests are written in Python, and may benefit
from an untainted Python venv.

By using make rules, tests that depend on specific Python libs
can set that rule as a requirement, along with rules that require
the presence or installation of specific libraries.

The tests/requirements.txt is supposed to contain the Python
requirements that should be added to the venv created by check-venv.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
Acked-by: Wainer dos Santos Moschetta <wainersm@redhat.com>
Reviewed-by: Caio Carrara <ccarrara@redhat.com>
Message-Id: <20181018153134.8493-2-crosa@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
tests/Makefile.include
tests/requirements.txt [new file with mode: 0644]