From d736541243c1ddf59b8a1469c531afd1c1426899 Mon Sep 17 00:00:00 2001 From: ChenZanYu Date: Thu, 1 Jun 2023 09:42:32 +0000 Subject: [PATCH] Add back the content for running test cases in strace.spec Signed-off-by: ChenZanYu --- strace.spec | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/strace.spec b/strace.spec index 6905680..1308f5e 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,20 @@ done wait %check +width=$(echo __LONG_WIDTH__ |%__cc -E -P -) +%endif + +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 + + # 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 +120,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