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 = [ |
| 18 | "gn:default_deps", |
| 19 | "gn:gtest_main", |
Primiano Tucci | c4c063b | 2020-01-27 09:34:46 +0000 | [diff] [blame] | 20 | "src/tracing/test:client_api_integrationtests", |
Primiano Tucci | 02c1176 | 2019-08-30 00:57:59 +0200 | [diff] [blame] | 21 | ] |
| 22 | |
Primiano Tucci | a7f5a8e | 2021-01-02 17:10:50 +0100 | [diff] [blame] | 23 | if (enable_perfetto_traced_probes) { |
| 24 | # enable_perfetto_traced_probes implies enable_perfetto_platform_services. |
Primiano Tucci | 02c1176 | 2019-08-30 00:57:59 +0200 | [diff] [blame] | 25 | perfetto_integrationtests_targets += [ |
| 26 | "src/traced/probes/ftrace:integrationtests", |
| 27 | "test:end_to_end_integrationtests", |
| 28 | ] |
| 29 | } |
| 30 | |
| 31 | if (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 Tucci | 80bbdd8 | 2019-08-30 07:54:04 +0200 | [diff] [blame] | 38 | # TODO(lalitm): looks like they don't work on standalone Android either because |
| 39 | # run_android_test doesn't push the test data. |
| 40 | if (enable_perfetto_trace_processor && perfetto_build_standalone && |
| 41 | !is_android) { |
Primiano Tucci | 02c1176 | 2019-08-30 00:57:59 +0200 | [diff] [blame] | 42 | perfetto_integrationtests_targets += |
| 43 | [ "src/trace_processor:integrationtests" ] |
| 44 | } |