numam-dpdk/app
Michael Santana b0209034f2 test/eal: check number of cores before running subtests
The eal flags unit test assumes that a certain number of cores are
available (4 and 8 cores), however this may not always be the case.
Individual developers may run the unit test on their local desktop
which typically have 2 to 4 cores, in said case the test is bound
to fail for lacking 4 or 8 cores.

Additionally, as we push forward introducing CI into DPDK we are limited
to the hardware specification of CI services (e.g. Travis CI) that only
have 2 cores on their servers, in which case the test would fail.

To fix this we check available cores before running a subtest. This
applies to subtests that are dedicated to test that the -l and --lcore
flags work correctly. If not enough cores are available the subtest is
simply skipped, otherwise the subtest is run.

Signed-off-by: Michael Santana <msantana@redhat.com>
Signed-off-by: David Marchand <david.marchand@redhat.com>
Acked-by: Aaron Conole <aconole@redhat.com>
2019-06-27 22:33:59 +02:00
..
pdump net: add rte prefix to ether structures 2019-05-24 13:34:45 +02:00
proc-info eal: promote some experimental functions as stable 2019-04-21 19:11:37 +02:00
test test/eal: check number of cores before running subtests 2019-06-27 22:33:59 +02:00
test-acl net: replace IPv4/v6 constants with uppercase name 2019-06-03 16:54:54 +02:00
test-bbdev app/bbdev: replace sprintf with snprintf or strlcpy 2019-04-22 21:32:10 +02:00
test-cmdline app/cmdline: move from test directory 2019-02-26 15:24:11 +01:00
test-compress-perf app/compress-perf: add incompressible data handling 2019-04-02 16:50:24 +02:00
test-crypto-perf app/crypto-perf: check range of socket id 2019-04-18 16:01:28 +02:00
test-eventdev net: add rte prefix to ether defines 2019-05-24 13:34:45 +02:00
test-pipeline net: add rte prefix to IP structure 2019-05-24 13:34:46 +02:00
test-pmd app/testpmd: drop the workaround for virtio-user 2019-06-20 23:42:04 +02:00
Makefile test: move to app directory 2019-02-26 15:29:27 +01:00
meson.build build: enable BSD features visibility for FreeBSD 2019-06-26 16:50:33 +02:00