]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r342649, r342650
authorVincenzo Maffione <vmaffione@FreeBSD.org>
Tue, 8 Jan 2019 09:40:09 +0000 (09:40 +0000)
committerVincenzo Maffione <vmaffione@FreeBSD.org>
Tue, 8 Jan 2019 09:40:09 +0000 (09:40 +0000)
commit1b1076c4254a5134ef59fa3a04b5cf2a1a4c4871
tree488a2e9fb894f4deb2e4ee8956a6b4ed3e6ee4e2
parentb67956838fe2d6d7af3d85e806d8bc6c5093cc91
MFC r342649, r342650

netmap: add suite of unit tests

Import the unit tests from upstream (https://github.com/luigirizzo/netmap
ba02539859d46d33), and make them ready for use with Kyua.
There are currently 38 regression tests, which test the kernel control ABI
exposed by netmap to userspace applications:

  1: test for port info get
  2-5: tests for basic port registration
  6-9: tests for VALE
  10-11: tests for getting netmap allocator info
  12-15: tests for netmap pipes
  16: test on polling mode
  17-18: tests on options
  19-27: tests for sync-kloop subsystem
  28-39: tests for null ports
  31-38: tests for the legacy NIOCREGIF registers

Reviewed by:    ngie
Sponsored by: Sunny Valley Networks
Differential Revision:  https://reviews.freebsd.org/D18490
etc/mtree/BSD.tests.dist
tests/sys/Makefile
tests/sys/netmap/Makefile [new file with mode: 0644]
tests/sys/netmap/ctrl-api-test.c [new file with mode: 0644]