~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/tools/testing/selftests/tc-testing/TdcPlugin.py

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /tools/testing/selftests/tc-testing/TdcPlugin.py (Architecture mips) and /tools/testing/selftests/tc-testing/TdcPlugin.py (Architecture sparc64)


  1 #!/usr/bin/env python3                              1 #!/usr/bin/env python3
  2                                                     2 
  3 class TdcPlugin:                                    3 class TdcPlugin:
  4     def __init__(self):                             4     def __init__(self):
  5         super().__init__()                          5         super().__init__()
  6         print(' -- {}.__init__'.format(self.su      6         print(' -- {}.__init__'.format(self.sub_class))
  7                                                     7 
  8     def pre_suite(self, testcount, testlist):       8     def pre_suite(self, testcount, testlist):
  9         '''run commands before test_runner goe      9         '''run commands before test_runner goes into a test loop'''
 10         self.testcount = testcount                 10         self.testcount = testcount
 11         self.testlist = testlist                   11         self.testlist = testlist
 12         if self.args.verbose > 1:                  12         if self.args.verbose > 1:
 13             print(' -- {}.pre_suite'.format(se     13             print(' -- {}.pre_suite'.format(self.sub_class))
 14                                                    14 
 15     def post_suite(self, index):                   15     def post_suite(self, index):
 16         '''run commands after test_runner comp     16         '''run commands after test_runner completes the test loop
 17         index is the last ordinal number of te     17         index is the last ordinal number of test that was attempted'''
 18         if self.args.verbose > 1:                  18         if self.args.verbose > 1:
 19             print(' -- {}.post_suite'.format(s     19             print(' -- {}.post_suite'.format(self.sub_class))
 20                                                    20 
 21     def pre_case(self, caseinfo, test_skip):       21     def pre_case(self, caseinfo, test_skip):
 22         '''run commands before test_runner doe     22         '''run commands before test_runner does one test'''
 23         if self.args.verbose > 1:                  23         if self.args.verbose > 1:
 24             print(' -- {}.pre_case'.format(sel     24             print(' -- {}.pre_case'.format(self.sub_class))
 25         self.args.caseinfo = caseinfo              25         self.args.caseinfo = caseinfo
 26         self.args.test_skip = test_skip            26         self.args.test_skip = test_skip
 27                                                    27 
 28     def post_case(self):                           28     def post_case(self):
 29         '''run commands after test_runner does     29         '''run commands after test_runner does one test'''
 30         if self.args.verbose > 1:                  30         if self.args.verbose > 1:
 31             print(' -- {}.post_case'.format(se     31             print(' -- {}.post_case'.format(self.sub_class))
 32                                                    32 
 33     def pre_execute(self):                         33     def pre_execute(self):
 34         '''run command before test-runner does     34         '''run command before test-runner does the execute step'''
 35         if self.args.verbose > 1:                  35         if self.args.verbose > 1:
 36             print(' -- {}.pre_execute'.format(     36             print(' -- {}.pre_execute'.format(self.sub_class))
 37                                                    37 
 38     def post_execute(self):                        38     def post_execute(self):
 39         '''run command after test-runner does      39         '''run command after test-runner does the execute step'''
 40         if self.args.verbose > 1:                  40         if self.args.verbose > 1:
 41             print(' -- {}.post_execute'.format     41             print(' -- {}.post_execute'.format(self.sub_class))
 42                                                    42 
 43     def adjust_command(self, stage, command):      43     def adjust_command(self, stage, command):
 44         '''adjust the command'''                   44         '''adjust the command'''
 45         if self.args.verbose > 1:                  45         if self.args.verbose > 1:
 46             print(' -- {}.adjust_command {}'.f     46             print(' -- {}.adjust_command {}'.format(self.sub_class, stage))
 47                                                    47 
 48         # if stage == 'pre':                       48         # if stage == 'pre':
 49         #     pass                                 49         #     pass
 50         # elif stage == 'setup':                   50         # elif stage == 'setup':
 51         #     pass                                 51         #     pass
 52         # elif stage == 'execute':                 52         # elif stage == 'execute':
 53         #     pass                                 53         #     pass
 54         # elif stage == 'verify':                  54         # elif stage == 'verify':
 55         #     pass                                 55         #     pass
 56         # elif stage == 'teardown':                56         # elif stage == 'teardown':
 57         #     pass                                 57         #     pass
 58         # elif stage == 'post':                    58         # elif stage == 'post':
 59         #     pass                                 59         #     pass
 60         # else:                                    60         # else:
 61         #     pass                                 61         #     pass
 62                                                    62 
 63         return command                             63         return command
 64                                                    64 
 65     def add_args(self, parser):                    65     def add_args(self, parser):
 66         '''Get the plugin args from the comman     66         '''Get the plugin args from the command line'''
 67         self.argparser = parser                    67         self.argparser = parser
 68         return self.argparser                      68         return self.argparser
 69                                                    69 
 70     def check_args(self, args, remaining):         70     def check_args(self, args, remaining):
 71         '''Check that the args are set correct     71         '''Check that the args are set correctly'''
 72         self.args = args                           72         self.args = args
 73         if self.args.verbose > 1:                  73         if self.args.verbose > 1:
 74             print(' -- {}.check_args'.format(s     74             print(' -- {}.check_args'.format(self.sub_class))
                                                      

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php