1*4882a593Smuzhiyuntdc.py will look for plugins in a directory plugins off the cwd. 2*4882a593SmuzhiyunMake a set of numbered symbolic links from there to the actual plugins. 3*4882a593SmuzhiyunEg: 4*4882a593Smuzhiyun 5*4882a593Smuzhiyuntdc.py 6*4882a593Smuzhiyunplugin-lib/ 7*4882a593Smuzhiyunplugins/ 8*4882a593Smuzhiyun __init__.py 9*4882a593Smuzhiyun 10-rootPlugin.py -> ../plugin-lib/rootPlugin.py 10*4882a593Smuzhiyun 20-valgrindPlugin.py -> ../plugin-lib/valgrindPlugin.py 11*4882a593Smuzhiyun 30-nsPlugin.py -> ../plugin-lib/nsPlugin.py 12*4882a593Smuzhiyun 13*4882a593Smuzhiyun 14*4882a593Smuzhiyuntdc.py will find them and use them. 15*4882a593Smuzhiyun 16*4882a593Smuzhiyun 17*4882a593SmuzhiyunrootPlugin 18*4882a593Smuzhiyun Check if the uid is root. If not, bail out. 19*4882a593Smuzhiyun 20*4882a593SmuzhiyunvalgrindPlugin 21*4882a593Smuzhiyun Run the command under test with valgrind, and produce an extra set of TAP results for the memory tests. 22*4882a593Smuzhiyun This plugin will write files to the cwd, called vgnd-xxx.log. These will contain 23*4882a593Smuzhiyun the valgrind output for test xxx. Any file matching the glob 'vgnd-*.log' will be 24*4882a593Smuzhiyun deleted at the end of the run. 25*4882a593Smuzhiyun 26*4882a593SmuzhiyunnsPlugin 27*4882a593Smuzhiyun Run all the commands in a network namespace. 28