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  "gn:default_deps",
19  "gn:gtest_main",
20  "src/tracing/test:client_api_integrationtests",
21]
22
23if (enable_perfetto_traced_probes) {
24  # enable_perfetto_traced_probes implies enable_perfetto_platform_services.
25  perfetto_integrationtests_targets += [
26    "src/traced/probes/ftrace:integrationtests",
27    "test:end_to_end_integrationtests",
28  ]
29}
30
31if (enable_perfetto_heapprofd) {
32  perfetto_integrationtests_targets +=
33      [ "src/profiling/memory:end_to_end_tests" ]
34}
35
36# This test requires extra data files that are not easily available in Android
37# builds.
38# TODO(lalitm): looks like they don't work on standalone Android either because
39# run_android_test doesn't push the test data.
40if (enable_perfetto_trace_processor && perfetto_build_standalone &&
41    !is_android) {
42  perfetto_integrationtests_targets +=
43      [ "src/trace_processor:integrationtests" ]
44}
45