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

Unified Diff: tests/browser_startup_time/nacl.scons

Issue 8439032: Add option to command tester for running a test multiple times. Use that (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client/
Patch Set: precommit Created 9 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « SConstruct ('k') | tools/command_tester.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/browser_startup_time/nacl.scons
===================================================================
--- tests/browser_startup_time/nacl.scons (revision 7147)
+++ tests/browser_startup_time/nacl.scons (working copy)
@@ -7,10 +7,6 @@
Import('env')
-# Pull in the ppapi_test_example as a "barebones" PPAPI startup example.
-# Hope it does not change to do more than just the barebones.
-# We must make a separate build though, to get a different nexe "key"
-# for the env.Publish() / env.ExtractPublishedFiles() magic.
nexe_name = 'browser_startup_time_${TARGET_FULLARCH}'
stripped_nexe = ('browser_startup_time_stripped_%s.nexe' %
env.get('TARGET_FULLARCH'))
@@ -25,19 +21,25 @@
'browser_startup_time.js'])
test_name = 'browser_startup_time.out'
-output_processor = ['${PYTHON}',
- str(env.File(
- '${SCONSTRUCT_DIR}/tools/process_perf_output.py')),
- test_name,
- env.GetPerfEnvDescription()]
+output_processor_1 = ['${PYTHON}',
+ str(env.File(
+ '${SCONSTRUCT_DIR}/tools/process_perf_output.py')),
+ test_name,
+ env.GetPerfEnvDescription()]
+output_processor_c = ['${PYTHON}',
+ str(env.File(
+ '${SCONSTRUCT_DIR}/tools/process_perf_combined.py'))]
+
node = env.PPAPIBrowserTester(
test_name,
url='browser_startup_time.html',
nmfs=['browser_startup_time.nmf'],
files=env.ExtractPublishedFiles(nexe_name),
- args=['--enable_experimental_js'],
- process_output=output_processor,
+ # Smooth out the timing data.
+ num_runs=5,
+ process_output_single=output_processor_1,
+ process_output_combined=output_processor_c,
# Assume verbosity level of 1 will give us NaClLogs for sel_ldr times.
log_verbosity=1)
« no previous file with comments | « SConstruct ('k') | tools/command_tester.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698