1# Copyright 2014 The Chromium Authors 2# Use of this source code is governed by a BSD-style license that can be 3# found in the LICENSE file. 4 5import("//build/config/python.gni") 6 7# Used by linux-gcc-rel to ensure gcc doesn't choke on clang-only flags. 8if (!is_clang) { 9 executable("empty_main") { 10 sources = [ "empty_main.cc" ] 11 12 # The bot should only check that an empty file builds fine with gcc. 13 # There's no need to check that libc++ builds with a (possibly very old) 14 # version of gcc. 15 # No need to remove "//build/config/compiler:runtime_library" from configs 16 # (to remove its subconfig "//build/config/c++:runtime_library") since 17 # empty_main.cc does not include any headers. 18 no_default_deps = true 19 } 20} 21 22# Targets needed for isolate script to execute. 23group("test_scripts_shared") { 24 data_deps = [ 25 # Used for reporting test results to RDB. 26 "//build/util:test_results", 27 ] 28 29 data = [ 30 "//testing/test_env.py", 31 "//testing/xvfb.py", 32 "//testing/scripts/common.py", 33 ] 34} 35 36group("run_perf_test") { 37 data = [ 38 "//testing/scripts/common.py", 39 "//testing/scripts/run_performance_tests.py", 40 "//tools/perf/generate_legacy_perf_dashboard_json.py", 41 "//tools/perf/core/__init__.py", 42 "//tools/perf/core/path_util.py", 43 "//tools/perf/core/results_merger.py", 44 ] 45 46 data_deps = [ 47 ":test_scripts_shared", 48 "//third_party/catapult/tracing:convert_chart_json", 49 ] 50 51 if (is_android) { 52 # Required when running with bundles (to run "bundletool"). 53 data_deps += [ "//third_party/jdk:java_data" ] 54 } 55} 56 57group("pytype_dependencies") { 58 data = [ 59 "//build/util/lib/results/", 60 "//testing/pytype_common/", 61 ] 62} 63 64group("testing_pytype") { 65 data = [ 66 "//testing/run_pytype.py", 67 68 "//testing/unexpected_passes_common/", 69 "//testing/flake_suppressor_common/", 70 "//third_party/catapult/third_party/typ/", 71 ] 72 73 data_deps = [ ":pytype_dependencies" ] 74} 75 76group("fuchsia_pytype") { 77 testonly = true 78 data = [ 79 "//build/fuchsia/test/", 80 "//build/util/lib/common/", 81 ] 82 data_deps = [ ":pytype_dependencies" ] 83} 84 85python_library("run_isolated_script_test") { 86 testonly = true 87 pydeps_file = "//testing/scripts/run_isolated_script_test.pydeps" 88 data = [ "//.vpython3" ] 89} 90