Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(119)

Side by Side Diff: scripts/slave/unittests/runtest_annotator_test.py

Issue 23740006: Updating endure parser to read new csv output format (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: nits Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « scripts/slave/unittests/data/https___www_gmail_com_-V8MemoryUsed-summary.dat ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """Unit tests for annotated log parsers in runtest.py. 6 """Unit tests for annotated log parsers in runtest.py.
7 7
8 runtest.py has the option to parse test output locally and send results to the 8 runtest.py has the option to parse test output locally and send results to the
9 master via annotator steps. This file tests those parsers. 9 master via annotator steps. This file tests those parsers.
10 10
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 'https___www_google_com_calendar_-V8MemoryUsed'] 380 'https___www_google_com_calendar_-V8MemoryUsed']
381 self._testSummaryHelper(input_file, output_files) 381 self._testSummaryHelper(input_file, output_files)
382 382
383 def testMultipleRunsSummary(self): 383 def testMultipleRunsSummary(self):
384 """Compare each '-summary.dat' when we run two tests sequentially.""" 384 """Compare each '-summary.dat' when we run two tests sequentially."""
385 input_file = ['endure_processor_multi.log'] 385 input_file = ['endure_processor_multi.log']
386 output_files = [ 386 output_files = [
387 'https___www_google_com_calendar_-EventListenerCount', 387 'https___www_google_com_calendar_-EventListenerCount',
388 'https___www_google_com_calendar_-TotalDOMNodeCount', 388 'https___www_google_com_calendar_-TotalDOMNodeCount',
389 'https___www_google_com_calendar_-V8MemoryUsed', 389 'https___www_google_com_calendar_-V8MemoryUsed',
390 'https___www_gmail_com_-EventListenerCount', 390 'endure_gmail_alt_two_labels-EventListenerCount',
391 'https___www_gmail_com_-TotalDOMNodeCount', 391 'endure_gmail_alt_two_labels-TotalDOMNodeCount',
392 'https___www_gmail_com_-V8MemoryUsed'] 392 'endure_gmail_alt_two_labels-V8MemoryUsed']
393 self._testSummaryHelper(input_file, output_files) 393 self._testSummaryHelper(input_file, output_files)
394 394
395 def _testGraphListHelper(self, input_file, expected_graphfile): 395 def _testGraphListHelper(self, input_file, expected_graphfile):
396 """Compare the output 'graphs.dat' to what we expected.""" 396 """Compare the output 'graphs.dat' to what we expected."""
397 graphfile = 'graphs.dat' 397 graphfile = 'graphs.dat'
398 output_file = [graphfile] 398 output_file = [graphfile]
399 399
400 logs = self._ConstructParseAndCheckLogfiles(input_file, output_file, 400 logs = self._ConstructParseAndCheckLogfiles(input_file, output_file,
401 process_log_utils.GraphingEndureLogProcessor) 401 process_log_utils.GraphingEndureLogProcessor)
402 402
(...skipping 18 matching lines...) Expand all
421 def testMultipleRunsGraphList(self): 421 def testMultipleRunsGraphList(self):
422 """Compare the 'graphs.dat' file when we run two tests sequentially.""" 422 """Compare the 'graphs.dat' file when we run two tests sequentially."""
423 input_file = ['endure_processor_multi.log'] 423 input_file = ['endure_processor_multi.log']
424 expected_graphfile = 'endure_processor-graphs_multi.dat' 424 expected_graphfile = 'endure_processor-graphs_multi.dat'
425 425
426 self._testGraphListHelper(input_file, expected_graphfile) 426 self._testGraphListHelper(input_file, expected_graphfile)
427 427
428 428
429 if __name__ == '__main__': 429 if __name__ == '__main__':
430 unittest.main() 430 unittest.main()
OLDNEW
« no previous file with comments | « scripts/slave/unittests/data/https___www_gmail_com_-V8MemoryUsed-summary.dat ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698