diff options
author | 2016-10-12 13:22:18 +0200 | |
---|---|---|
committer | 2016-10-12 13:27:49 +0200 | |
commit | d5c1538c13e92cfa1185192a8ef103416570840f (patch) | |
tree | 31d3f580ab82f1bcc65b26e430a1304fa1da4274 /debian/tests/control | |
parent | 544ddb0c7a5d50dc840ccc7cd6b05e51ce824cc5 (diff) |
enable dpdk autotests as dep8 tests
The autotests we bundle can be used on machines able to run DPDK.
But sadly almost none of them can run inside most common build
environments which makes it unavailable for a classic "dh_autotest".
But we can define certain characteristics of an dep8 test.
In there at least the majority of the tests runs fine.
So this adds the autotests as dep8 test.
To do so it defines the test as "isolation-machine, needs-root", but
even then checks further required capabilities like sse3 and the
required huge pages.
If prereqs are not met it exits by skipping the test, which counts as
PASS.
The tests can run successful e.g. with an autopkgtest call that adds the
required CPU characteristics. To do so run it like usual but with:
autopkgtest [...] -- qemu --qemu-options='-cpu qemu64,+ssse3' [...]
So far only amd64 is supported and as mentioned before only if the
prereqs are met. But it is written in a way that this can be the groundwork
for any other architecture that wants to enable the autotests as well.
Change-Id: Ia2a2839ce349b3ea5c22f0b8a589f8a71378adc1
Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
Diffstat (limited to 'debian/tests/control')
-rw-r--r-- | debian/tests/control | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/debian/tests/control b/debian/tests/control index 4eb71038..7d624212 100644 --- a/debian/tests/control +++ b/debian/tests/control @@ -11,3 +11,7 @@ Tests: test-dkms Restrictions: allow-stderr, isolation-machine, needs-root Depends: kmod, dpdk-igb-uio-dkms [amd64 arm64 i386 ppc64el], dpdk-rte-kni-dkms [amd64 arm64 i386 ppc64el] + +Tests: test-autotest +Restrictions: allow-stderr, isolation-machine, needs-root +Depends: dpdk-dev, python, python-pexpect |