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

Side by Side Diff: client/site_tests/desktopui_PageCyclerTests/desktopui_PageCyclerTests.py

Issue 3209004: Moved chrome autotests to chromium depot (Closed) Base URL: ssh://gitrw.chromium.org/autotest.git
Patch Set: updates Created 10 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
OLDNEW
(Empty)
1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 import commands, logging, os, shutil, time
6 from autotest_lib.client.bin import test, utils
7 from autotest_lib.client.common_lib import error, site_httpd, site_ui
8 from page_cycler_results_parser import PageCyclerResultsParser
9
10
11 class desktopui_PageCyclerTests(test.test):
12 version = 1
13 results = {}
14
15 def run_page_cycler(self, gtest_filter = ''):
16 # TODO: Disable screensaver?
17 assert(gtest_filter != ''), gtest_filter+' cannot be empty!'
18 cmd = ('CR_SOURCE_ROOT=/home/chronos/chromium/src /home/chronos/'
19 'chromium/src/x86-generic_out/Release/page_cycler_tests'
20 ' --gtest_filter=')+gtest_filter
21 xcmd = site_ui.xcommand(cmd)
22 logging.debug('Running: '+gtest_filter)
23 output = utils.system_output(xcmd)
24 pcrp = PageCyclerResultsParser()
25 result = pcrp.parse_results(output)
26 logging.debug(result)
27 self.results[gtest_filter] = result
28
29 def run_once(self):
30 # Use a smaller input set for testing purposes, if needed:
31 ### testNames=['PageCyclerTest.MozFile']
32 testNames=['PageCyclerTest.Alexa_usFile', 'PageCyclerTest.MozFile',
33 'PageCyclerTest.Intl1File', 'PageCyclerTest.Intl2File',
34 'PageCyclerTest.DhtmlFile', 'PageCyclerTest.Moz2File',
35 'PageCyclerTest.BloatFile', 'PageCyclerTest.DomFile',
36 'PageCyclerTest.MorejsFile', 'PageCyclerTest.MorejsnpFile']
37 for testName in testNames:
38 self.run_page_cycler(testName)
39 self.write_perf_keyval(self.results)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698