1# Copyright (C) 2019 The Android Open Source Project 2# 3# Licensed under the Apache License, Version 2.0 (the "License"); 4# you may not use this file except in compliance with the License. 5# You may obtain a copy of the License at 6# 7# http://www.apache.org/licenses/LICENSE-2.0 8# 9# Unless required by applicable law or agreed to in writing, software 10# distributed under the License is distributed on an "AS IS" BASIS, 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12# See the License for the specific language governing permissions and 13# limitations under the License. 14 15import("perfetto.gni") 16 17perfetto_integrationtests_targets = [ 18 "src/tracing/test:client_api_integrationtests", 19 "src/shared_lib/test:integrationtests", 20] 21 22if (enable_perfetto_ipc && enable_perfetto_system_consumer) { 23 perfetto_integrationtests_targets += [ 24 "src/tracing/test:tracing_integration_test", 25 "src/tracing:integrationtests", 26 ] 27} 28 29if (enable_perfetto_traced_probes) { 30 # enable_perfetto_traced_probes implies enable_perfetto_platform_services. 31 perfetto_integrationtests_targets += [ 32 "src/traced/probes/ftrace:integrationtests", 33 "test:perfetto_end_to_end_integrationtests", 34 ] 35} 36 37if (enable_perfetto_heapprofd) { 38 perfetto_integrationtests_targets += 39 [ "src/profiling/memory:end_to_end_tests" ] 40} 41 42# This test requires extra data files that are not easily available in Android 43# builds. 44# TODO(lalitm): looks like they don't work on standalone Android either because 45# run_android_test doesn't push the test data. 46if (enable_perfetto_trace_processor && perfetto_build_standalone && 47 !is_android) { 48 perfetto_integrationtests_targets += 49 [ "src/trace_processor:integrationtests" ] 50 perfetto_integrationtests_targets += [ "src/traceconv:integrationtests" ] 51} 52 53# This test requires traces that are not available on Android builds. 54if (perfetto_build_standalone && !is_android) { 55 perfetto_integrationtests_targets += 56 [ "src/trace_redaction:integrationtests" ] 57} 58 59if (enable_perfetto_traced_relay) { 60 perfetto_integrationtests_targets += [ "src/traced_relay:integrationtests" ] 61} 62