Home | History | Annotate | Download | only in test

Lines Matching refs:output

32 """Tests the text output of Google C++ Testing Framework.
91 """Removes all file location info from a Google Test program's output.
94 test_output: the output of a Google Test program.
97 output with all file location info (in the form of
106 def RemoveStackTraceDetails(output):
107 """Removes all stack traces from a Google Test program's output."""
111 'Stack trace: (omitted)\n\n', output)
114 def RemoveStackTraces(output):
115 """Removes all traces of stack traces from a Google Test program's output."""
118 return re.sub(r'Stack trace:(.|\n)*?\n\n', '', output)
121 def RemoveTime(output):
122 """Removes all time information from a Google Test program's output."""
124 return re.sub(r'\(\d+ ms', '(? ms', output)
128 """Removes compiler-specific type info from Google Test program's output.
131 test_output: the output of a Google Test program.
134 output with type information normalized to canonical form.
137 # some compilers output the name of type 'unsigned int' as 'unsigned'
141 def RemoveTestCounts(output):
142 """Removes test counts from a Google Test program's output."""
144 output = re.sub(r'\d+ tests?, listed below',
145 '? tests, listed below', output)
146 output = re.sub(r'\d+ FAILED TESTS',
147 '? FAILED TESTS', output)
148 output = re.sub(r'\d+ tests? from \d+ test cases?',
149 '? tests from ? test cases', output)
150 output = re.sub(r'\d+ tests? from ([a-zA-Z_])',
151 r'? tests from \1', output)
152 return re.sub(r'\d+ tests?\.', '? tests.', output)
156 """Removes output of specified tests from a Google Test program's output.
159 all output in between.
162 test_output: A string containing the test output.
178 def NormalizeOutput(output):
179 """Normalizes output (the output of gtest_output_test_.exe)."""
181 output = ToUnixLineEnding(output)
182 output = RemoveLocations(output)
183 output = RemoveStackTraceDetails(output)
184 output = RemoveTime(output)
185 return output
189 """Runs a command in a sub-process, and returns its output in a string.
197 A string with the command's combined standard and diagnostic output.
206 return p.output
210 """Runs a command and returns its output with all file location
227 """Returns concatenated output from several representative commands."""
267 output = GetOutputOfAllCommands()
281 normalized_actual = RemoveTypeInfoDetails(output)
308 output = GetOutputOfAllCommands()
310 golden_file.write(output)