Lines Matching +full:use +full:- +full:cases

1 tdc - Linux Traffic Control (tc) unit testing suite
3 Author: Lucas Bates - [email protected]
10 ------------
23 * All tc-related features being tested must be built in or available as
25 ./tdc.py -c
29 teardown commands - which includes not being able to run a test simply
31 handled in a future version - the current workaround is to run the tests
36 --------------
43 using the -p option when running tdc:
44 ./tdc.py -p /path/to/tc
48 -----------
50 To use tdc, root privileges are required. This is because the
55 Tests that use a network device should have nsPlugin.py listed as a
58 cases. To disable execution within the namespace, pass the -N option
64 ./tdc.py -h
73 -------------------------
76 future). A test suite has one or more test cases in it.
80 - setup
81 - execute
82 - verify
83 - teardown
104 Tests that use netdevsim or don't run inside a namespace run serially with regards
108 USER-DEFINED CONSTANTS
109 ----------------------
114 executed as part of the test. More will be added as test cases require.
119 The NAMES values are used to substitute into the commands in the test cases.
123 ----------------------
125 Run tdc.py -h to see the full list of available arguments.
128 -------------------
133 The plugins are in the directory plugin-lib. The are executed from
134 directory plugins. Put symbolic links from plugins to plugin-lib,
140 bjb@bee:~/work/tc-testing$ ls -l plugins
142 lrwxrwxrwx 1 bjb bjb 27 Oct 4 16:12 10-rootPlugin.py -> ../plugin-lib/rootPlugin.py
143 lrwxrwxrwx 1 bjb bjb 25 Oct 12 17:55 20-nsPlugin.py -> ../plugin-lib/nsPlugin.py
144 -rwxr-xr-x 1 bjb bjb 0 Sep 29 15:56 __init__.py
153 pre- and post-suite
154 pre- and post-case
155 pre- and post-execute stage
156 adjust-command (runs in all stages and receives the stage name)
158 The pre-suite hook receives the number of tests and an array of test ids.
162 The pre-case hook receives the ordinal number and test id of the current test.
164 The adjust-command hook receives the stage id (see list below) and the
165 full command to be executed. This allows for last-minute adjustment
170 - pre (pre-suite)
171 - setup
172 - command
173 - verify
174 - teardown
175 - post (post-suite)
179 TdcPlugin.py. To use the plugin, you have to put the
180 implementation file in plugin-lib, and add a symbolic link to it from
182 appropriate times. There are a few examples in the plugin-lib
185 - rootPlugin.py:
187 - nsPlugin.py:
190 - valgrindPlugin.py
201 ----------------
205 Jamal Hadi Salim, for providing valuable test cases