xref: /linux/tools/testing/selftests/drivers/net/README.rst (revision 860a9bed265146b10311bcadbbcef59c3af4454d)
1Running tests
2=============
3
4Tests are executed within kselftest framework like any other tests.
5By default tests execute against software drivers such as netdevsim.
6All tests must support running against a real device (SW-only tests
7should instead be placed in net/ or drivers/net/netdevsim, HW-only
8tests in drivers/net/hw).
9
10Set appropriate variables to point the tests at a real device.
11
12Variables
13=========
14
15Variables can be set in the environment or by creating a net.config
16file in the same directory as this README file. Example::
17
18  $ NETIF=eth0 ./some_test.sh
19
20or::
21
22  $ cat tools/testing/selftests/drivers/net/net.config
23  # Variable set in a file
24  NETIF=eth0
25
26NETIF
27~~~~~
28
29Name of the netdevice against which the test should be executed.
30When empty or not set software devices will be used.
31