]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r345644,r346061:
authorngie <ngie@FreeBSD.org>
Tue, 16 Apr 2019 01:03:32 +0000 (01:03 +0000)
committerngie <ngie@FreeBSD.org>
Tue, 16 Apr 2019 01:03:32 +0000 (01:03 +0000)
commit2c831af2fe64d2d14f440a869779c23f42b8dc83
treece36039ce3c61ba8c3cfd432bf4f054a7c09fc77
parent809d641e17e1f4f37242acb1656088917e644e27
MFC r345644,r346061:

r345644 (by olivier):

Skip this test if if_tap module is not available

PR: 236842

r346061:

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
tests/sys/netmap/Makefile
tests/sys/netmap/ctrl-api-test.c