xref: /linux/tools/testing/selftests/tc-testing/plugin-lib/README-PLUGINS (revision c13aca79ff3c4af5fd31a5b2743a90eba6e36a26)
1*93707cbaSBrenda J. Butlertdc.py will look for plugins in a directory plugins off the cwd.
2*93707cbaSBrenda J. ButlerMake a set of numbered symbolic links from there to the actual plugins.
3*93707cbaSBrenda J. ButlerEg:
4*93707cbaSBrenda J. Butler
5*93707cbaSBrenda J. Butlertdc.py
6*93707cbaSBrenda J. Butlerplugin-lib/
7*93707cbaSBrenda J. Butlerplugins/
8*93707cbaSBrenda J. Butler    __init__.py
9*93707cbaSBrenda J. Butler    10-rootPlugin.py -> ../plugin-lib/rootPlugin.py
10*93707cbaSBrenda J. Butler    20-valgrindPlugin.py -> ../plugin-lib/valgrindPlugin.py
11*93707cbaSBrenda J. Butler    30-nsPlugin.py -> ../plugin-lib/nsPlugin.py
12*93707cbaSBrenda J. Butler
13*93707cbaSBrenda J. Butler
14*93707cbaSBrenda J. Butlertdc.py will find them and use them.
15*93707cbaSBrenda J. Butler
16*93707cbaSBrenda J. Butler
17*93707cbaSBrenda J. ButlerrootPlugin
18*93707cbaSBrenda J. Butler    Check if the uid is root.  If not, bail out.
19*93707cbaSBrenda J. Butler
20*93707cbaSBrenda J. ButlervalgrindPlugin
21*93707cbaSBrenda J. Butler    Run the command under test with valgrind, and produce an extra set of TAP results for the memory tests.
22*93707cbaSBrenda J. Butler    This plugin will write files to the cwd, called vgnd-xxx.log.  These will contain
23*93707cbaSBrenda J. Butler    the valgrind output for test xxx.  Any file matching the glob 'vgnd-*.log' will be
24*93707cbaSBrenda J. Butler    deleted at the end of the run.
25*93707cbaSBrenda J. Butler
26*93707cbaSBrenda J. ButlernsPlugin
27*93707cbaSBrenda J. Butler    Run all the commands in a network namespace.
28