blob: 7527a55d42122bc4625397b073cf33ddd79d95f9 [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 = [
18 "gn:default_deps",
19 "gn:gtest_main",
Primiano Tuccic4c063b2020-01-27 09:34:46 +000020 "src/tracing/test:client_api_integrationtests",
Primiano Tucci02c11762019-08-30 00:57:59 +020021]
22
Primiano Tuccia7f5a8e2021-01-02 17:10:50 +010023if (enable_perfetto_traced_probes) {
24 # enable_perfetto_traced_probes implies enable_perfetto_platform_services.
Primiano Tucci02c11762019-08-30 00:57:59 +020025 perfetto_integrationtests_targets += [
26 "src/traced/probes/ftrace:integrationtests",
Primiano Tucci401a4732022-01-19 00:26:49 +000027 "test:integrationtests",
Primiano Tucci02c11762019-08-30 00:57:59 +020028 ]
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.
Primiano Tucci80bbdd82019-08-30 07:54:04 +020038# 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) {
Primiano Tucci02c11762019-08-30 00:57:59 +020042 perfetto_integrationtests_targets +=
43 [ "src/trace_processor:integrationtests" ]
44}