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

Side by Side Diff: tools/testing/architecture.py

Issue 8670013: Adding the performance and browser benchmarking script. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 9 years 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 | Annotate | Revision Log
OLDNEW
1 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 # for details. All rights reserved. Use of this source code is governed by a 2 # for details. All rights reserved. Use of this source code is governed by a
3 # BSD-style license that can be found in the LICENSE file. 3 # BSD-style license that can be found in the LICENSE file.
4 # 4 #
5 5
6 import os 6 import os
7 import platform 7 import platform
8 import re 8 import re
9 import shutil 9 import shutil
10 import subprocess 10 import subprocess
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after
442 elif 'ie' in flags or 'explorer' in flags or 'internet-explorer' in flags: 442 elif 'ie' in flags or 'explorer' in flags or 'internet-explorer' in flags:
443 browser_flag = 'ie' 443 browser_flag = 'ie'
444 444
445 selenium_location = os.path.join(self.root_path, 'tools', 'testing', 445 selenium_location = os.path.join(self.root_path, 'tools', 'testing',
446 'run_selenium.py') 446 'run_selenium.py')
447 447
448 html_output_file = os.path.join(self.GetHtmlPath(), self.GetHtmlName()) 448 html_output_file = os.path.join(self.GetHtmlPath(), self.GetHtmlName())
449 f = open(html_output_file, 'w') 449 f = open(html_output_file, 'w')
450 f.write(self.GetHtmlContents()) 450 f.write(self.GetHtmlContents())
451 f.close() 451 f.close()
452 return [selenium_location, html_output_file, browser_flag] 452 return [selenium_location, html_output_file, browser_flag, str(10)]
453 453
454 454
455 class StandaloneArchitecture(Architecture): 455 class StandaloneArchitecture(Architecture):
456 """Base class for architectures that run tests without a browser.""" 456 """Base class for architectures that run tests without a browser."""
457 457
458 def __init__(self, root_path, arch, mode, component, test): 458 def __init__(self, root_path, arch, mode, component, test):
459 super(StandaloneArchitecture, self).__init__(root_path, arch, mode, componen t, 459 super(StandaloneArchitecture, self).__init__(root_path, arch, mode, componen t,
460 test) 460 test)
461 461
462 def GetExecutable(self): 462 def GetExecutable(self):
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
562 return WebDriverArchitecture(root_path, arch, mode, component, test) 562 return WebDriverArchitecture(root_path, arch, mode, component, test)
563 563
564 elif component in ['vm', 'frog', 'frogsh']: 564 elif component in ['vm', 'frog', 'frogsh']:
565 return StandaloneArchitecture(root_path, arch, mode, component, test) 565 return StandaloneArchitecture(root_path, arch, mode, component, test)
566 566
567 elif component == 'leg': 567 elif component == 'leg':
568 return LegArchitecture(root_path, arch, mode, component, test) 568 return LegArchitecture(root_path, arch, mode, component, test)
569 569
570 elif component == 'dartc': 570 elif component == 'dartc':
571 return DartcArchitecture(root_path, arch, mode, component, test) 571 return DartcArchitecture(root_path, arch, mode, component, test)
OLDNEW
« no previous file with comments | « no previous file | tools/testing/perf_testing/create_graph.py » ('j') | tools/testing/perf_testing/create_graph.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698