| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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("//build/config/features.gni") | 5 import("//build/config/features.gni") |
| 6 import("//build/config/nacl/config.gni") | 6 import("//build/config/nacl/config.gni") |
| 7 import("//ppapi/native_client/nacl_test_data.gni") | 7 import("//ppapi/native_client/nacl_test_data.gni") |
| 8 | 8 |
| 9 group("nacl") { | 9 group("nacl") { |
| 10 newlib = "//build/toolchain/nacl:clang_newlib_${target_cpu}" | 10 newlib = "//build/toolchain/nacl:clang_newlib_${target_cpu}" |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 "//native_client/src/shared/platform", | 142 "//native_client/src/shared/platform", |
| 143 "//ppapi/native_client:ppapi_lib", | 143 "//ppapi/native_client:ppapi_lib", |
| 144 ] | 144 ] |
| 145 } | 145 } |
| 146 | 146 |
| 147 nacl_test_data("irt_manifest_file") { | 147 nacl_test_data("irt_manifest_file") { |
| 148 sources = [ | 148 sources = [ |
| 149 "manifest_file/irt_manifest_file_test.cc", | 149 "manifest_file/irt_manifest_file_test.cc", |
| 150 ] | 150 ] |
| 151 deps = [ | 151 deps = [ |
| 152 "//ppapi:ppapi_cpp_lib", | 152 "//ppapi/cpp", |
| 153 ] | 153 ] |
| 154 nmfflags = [ | 154 nmfflags = [ |
| 155 "-xtest_file:test_file.txt", | 155 "-xtest_file:test_file.txt", |
| 156 "-xnmf says hello world:test_file.txt", | 156 "-xnmf says hello world:test_file.txt", |
| 157 | 157 |
| 158 # There is no dummy_test_file.txt file intentionally. This is just for | 158 # There is no dummy_test_file.txt file intentionally. This is just for |
| 159 # a test case where there is a manifest entry, but no actual file. | 159 # a test case where there is a manifest entry, but no actual file. |
| 160 "-xdummy_test_file:dummy_test_file.txt", | 160 "-xdummy_test_file:dummy_test_file.txt", |
| 161 ] | 161 ] |
| 162 destination_dir = "nacl_test_data" | 162 destination_dir = "nacl_test_data" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 176 } | 176 } |
| 177 } | 177 } |
| 178 | 178 |
| 179 if (is_nacl && !is_nacl_nonsfi) { | 179 if (is_nacl && !is_nacl_nonsfi) { |
| 180 nacl_test_data("simple_test") { | 180 nacl_test_data("simple_test") { |
| 181 output_name = "simple" | 181 output_name = "simple" |
| 182 sources = [ | 182 sources = [ |
| 183 "simple.cc", | 183 "simple.cc", |
| 184 ] | 184 ] |
| 185 deps = [ | 185 deps = [ |
| 186 "//ppapi:ppapi_cpp_lib", | 186 "//ppapi/cpp", |
| 187 ] | 187 ] |
| 188 destination_dir = "nacl_test_data" | 188 destination_dir = "nacl_test_data" |
| 189 test_files = [ "nacl_load_test.html" ] | 189 test_files = [ "nacl_load_test.html" ] |
| 190 } | 190 } |
| 191 | 191 |
| 192 nacl_test_data("exit_status_test") { | 192 nacl_test_data("exit_status_test") { |
| 193 output_name = "pm_exit_status_test" | 193 output_name = "pm_exit_status_test" |
| 194 sources = [ | 194 sources = [ |
| 195 "exit_status/pm_exit_status_test.cc", | 195 "exit_status/pm_exit_status_test.cc", |
| 196 ] | 196 ] |
| 197 deps = [ | 197 deps = [ |
| 198 "//ppapi:ppapi_cpp_lib", | 198 "//ppapi/cpp", |
| 199 ] | 199 ] |
| 200 destination_dir = "nacl_test_data" | 200 destination_dir = "nacl_test_data" |
| 201 test_files = [ "exit_status/pm_exit_status_test.html" ] | 201 test_files = [ "exit_status/pm_exit_status_test.html" ] |
| 202 } | 202 } |
| 203 | 203 |
| 204 nacl_test_data("extension_validation_cache") { | 204 nacl_test_data("extension_validation_cache") { |
| 205 sources = [ | 205 sources = [ |
| 206 "simple.cc", | 206 "simple.cc", |
| 207 ] | 207 ] |
| 208 deps = [ | 208 deps = [ |
| 209 "//ppapi:ppapi_cpp_lib", | 209 "//ppapi/cpp", |
| 210 ] | 210 ] |
| 211 | 211 |
| 212 # Need a new directory to not clash with with other extension | 212 # Need a new directory to not clash with with other extension |
| 213 # tests's files (e.g., manifest.json). | 213 # tests's files (e.g., manifest.json). |
| 214 destination_dir = "nacl_test_data/extension_vcache_test" | 214 destination_dir = "nacl_test_data/extension_vcache_test" |
| 215 test_files = [ | 215 test_files = [ |
| 216 # TODO(ncbray) move into chrome/test/data/nacl when all tests are | 216 # TODO(ncbray) move into chrome/test/data/nacl when all tests are |
| 217 # converted. | 217 # converted. |
| 218 "//ppapi/native_client/tools/browser_tester/browserdata/nacltest.js", | 218 "//ppapi/native_client/tools/browser_tester/browserdata/nacltest.js", |
| 219 "extension_validation_cache/extension_validation_cache.html", | 219 "extension_validation_cache/extension_validation_cache.html", |
| 220 "extension_validation_cache/extension_validation_cache.js", | 220 "extension_validation_cache/extension_validation_cache.js", |
| 221 | 221 |
| 222 # Turns the test data directory into an extension. | 222 # Turns the test data directory into an extension. |
| 223 # Use a different nexe_destination_dir to isolate the files. | 223 # Use a different nexe_destination_dir to isolate the files. |
| 224 # Note that the .nexe names are embedded in this file. | 224 # Note that the .nexe names are embedded in this file. |
| 225 "extension_validation_cache/manifest.json", | 225 "extension_validation_cache/manifest.json", |
| 226 "load_util.js", | 226 "load_util.js", |
| 227 "simple_cc.js", | 227 "simple_cc.js", |
| 228 ] | 228 ] |
| 229 } | 229 } |
| 230 | 230 |
| 231 nacl_test_data("sysconf_nprocessors_onln_test") { | 231 nacl_test_data("sysconf_nprocessors_onln_test") { |
| 232 sources = [ | 232 sources = [ |
| 233 "sysconf_nprocessors_onln/sysconf_nprocessors_onln_test.cc", | 233 "sysconf_nprocessors_onln/sysconf_nprocessors_onln_test.cc", |
| 234 ] | 234 ] |
| 235 deps = [ | 235 deps = [ |
| 236 "//ppapi:ppapi_cpp_lib", | 236 "//ppapi/cpp", |
| 237 ] | 237 ] |
| 238 destination_dir = "nacl_test_data" | 238 destination_dir = "nacl_test_data" |
| 239 test_files = | 239 test_files = |
| 240 [ "sysconf_nprocessors_onln/sysconf_nprocessors_onln_test.html" ] | 240 [ "sysconf_nprocessors_onln/sysconf_nprocessors_onln_test.html" ] |
| 241 } | 241 } |
| 242 | 242 |
| 243 nacl_test_data("ppapi_progress_events") { | 243 nacl_test_data("ppapi_progress_events") { |
| 244 sources = [ | 244 sources = [ |
| 245 "progress_events/ppapi_progress_events.cc", | 245 "progress_events/ppapi_progress_events.cc", |
| 246 ] | 246 ] |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 366 "extension_mime_handler/manifest.json", | 366 "extension_mime_handler/manifest.json", |
| 367 ] | 367 ] |
| 368 } | 368 } |
| 369 | 369 |
| 370 nacl_test_data("pnacl_debug_url_test") { | 370 nacl_test_data("pnacl_debug_url_test") { |
| 371 output_name = "pnacl_debug_url" | 371 output_name = "pnacl_debug_url" |
| 372 sources = [ | 372 sources = [ |
| 373 "simple.cc", | 373 "simple.cc", |
| 374 ] | 374 ] |
| 375 deps = [ | 375 deps = [ |
| 376 "//ppapi:ppapi_cpp_lib", | 376 "//ppapi/cpp", |
| 377 ] | 377 ] |
| 378 generate_nmf = false | 378 generate_nmf = false |
| 379 if (current_cpu == "pnacl") { | 379 if (current_cpu == "pnacl") { |
| 380 debug_pexe = true | 380 debug_pexe = true |
| 381 } | 381 } |
| 382 destination_dir = "nacl_test_data" | 382 destination_dir = "nacl_test_data" |
| 383 test_files = [ | 383 test_files = [ |
| 384 "pnacl_debug_url/pnacl_debug_url.html", | 384 "pnacl_debug_url/pnacl_debug_url.html", |
| 385 "pnacl_debug_url/pnacl_has_debug.nmf", | 385 "pnacl_debug_url/pnacl_has_debug.nmf", |
| 386 "pnacl_debug_url/pnacl_has_debug_flag_off.nmf", | 386 "pnacl_debug_url/pnacl_has_debug_flag_off.nmf", |
| 387 "pnacl_debug_url/pnacl_no_debug.nmf", | 387 "pnacl_debug_url/pnacl_no_debug.nmf", |
| 388 ] | 388 ] |
| 389 } | 389 } |
| 390 | 390 |
| 391 nacl_test_data("pnacl_error_handling_test") { | 391 nacl_test_data("pnacl_error_handling_test") { |
| 392 output_name = "pnacl_errors" | 392 output_name = "pnacl_errors" |
| 393 sources = [ | 393 sources = [ |
| 394 "simple.cc", | 394 "simple.cc", |
| 395 ] | 395 ] |
| 396 deps = [ | 396 deps = [ |
| 397 "//ppapi:ppapi_cpp_lib", | 397 "//ppapi/cpp", |
| 398 ] | 398 ] |
| 399 generate_nmf = false | 399 generate_nmf = false |
| 400 if (current_cpu == "pnacl") { | 400 if (current_cpu == "pnacl") { |
| 401 nonstable_pexe = true | 401 nonstable_pexe = true |
| 402 } | 402 } |
| 403 destination_dir = "nacl_test_data" | 403 destination_dir = "nacl_test_data" |
| 404 test_files = [ | 404 test_files = [ |
| 405 "pnacl_error_handling/pnacl_error_handling.html", | 405 "pnacl_error_handling/pnacl_error_handling.html", |
| 406 "pnacl_error_handling/bad.pexe", | 406 "pnacl_error_handling/bad.pexe", |
| 407 "pnacl_error_handling/pnacl_bad_pexe.nmf", | 407 "pnacl_error_handling/pnacl_bad_pexe.nmf", |
| (...skipping 12 matching lines...) Expand all Loading... |
| 420 "${root_build_dir}/nacl_test_data/${nacl_toolchain_variant}/{{source_file_
part}}", | 420 "${root_build_dir}/nacl_test_data/${nacl_toolchain_variant}/{{source_file_
part}}", |
| 421 ] | 421 ] |
| 422 } | 422 } |
| 423 | 423 |
| 424 nacl_test_data("pnacl_options_test") { | 424 nacl_test_data("pnacl_options_test") { |
| 425 output_name = "pnacl_options" | 425 output_name = "pnacl_options" |
| 426 sources = [ | 426 sources = [ |
| 427 "simple.cc", | 427 "simple.cc", |
| 428 ] | 428 ] |
| 429 deps = [ | 429 deps = [ |
| 430 "//ppapi:ppapi_cpp_lib", | 430 "//ppapi/cpp", |
| 431 ] | 431 ] |
| 432 generate_nmf = false | 432 generate_nmf = false |
| 433 destination_dir = "nacl_test_data" | 433 destination_dir = "nacl_test_data" |
| 434 test_files = [ | 434 test_files = [ |
| 435 "pnacl_nmf_options/pnacl_options.html", | 435 "pnacl_nmf_options/pnacl_options.html", |
| 436 "pnacl_nmf_options/pnacl_o_0.nmf", | 436 "pnacl_nmf_options/pnacl_o_0.nmf", |
| 437 "pnacl_nmf_options/pnacl_o_2.nmf", | 437 "pnacl_nmf_options/pnacl_o_2.nmf", |
| 438 "pnacl_nmf_options/pnacl_o_large.nmf", | 438 "pnacl_nmf_options/pnacl_o_large.nmf", |
| 439 ] | 439 ] |
| 440 } | 440 } |
| 441 | 441 |
| 442 nacl_test_data("pnacl_url_loader_test") { | 442 nacl_test_data("pnacl_url_loader_test") { |
| 443 output_name = "pnacl_url_loader" | 443 output_name = "pnacl_url_loader" |
| 444 sources = [ | 444 sources = [ |
| 445 "pnacl_url_loader/pnacl_url_loader.cc", | 445 "pnacl_url_loader/pnacl_url_loader.cc", |
| 446 ] | 446 ] |
| 447 deps = [ | 447 deps = [ |
| 448 "//ppapi:ppapi_cpp_lib", | 448 "//ppapi/cpp", |
| 449 ] | 449 ] |
| 450 generate_nmf = true | 450 generate_nmf = true |
| 451 destination_dir = "nacl_test_data" | 451 destination_dir = "nacl_test_data" |
| 452 test_files = [ "pnacl_url_loader/pnacl_url_loader.html" ] | 452 test_files = [ "pnacl_url_loader/pnacl_url_loader.html" ] |
| 453 } | 453 } |
| 454 | 454 |
| 455 nacl_test_data("pnacl_dyncode_syscall_disabled_test") { | 455 nacl_test_data("pnacl_dyncode_syscall_disabled_test") { |
| 456 output_name = "pnacl_dyncode_syscall_disabled" | 456 output_name = "pnacl_dyncode_syscall_disabled" |
| 457 sources = [ | 457 sources = [ |
| 458 "pnacl_dyncode_syscall_disabled/pnacl_dyncode_syscall_disabled.cc", | 458 "pnacl_dyncode_syscall_disabled/pnacl_dyncode_syscall_disabled.cc", |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 605 "nonsfi/libc_free.nmf", | 605 "nonsfi/libc_free.nmf", |
| 606 ] | 606 ] |
| 607 outputs = [ | 607 outputs = [ |
| 608 "${root_build_dir}/nacl_test_data/libc-free/{{source_file_part}}", | 608 "${root_build_dir}/nacl_test_data/libc-free/{{source_file_part}}", |
| 609 ] | 609 ] |
| 610 deps = [ | 610 deps = [ |
| 611 ":nonsfi_libc_free_nexe", | 611 ":nonsfi_libc_free_nexe", |
| 612 ] | 612 ] |
| 613 } | 613 } |
| 614 } | 614 } |
| OLD | NEW |