diff --git a/strace.spec b/strace.spec index 69056808373af601917cee5812ff0d82395c4efa..8d44ac83e9bb911362707bd7aecfe827edaa8667 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,15 +88,17 @@ done wait %check -# testcases which read /dev/full will fail because /dev/full is rw--w--w-- and -# needsrootforbuild cannot take affect -#%{buildroot}%{_bindir}/strace -V -#make %{?_smp_mflags} -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' +width=$(echo __LONG_WIDTH__ |%__cc -E -P -) + +if [ "${width}" != 32 ]; 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 @@ -106,6 +108,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