mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-18 03:23:53 -04:00
selftests: drivers: add scaffolding for Netlink tests in Python
Add drivers/net as a target for mixed-use tests. The setup is expected to work similarly to the forwarding tests. Since we only need one interface (unlike forwarding tests) read the target device name from NETIF. If not present we'll try to run the test against netdevsim. Reviewed-by: Petr Machata <petrm@nvidia.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
f216306bfb
commit
b4db9f8402
30
tools/testing/selftests/drivers/net/README.rst
Normal file
30
tools/testing/selftests/drivers/net/README.rst
Normal file
@@ -0,0 +1,30 @@
|
||||
Running tests
|
||||
=============
|
||||
|
||||
Tests are executed within kselftest framework like any other tests.
|
||||
By default tests execute against software drivers such as netdevsim.
|
||||
All tests must support running against a real device (SW-only tests
|
||||
should instead be placed in net/ or drivers/net/netdevsim, HW-only
|
||||
tests in drivers/net/hw).
|
||||
|
||||
Set appropriate variables to point the tests at a real device.
|
||||
|
||||
Variables
|
||||
=========
|
||||
|
||||
Variables can be set in the environment or by creating a net.config
|
||||
file in the same directory as this README file. Example::
|
||||
|
||||
$ NETIF=eth0 ./some_test.sh
|
||||
|
||||
or::
|
||||
|
||||
$ cat tools/testing/selftests/drivers/net/net.config
|
||||
# Variable set in a file
|
||||
NETIF=eth0
|
||||
|
||||
NETIF
|
||||
~~~~~
|
||||
|
||||
Name of the netdevice against which the test should be executed.
|
||||
When empty or not set software devices will be used.
|
||||
Reference in New Issue
Block a user