Primiano Tucci | 02c1176 | 2019-08-30 00:57:59 +0200 | [diff] [blame] | 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 | |
| 15 | import("perfetto.gni") |
| 16 | |
| 17 | perfetto_integrationtests_targets = [ |
Primiano Tucci | c4c063b | 2020-01-27 09:34:46 +0000 | [diff] [blame] | 18 | "src/tracing/test:client_api_integrationtests", |
Daniele Di Proietto | 5a86c7e | 2023-01-11 15:54:46 +0000 | [diff] [blame] | 19 | "src/shared_lib/test:integrationtests", |
Primiano Tucci | 02c1176 | 2019-08-30 00:57:59 +0200 | [diff] [blame] | 20 | ] |
| 21 | |
Mohit Saini | 14e5579 | 2022-09-12 01:35:04 +0100 | [diff] [blame] | 22 | if (enable_perfetto_ipc && enable_perfetto_system_consumer) { |
Daniele Di Proietto | 5a86c7e | 2023-01-11 15:54:46 +0000 | [diff] [blame] | 23 | perfetto_integrationtests_targets += [ |
| 24 | "src/tracing/test:tracing_integration_test", |
| 25 | "src/tracing:integrationtests", |
| 26 | ] |
Hector Dearman | ca27350 | 2022-05-12 08:46:34 +0100 | [diff] [blame] | 27 | } |
| 28 | |
Primiano Tucci | a7f5a8e | 2021-01-02 17:10:50 +0100 | [diff] [blame] | 29 | if (enable_perfetto_traced_probes) { |
| 30 | # enable_perfetto_traced_probes implies enable_perfetto_platform_services. |
Primiano Tucci | 02c1176 | 2019-08-30 00:57:59 +0200 | [diff] [blame] | 31 | perfetto_integrationtests_targets += [ |
| 32 | "src/traced/probes/ftrace:integrationtests", |
Daniele Di Proietto | 5567443 | 2023-06-02 10:46:53 +0000 | [diff] [blame] | 33 | "test:perfetto_end_to_end_integrationtests", |
Primiano Tucci | 02c1176 | 2019-08-30 00:57:59 +0200 | [diff] [blame] | 34 | ] |
| 35 | } |
| 36 | |
| 37 | if (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 Tucci | 80bbdd8 | 2019-08-30 07:54:04 +0200 | [diff] [blame] | 44 | # TODO(lalitm): looks like they don't work on standalone Android either because |
| 45 | # run_android_test doesn't push the test data. |
| 46 | if (enable_perfetto_trace_processor && perfetto_build_standalone && |
| 47 | !is_android) { |
Primiano Tucci | 02c1176 | 2019-08-30 00:57:59 +0200 | [diff] [blame] | 48 | perfetto_integrationtests_targets += |
| 49 | [ "src/trace_processor:integrationtests" ] |
Nick Chameyev | 3d750ce | 2024-07-02 16:59:39 +0100 | [diff] [blame] | 50 | perfetto_integrationtests_targets += [ "src/traceconv:integrationtests" ] |
Primiano Tucci | 02c1176 | 2019-08-30 00:57:59 +0200 | [diff] [blame] | 51 | } |
Chinglin Yu | 5682f42 | 2023-10-13 14:28:04 +0800 | [diff] [blame] | 52 | |
Aaron Vaage | 05e2f33 | 2024-02-22 23:43:19 +0000 | [diff] [blame] | 53 | # This test requires traces that are not available on Android builds. |
| 54 | if (perfetto_build_standalone && !is_android) { |
| 55 | perfetto_integrationtests_targets += |
| 56 | [ "src/trace_redaction:integrationtests" ] |
| 57 | } |
Aaron Vaage | 0713057 | 2024-01-16 21:02:52 +0000 | [diff] [blame] | 58 | |
Chinglin Yu | 5682f42 | 2023-10-13 14:28:04 +0800 | [diff] [blame] | 59 | if (enable_perfetto_traced_relay) { |
| 60 | perfetto_integrationtests_targets += [ "src/traced_relay:integrationtests" ] |
| 61 | } |