OLD | NEW |
1 # Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2010 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 Import('env') | 5 Import('env') |
6 | 6 |
7 ppapi_tests_target = 'ppapi_tests_%s.nexe' % env.get('TARGET_FULLARCH') | 7 ppapi_tests_target = 'ppapi_tests_%s.nexe' % env.get('TARGET_FULLARCH') |
8 | 8 |
| 9 ppapi_tests_sources = [ |
| 10 # Common test files |
| 11 'test_case.cc', |
| 12 'test_utils.cc', |
| 13 'testing_instance.cc', |
| 14 |
| 15 # Compile-time tests |
| 16 'test_c_includes.c', |
| 17 'test_cpp_includes.cc', |
| 18 'test_struct_sizes.c', |
| 19 |
| 20 # Test cases (PLEASE KEEP THIS SECTION IN ALPHABETICAL ORDER) |
| 21 # Add/uncomment PPAPI interfaces below when they get proxied. |
| 22 #'test_buffer.cc', |
| 23 #'test_char_set.cc', |
| 24 #'test_directory_reader.cc', |
| 25 #'test_file_io.cc', |
| 26 #'test_file_ref.cc', |
| 27 #'test_file_system.cc', |
| 28 'test_graphics_2d.cc', |
| 29 'test_image_data.cc', |
| 30 'test_paint_aggregator.cc', |
| 31 'test_post_message.cc', |
| 32 'test_scrollbar.cc', |
| 33 #'test_transport.cc', |
| 34 #'test_uma.cc', |
| 35 # Activating the URL loader test requires a test httpd that |
| 36 # understands HTTP POST, which our current httpd.py doesn't. |
| 37 # It also requires deactivating the tests that use FileIOTrusted |
| 38 # when running in NaCl. |
| 39 #'test_url_loader.cc', |
| 40 #'test_url_util.cc', |
| 41 #'test_video_decoder.cc', |
| 42 |
| 43 # Deprecated test cases. |
| 44 'test_instance_deprecated.cc', |
| 45 # Var_deprecated fails in TestPassReference, and we probably won't |
| 46 # fix it. |
| 47 #'test_var_deprecated.cc' |
| 48 ] |
| 49 |
9 ppapi_tests_nexe = env.ComponentProgram(ppapi_tests_target, | 50 ppapi_tests_nexe = env.ComponentProgram(ppapi_tests_target, |
10 [Glob('*.cc')], | 51 ppapi_tests_sources, |
11 EXTRA_LIBS=['ppruntime', | 52 EXTRA_LIBS=['${PPAPI_LIBS}', |
12 'ppapi_cpp', | 53 'ppapi_cpp' |
13 'platform', | 54 ]) |
14 'imc', | |
15 'gio', | |
16 'pthread', | |
17 'srpc']) | |
18 | 55 |
19 # Note that the html is required to run this program. | 56 # Note that the html is required to run this program. |
20 # To run, load page with mode=nacl search string: | 57 # To run, load page with mode=nacl search string: |
21 # http://localhost:5103/scons-out/nacl-x86-32/staging/test_case.html?mode=nacl | 58 # http://localhost:5103/scons-out/nacl-x86-32/staging/test_case.html?mode=nacl |
22 # http://localhost:5103/scons-out/nacl-x86-64/staging/test_case.html?mode=nacl | 59 # http://localhost:5103/scons-out/nacl-x86-64/staging/test_case.html?mode=nacl |
23 env.Publish(ppapi_tests_nexe, 'run', | 60 |
24 ['test_case.html', | 61 env.Publish(ppapi_tests_target, 'run', |
| 62 ['test_url_loader_data/*'], subdir='test_url_loader_data') |
| 63 |
| 64 env.Publish(ppapi_tests_target, 'run', |
| 65 [ppapi_tests_nexe, |
| 66 'test_case.html', |
25 'test_case.nmf', | 67 'test_case.nmf', |
26 'test_image_data', | 68 'test_image_data', |
27 'test_page.css', | 69 'test_page.css']) |
28 'test_url_loader_data']) | |
OLD | NEW |