From 1e24d38cd9daa66a350f96c7955008e36928c660 Mon Sep 17 00:00:00 2001 From: Charalampos Stratakis Date: Tue, 6 May 2025 03:12:09 +0200 Subject: [PATCH] Add perf to the testing BuildRequires Perf profiling showing the Python functions is only supported on x86_64 and aarch64 at the moment. Adding perf as a BuildRequires allows tests that utilize the perf binary to run. --- python3.14.spec | 5 +++++ tests/tests.yml | 1 + 2 files changed, 6 insertions(+) diff --git a/python3.14.spec b/python3.14.spec index 4879a6c..4dd89cb 100644 --- a/python3.14.spec +++ b/python3.14.spec @@ -282,6 +282,11 @@ BuildRequires: gcc-c++ BuildRequires: gdb BuildRequires: glibc-all-langpacks BuildRequires: tzdata + +# Perf support is only available on x86_64 and aarch64 right now +%ifarch x86_64 aarch64 +BuildRequires: perf +%endif %endif %if %{with jit} diff --git a/tests/tests.yml b/tests/tests.yml index 7d07cc2..4fc8655 100644 --- a/tests/tests.yml +++ b/tests/tests.yml @@ -67,3 +67,4 @@ - glibc-all-langpacks # for locale tests - marshalparser # for testing compatibility (magic numbers) with marshalparser - rpm # for debugging + - perf # for test_perf_profiler