Lines Matching +full:self +full:- +full:update

11 # See the COPYING file in the top-level directory.
27 def visit_module(self, name): argument
30 def visit_include(self, name, info): argument
33 def visit_enum_type(self, name, info, ifcond, features, members, prefix): argument
39 self._print_if(m.ifcond, indent=8)
40 self._print_features(m.features, indent=8)
41 self._print_if(ifcond)
42 self._print_features(features)
44 def visit_array_type(self, name, info, ifcond, element_type): argument
46 return # suppress built-in arrays
48 self._print_if(ifcond)
50 def visit_object_type(self, name, info, ifcond, features, argument
58 self._print_if(m.ifcond, 8)
59 self._print_features(m.features, indent=8)
60 self._print_variants(branches)
61 self._print_if(ifcond)
62 self._print_features(features)
64 def visit_alternate_type(self, name, info, ifcond, features, argument
67 self._print_variants(alternatives)
68 self._print_if(ifcond)
69 self._print_features(features)
71 def visit_command(self, name, info, ifcond, features, argument
74 print('command %s %s -> %s'
80 self._print_if(ifcond)
81 self._print_features(features)
83 def visit_event(self, name, info, ifcond, features, arg_type, boxed): argument
86 self._print_if(ifcond)
87 self._print_features(features)
137 def open_test_result(dir_name, file_name, update): argument
138 mode = 'r+' if update else 'r'
140 return open(os.path.join(dir_name, file_name), mode, encoding='utf-8')
142 if not update:
144 return open(os.path.join(dir_name, file_name), 'w+', encoding='utf-8')
147 def test_and_diff(test_name, dir_name, update): argument
164 outfp = open_test_result(dir_name, test_name + '.out', update)
165 errfp = open_test_result(dir_name, test_name + '.err', update)
177 print("%s %s" % (test_name, 'UPDATE' if update else 'FAIL'),
184 if not update:
206 parser.add_argument('-d', '--dir', action='store', default='',
208 parser.add_argument('-u', '--update', action='store_true',
210 help="update expected test results")
219 status |= test_and_diff(test_name, dir_name, args.update)