OLD | NEW |
(Empty) | |
| 1 # -*- python -*- |
| 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 |
| 4 # found in the LICENSE file. |
| 5 |
| 6 Import('env') |
| 7 import os |
| 8 |
| 9 ppapi_tests_target = 'ppapi_tests_${TARGET_FULLARCH}' |
| 10 |
| 11 ppapi_tests_sources = [ |
| 12 # Common test files |
| 13 'test_case.cc', |
| 14 'test_utils.cc', |
| 15 'testing_instance.cc', |
| 16 |
| 17 # Compile-time tests |
| 18 'test_c_includes.c', |
| 19 'test_cpp_includes.cc', |
| 20 'test_struct_sizes.c', |
| 21 |
| 22 # Test cases (PLEASE KEEP THIS SECTION IN ALPHABETICAL ORDER) |
| 23 # Add/uncomment PPAPI interfaces below when they get proxied. |
| 24 # Not yet proxied. |
| 25 #'test_broker.cc', |
| 26 # Not yet proxied. |
| 27 #'test_buffer.cc', |
| 28 # Not yet proxied. |
| 29 #'test_char_set.cc', |
| 30 'test_cursor_control.cc', |
| 31 # Fails in DeleteDirectoryRecursively. |
| 32 # BUG: http://code.google.com/p/nativeclient/issues/detail?id=2107 |
| 33 #'test_directory_reader.cc', |
| 34 'test_file_io.cc', |
| 35 'test_file_ref.cc', |
| 36 'test_file_system.cc', |
| 37 'test_memory.cc', |
| 38 'test_graphics_2d.cc', |
| 39 'test_image_data.cc', |
| 40 'test_paint_aggregator.cc', |
| 41 # test_post_message.cc relies on synchronous scripting, which is not |
| 42 # available for untrusted tests. |
| 43 # Does not compile under nacl (uses private interface ExecuteScript). |
| 44 #'test_post_message.cc', |
| 45 'test_scrollbar.cc', |
| 46 # Not yet proxied. |
| 47 #'test_transport.cc', |
| 48 # Not yet proxied. |
| 49 #'test_uma.cc', |
| 50 # Activating the URL loader test requires a test httpd that |
| 51 # understands HTTP POST, which our current httpd.py doesn't. |
| 52 # It also requires deactivating the tests that use FileIOTrusted |
| 53 # when running in NaCl. |
| 54 #'test_url_loader.cc', |
| 55 # Does not compile under nacl (uses VarPrivate). |
| 56 #'test_url_util.cc', |
| 57 # Not yet proxied. |
| 58 #'test_video_decoder.cc', |
| 59 'test_var.cc', |
| 60 |
| 61 # Deprecated test cases. |
| 62 #'test_instance_deprecated.cc', |
| 63 # Var_deprecated fails in TestPassReference, and we probably won't |
| 64 # fix it. |
| 65 #'test_var_deprecated.cc' |
| 66 ] |
| 67 |
| 68 # Pepper code has small issues like extra commas at the end of enums. |
| 69 env.FilterOut(CFLAGS=['-pedantic']) |
| 70 env.FilterOut(CCFLAGS=['-pedantic']) |
| 71 |
| 72 # This abstracts away that we are including sources from another |
| 73 # directory. It is also necessary to work around a scons bug that |
| 74 # causes object files to end up in the wrong directory. |
| 75 def MakeComponentObject(src): |
| 76 return env.ComponentObject( |
| 77 os.path.splitext(src)[0], |
| 78 os.path.join('$SOURCE_ROOT/ppapi/tests', src)) |
| 79 |
| 80 ppapi_tests_objs = [MakeComponentObject(src) for src in ppapi_tests_sources] |
| 81 |
| 82 ppapi_tests_nexe = env.ComponentProgram(ppapi_tests_target, |
| 83 ppapi_tests_objs, |
| 84 EXTRA_LIBS=['${PPAPI_LIBS}', |
| 85 'ppapi_cpp' |
| 86 ]) |
| 87 |
| 88 # Note that the html is required to run this program. |
| 89 # To run, load page with mode=nacl search string: |
| 90 # http://localhost:5103/scons-out/nacl-x86-32/staging/test_case.html?mode=nacl |
| 91 # http://localhost:5103/scons-out/nacl-x86-64/staging/test_case.html?mode=nacl |
| 92 |
| 93 # NOTE: This test is also run as part of the pyauto suite. |
| 94 # See pyauto_nacl/nacl.scons. |
| 95 |
| 96 env.Publish(ppapi_tests_target, 'run', |
| 97 ['$SOURCE_ROOT/ppapi/tests/test_url_loader_data/*'], |
| 98 subdir='test_url_loader_data') |
| 99 |
| 100 env.Publish(ppapi_tests_target, 'run', |
| 101 [ppapi_tests_nexe, |
| 102 '$SOURCE_ROOT/ppapi/tests/test_case.html', |
| 103 'test_case.nmf', |
| 104 '$SOURCE_ROOT/ppapi/tests/test_image_data', |
| 105 '$SOURCE_ROOT/ppapi/tests/test_page.css']) |
OLD | NEW |