From 256b10fec8a3364a96e9fe90c08128847fd45c5a Mon Sep 17 00:00:00 2001 From: ChenZanYu Date: Thu, 1 Jun 2023 08:01:03 +0000 Subject: [PATCH] Let strace run the test case Signed-off-by: ChenZanYu --- strace.spec | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/strace.spec b/strace.spec index 8292eec..7fa8e71 100644 --- a/strace.spec +++ b/strace.spec @@ -1,7 +1,7 @@ Summary: Tracks and displays system calls associated with a running process Name: strace Version: 6.1 -Release: 1 +Release: 2 # 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, @@ -85,22 +85,22 @@ done wait %check +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 + #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 - %files %maybe_use_defattr %doc CREDITS ChangeLog.gz ChangeLog-CVS.gz COPYING NEWS README -- Gitee