OLD | NEW |
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 # TODO(robertm): those should not be necessary once we go -std=c99 | 8 # TODO(robertm): those should not be necessary once we go -std=c99 |
9 env.FilterOut(CFLAGS=['-pedantic']) | 9 env.FilterOut(CFLAGS=['-pedantic']) |
10 env.FilterOut(CCFLAGS=['-pedantic']) | 10 env.FilterOut(CCFLAGS=['-pedantic']) |
11 | 11 |
12 progress_events_sources = env.ComponentObject('ppapi_progress_events.cc'), | 12 progress_events_sources = env.ComponentObject('ppapi_progress_events.cc'), |
13 | 13 |
14 progress_events_target = ('ppapi_progress_events_%s.nexe' % | 14 progress_events_target = ('ppapi_progress_events_%s' % |
15 env.get('TARGET_FULLARCH')) | 15 env.get('TARGET_FULLARCH')) |
16 env.ComponentProgram(progress_events_target, | 16 env.ComponentProgram(progress_events_target, |
17 [progress_events_sources], | 17 [progress_events_sources], |
18 EXTRA_LIBS=['${PPAPI_LIBS}', | 18 EXTRA_LIBS=['${PPAPI_LIBS}', |
19 'ppapi_test_lib', | 19 'ppapi_test_lib', |
20 'pthread', | 20 'pthread', |
21 'platform', | 21 'platform', |
22 'gio']) | 22 'gio']) |
23 | 23 |
24 # Needed by other tests using progress events. | 24 # Needed by other tests using progress events. |
25 env.Publish(progress_events_target, 'run', [ | 25 env.Publish(progress_events_target, 'run', [ |
26 'ppapi_progress_events.html', | 26 'ppapi_progress_events.html', |
27 'ppapi_progress_events.nmf', | 27 'ppapi_progress_events.nmf', |
28 ('${SCONSTRUCT_DIR}/tests/ppapi_browser/progress_events/' + | 28 ('${SCONSTRUCT_DIR}/tests/ppapi_browser/progress_events/' + |
29 'ppapi_progress_events.js'), | 29 'ppapi_progress_events.js'), |
30 '${SCONSTRUCT_DIR}/tools/browser_tester/browserdata/nacltest.js', | 30 '${SCONSTRUCT_DIR}/tools/browser_tester/browserdata/nacltest.js', |
31 ]) | 31 ]) |
32 | 32 |
33 node = env.PPAPIBrowserTester( | 33 node = env.PPAPIBrowserTester( |
34 'ppapi_progress_events_browser_test.out', | 34 'ppapi_progress_events_browser_test.out', |
35 url='ppapi_progress_events.html', | 35 url='ppapi_progress_events.html', |
36 files=env.ExtractPublishedFiles(progress_events_target), | 36 files=env.ExtractPublishedFiles(progress_events_target), |
37 args=['--enable_experimental_js']) | 37 args=['--enable_experimental_js']) |
38 | 38 |
39 env.AddNodeToTestSuite(node, | 39 env.AddNodeToTestSuite(node, |
40 ['chrome_browser_tests'], | 40 ['chrome_browser_tests'], |
41 'run_ppapi_progress_events_browser_test', | 41 'run_ppapi_progress_events_browser_test', |
42 is_broken=env.PPAPIBrowserTesterIsBroken()) | 42 is_broken=env.PPAPIBrowserTesterIsBroken()) |
OLD | NEW |