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

Side by Side Diff: tests/browser_startup_time/nacl.scons

Issue 7242011: Get rid of assumptions about ".nexe" extension. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client/
Patch Set: '' Created 9 years, 6 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 | Annotate | Revision Log
OLDNEW
1 # -*- python -*- 1 # -*- python -*-
2 # Copyright (c) 2011 The Native Client Authors. All rights reserved. 2 # Copyright (c) 2011 The Native Client 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 # Test startup time for loading a basic PPAPI nexe in the browser. 6 # Test startup time for loading a basic PPAPI nexe in the browser.
7 7
8 Import('env') 8 Import('env')
9 9
10 # Pull in the ppapi_test_example as a "barebones" PPAPI startup example. 10 # Pull in the ppapi_test_example as a "barebones" PPAPI startup example.
11 # Hope it does not change to do more than just the barebones. 11 # Hope it does not change to do more than just the barebones.
12 # We must make a separate build though, to get a different nexe "key" 12 # We must make a separate build though, to get a different nexe "key"
13 # for the env.Publish() / env.ExtractPublishedFiles() magic. 13 # for the env.Publish() / env.ExtractPublishedFiles() magic.
14 nexe = 'browser_startup_time_%s.nexe' % env.get('TARGET_FULLARCH') 14 nexe = 'browser_startup_time_%s' % env.get('TARGET_FULLARCH')
Nick Bray 2011/06/23 18:32:24 Why leave this named nexe?
pdox 2011/06/23 20:42:58 Done.
15 15
16 # Build object file separately to prevent crud left in the source directory. 16 # Build object file separately to prevent crud left in the source directory.
17 browser_startup_obj = env.ComponentObject( 17 browser_startup_obj = env.ComponentObject(
18 'pnacl_test_example', 18 'pnacl_test_example',
19 '${SCONSTRUCT_DIR}/tests/ppapi_test_example/ppapi_test_example.cc') 19 '${SCONSTRUCT_DIR}/tests/ppapi_test_example/ppapi_test_example.cc')
20 20
21 browser_startup_nexe = env.ComponentProgram( 21 browser_startup_nexe = env.ComponentProgram(
22 nexe, 22 nexe,
23 [browser_startup_obj], 23 [browser_startup_obj],
24 EXTRA_LIBS=['${PPAPI_LIBS}', 24 EXTRA_LIBS=['${PPAPI_LIBS}',
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 test_suites, 60 test_suites,
61 'run_browser_startup_time_test', 61 'run_browser_startup_time_test',
62 # This test relies on NACLLOG, which must be able to 62 # This test relies on NACLLOG, which must be able to
63 # open a file. This won't work with the outer sandbox 63 # open a file. This won't work with the outer sandbox
64 # which is enabled in some cases. 64 # which is enabled in some cases.
65 is_broken=env.PPAPIBrowserTesterIsBroken() or 65 is_broken=env.PPAPIBrowserTesterIsBroken() or
66 env.Bit('disable_dynamic_plugin_loading')) 66 env.Bit('disable_dynamic_plugin_loading'))
67 67
68 # Also check the size of this nexe. 68 # Also check the size of this nexe.
69 node = env.FileSizeTest('browser_startup_size.out', 69 node = env.FileSizeTest('browser_startup_size.out',
70 nexe) 70 browser_startup_nexe)
71 env.AddNodeToTestSuite(node, 71 env.AddNodeToTestSuite(node,
72 test_suites, 72 test_suites,
73 'run_browser_startup_size_test') 73 'run_browser_startup_size_test')
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698