]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Polish netmap(4) testcases a bit
authorngie <ngie@FreeBSD.org>
Tue, 9 Apr 2019 17:52:11 +0000 (17:52 +0000)
committerngie <ngie@FreeBSD.org>
Tue, 9 Apr 2019 17:52:11 +0000 (17:52 +0000)
commitd80933ac53540e25e4d64b7f12e8e01c451466ee
treec7d3c4933c311406bc581654d28eebd3cf58414d
parent463d02be4c86470fa21de7c063a15beebcb580a6
Polish netmap(4) testcases a bit

1. Not all kernels have netmap(4) support. Check for netmap(4) support before
   attempting to run the tests via the `PLAIN_REQUIRE_KERNEL_MODULE(..)` macro.
2. Libraries shouldn't be added to LDFLAGS; they should be added to LIBADD
   instead. This allows the build system to evaluate dependencies for sanity.
3. Sort some of the Makefile variables per bsd.README.

1., in particular, will resolve failures when running this testcase on kernels
lacking netmap(4) support, e.g., the i386 GENERIC kernels on ^/stable/11 and
^/stable/12.

PR: 237129
Reviewed by: vmaffione
Approved by: emaste (mentor)
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D19864
tests/sys/netmap/Makefile
tests/sys/netmap/ctrl-api-test.c