From 458c12412db917579e6bdc3163c0a6f99a4cd755 Mon Sep 17 00:00:00 2001 From: ChenZanYu Date: Thu, 1 Jun 2023 09:17:08 +0000 Subject: [PATCH] Add back the content for running test cases in strace.spec Signed-off-by: ChenZanYu --- strace.spec | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/strace.spec b/strace.spec index 6905680..4a73560 100644 --- a/strace.spec +++ b/strace.spec @@ -3,7 +3,7 @@ Summary: Tracks and displays system calls associated with a running process Name: strace Version: 5.14 -Release: 4 +Release: 5 # The test suite is GPLv2+, all the rest is LGPLv2.1+. License: LGPL-2.1+ and GPL-2.0+ # Some distros require Group tag to be present, @@ -88,6 +88,22 @@ done wait %check +width=$(echo __LONG_WIDTH__ |%__cc -E -P -) +skip_32bit=0 +%if 0%{?fedora} >= 35 || 0%{?rhel} > 9 +skip_32bit=1 +%endif + +if [ "${width}" != 32 ] || [ "${skip_32bit}" != 1 ]; then + %{buildroot}%{_bindir}/strace -V + %make_build -k check VERBOSE=1 + echo 'BEGIN OF TEST SUITE INFORMATION' + tail -n 99999 -- tests*/test-suite.log tests*/ksysent.gen.log + find tests* -type f -name '*.log' -print0 | + xargs -r0 grep -H '^KERNEL BUG:' -- ||: + echo 'END OF TEST SUITE INFORMATION' +fi + # testcases which read /dev/full will fail because /dev/full is rw--w--w-- and # needsrootforbuild cannot take affect #%{buildroot}%{_bindir}/strace -V @@ -106,6 +122,9 @@ wait %{_mandir}/man1/* %changelog +* Thur June 1 2023 chenzanyu - 5.14-5 +- Let strace run the test case + * Tue Apr 4 2023 chenzanyu - 5.14-4 - solve ilp32 strace build error -- Gitee