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

Side by Side Diff: ppapi/native_client/tests/ppapi_browser/crash/nacl.scons

Issue 7736016: Revert 98616 - Landing chrome side of nacl change pre-dating ppapi switch. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 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 | 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 # Tests fatal errors that occur after loading. 6 # Tests fatal errors that occur after loading.
7 # (See ppapi_browser/bad for fatal errors that occur during loading). 7 # (See ppapi_browser/bad for fatal errors that occur during loading).
8 # 8 #
9 # The tests use ppapi_test_lib. 9 # The tests use ppapi_test_lib.
10 10
11 Import('env') 11 Import('env')
12 12
13 env.Prepend(CPPDEFINES=['XP_UNIX']) 13 env.Prepend(CPPDEFINES=['XP_UNIX'])
14 env.Replace(
15 TEST_DIR='${SOURCE_ROOT}/ppapi/native_client/tests/ppapi_browser/crash')
16 14
17 crash_types = ['via_check_failure', 15 crash_types = ['via_check_failure',
18 'via_exit_call', 16 'via_exit_call',
19 'in_callback', 17 'in_callback',
20 'off_main_thread', 18 'off_main_thread',
21 'ppapi_off_main_thread'] 19 'ppapi_off_main_thread']
22 published_files = [] 20 published_files = []
23 21
24 nmfs = []
25 for crash_type in crash_types: 22 for crash_type in crash_types:
26 nexe = 'ppapi_crash_%s_%s' % (crash_type, env.get('TARGET_FULLARCH')) 23 nexe = 'ppapi_crash_%s_%s' % (crash_type, env.get('TARGET_FULLARCH'))
27 env.Alias('ppapi_crash_%s${PROGSUFFIX}' % crash_type, 24 env.Alias('ppapi_crash_%s${PROGSUFFIX}' % crash_type,
28 ['$STAGING_DIR/%s${PROGSUFFIX}' % nexe]) 25 ['$STAGING_DIR/%s${PROGSUFFIX}' % nexe])
29 26
30 env.ComponentProgram( 27 env.ComponentProgram(
31 nexe, 28 nexe,
32 ['ppapi_crash_%s.cc' % crash_type], 29 ['ppapi_crash_%s.cc' % crash_type],
33 EXTRA_LIBS=['${PPAPI_LIBS}', 30 EXTRA_LIBS=['${PPAPI_LIBS}',
34 'ppapi_test_lib', 31 'ppapi_test_lib',
35 'platform', 32 'platform',
36 'pthread', 33 'pthread',
37 'gio']) 34 'gio'])
38 35
39 # TODO(polina): follow ppapi_browser/bad nacl.scons to publish html only once 36 # TODO(polina): follow ppapi_browser/bad nacl.scons to publish html only once
40 # and to associate all nexes and nmf files with one target that can be 37 # and to associate all nexes and nmf files with one target that can be
41 # referenced in tests/nacl.scons. 38 # referenced in tests/nacl.scons.
42 nmfs.append('${TEST_DIR}/ppapi_crash_%s.nmf' % crash_type)
43 env.Publish(nexe, 'run', 39 env.Publish(nexe, 'run',
44 ['ppapi_crash.html']) 40 ['ppapi_crash.html',
41 'ppapi_crash_%s.nmf' % crash_type ])
45 42
46 published_files.extend(env.ExtractPublishedFiles(nexe)) 43 published_files.extend(env.ExtractPublishedFiles(nexe))
47 44
48 node = env.PPAPIBrowserTester('ppapi_crash_browser_test.out', 45 node = env.PPAPIBrowserTester('ppapi_crash_browser_test.out',
49 url='ppapi_crash.html', 46 url='ppapi_crash.html',
50 nmf=nmfs,
51 files=published_files) 47 files=published_files)
52 48
53 env.AddNodeToTestSuite(node, 49 env.AddNodeToTestSuite(node,
54 ['chrome_browser_tests'], 50 ['chrome_browser_tests'],
55 'run_ppapi_crash_browser_test', 51 'run_ppapi_crash_browser_test',
56 is_broken=env.PPAPIBrowserTesterIsBroken() or 52 is_broken=env.PPAPIBrowserTesterIsBroken())
57 env.Bit('nacl_glibc'))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698