blob: 7dfdece2b3e4275c0fc4fd73ec005b1a98230c64 [file] [log] [blame]
Primiano Tucci02c11762019-08-30 00:57:59 +02001# 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 = [
Primiano Tuccic4c063b2020-01-27 09:34:46 +000018 "src/tracing/test:client_api_integrationtests",
Daniele Di Proietto5a86c7e2023-01-11 15:54:46 +000019 "src/shared_lib/test:integrationtests",
Primiano Tucci02c11762019-08-30 00:57:59 +020020]
21
Mohit Saini14e55792022-09-12 01:35:04 +010022if (enable_perfetto_ipc && enable_perfetto_system_consumer) {
Daniele Di Proietto5a86c7e2023-01-11 15:54:46 +000023 perfetto_integrationtests_targets += [
24 "src/tracing/test:tracing_integration_test",
25 "src/tracing:integrationtests",
26 ]
Hector Dearmanca273502022-05-12 08:46:34 +010027}
28
Primiano Tuccia7f5a8e2021-01-02 17:10:50 +010029if (enable_perfetto_traced_probes) {
30 # enable_perfetto_traced_probes implies enable_perfetto_platform_services.
Primiano Tucci02c11762019-08-30 00:57:59 +020031 perfetto_integrationtests_targets += [
32 "src/traced/probes/ftrace:integrationtests",
Daniele Di Proietto55674432023-06-02 10:46:53 +000033 "test:perfetto_end_to_end_integrationtests",
Primiano Tucci02c11762019-08-30 00:57:59 +020034 ]
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.
Primiano Tucci80bbdd82019-08-30 07:54:04 +020044# 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) {
Primiano Tucci02c11762019-08-30 00:57:59 +020048 perfetto_integrationtests_targets +=
49 [ "src/trace_processor:integrationtests" ]
Nick Chameyev3d750ce2024-07-02 16:59:39 +010050 perfetto_integrationtests_targets += [ "src/traceconv:integrationtests" ]
Primiano Tucci02c11762019-08-30 00:57:59 +020051}
Chinglin Yu5682f422023-10-13 14:28:04 +080052
Aaron Vaage05e2f332024-02-22 23:43:19 +000053# 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}
Aaron Vaage07130572024-01-16 21:02:52 +000058
Chinglin Yu5682f422023-10-13 14:28:04 +080059if (enable_perfetto_traced_relay) {
60 perfetto_integrationtests_targets += [ "src/traced_relay:integrationtests" ]
61}