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

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

Issue 7655003: Make chrome_browser_tests work with irt=0 again (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Created 9 years, 4 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 Import('env') 6 Import('env')
7 7
8 dest_copy = env.Replicate('${STAGING_DIR}', 'async_messaging.html') 8 dest_copy = env.Replicate('${STAGING_DIR}', 'async_messaging.html')
9 env.Replicate('${STAGING_DIR}', 9 env.Replicate('${STAGING_DIR}',
10 '${SCONSTRUCT_DIR}/tools/browser_tester/browserdata/nacltest.js') 10 '${SCONSTRUCT_DIR}/tools/browser_tester/browserdata/nacltest.js')
11 11
12 async_nexe_name = 'async_message_test_%s' % env.get('TARGET_FULLARCH') 12 async_nexe_name = 'async_message_test_%s' % env.get('TARGET_FULLARCH')
13 async_message_prog = env.ComponentProgram( 13 async_message_prog = env.ComponentProgram(
14 async_nexe_name, 'async_message_test.c', 14 async_nexe_name, 'async_message_test.c',
15 EXTRA_LIBS=['${NON_PPAPI_BROWSER_LIBS}', 15 EXTRA_LIBS=['${NON_PPAPI_BROWSER_LIBS}',
16 'srpc', 'platform', 'gio', 'imc', 'imc_syscalls', 'pthread' 16 'srpc', 'platform', 'gio', 'imc', 'imc_syscalls',
17 '${PTHREAD_LIBS}',
17 ]) 18 ])
18 19
19 test_files = [ 20 test_files = [
20 env.File('${STAGING_DIR}/nacltest.js'), 21 env.File('${STAGING_DIR}/nacltest.js'),
21 env.File('${STAGING_DIR}/%s${PROGSUFFIX}' % async_nexe_name), 22 env.File('${STAGING_DIR}/%s${PROGSUFFIX}' % async_nexe_name),
22 ] 23 ]
23 # These are not true dependencies: They are not needed for the .html 24 # These are not true dependencies: They are not needed for the .html
24 # file to be replicated to "staging", but they are needed for the 25 # file to be replicated to "staging", but they are needed for the
25 # .html file to work when run. 26 # .html file to work when run.
26 # TODO(mseaborn): Similar logic is duplicated in 27 # TODO(mseaborn): Similar logic is duplicated in
27 # tests/inbrowser_test_runner/nacl.scons. Reduce the duplication. 28 # tests/inbrowser_test_runner/nacl.scons. Reduce the duplication.
28 env.Depends(dest_copy, test_files) 29 env.Depends(dest_copy, test_files)
29 env.Alias('async_messaging.html', dest_copy) 30 env.Alias('async_messaging.html', dest_copy)
30 31
31 node = env.PPAPIBrowserTester( 32 node = env.PPAPIBrowserTester(
32 'async_messaging_chrome_browser_test.out', 33 'async_messaging_chrome_browser_test.out',
33 url='async_messaging.html', 34 url='async_messaging.html',
34 files=[env.File('async_messaging.html'), 35 files=[env.File('async_messaging.html'),
35 env.File('async_message_test.nmf')] + test_files, 36 env.File('async_message_test.nmf')] + test_files,
36 args=['--enable_experimental_js']) 37 args=['--enable_experimental_js'])
37 38
38 env.AddNodeToTestSuite(node, 39 env.AddNodeToTestSuite(node,
39 ['chrome_browser_tests'], 40 ['chrome_browser_tests'],
40 'run_async_messaging_test', 41 'run_async_messaging_test',
41 is_broken=env.PPAPIBrowserTesterIsBroken()) 42 is_broken=env.PPAPIBrowserTesterIsBroken())
OLDNEW
« SConstruct ('K') | « tests/manifest_file/nacl.scons ('k') | tests/ppapi_geturl/nacl.scons » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698