From 838e64b5e8bbe03eac1ff69d92de091e8be42fb3 Mon Sep 17 00:00:00 2001 From: ChenZanYu Date: Thu, 1 Jun 2023 08:10:41 +0000 Subject: [PATCH] Add back the content for running test cases in strace.spec Signed-off-by: ChenZanYu --- strace.spec | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/strace.spec b/strace.spec index 6905680..8626b24 100644 --- a/strace.spec +++ b/strace.spec @@ -88,6 +88,16 @@ 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 + # testcases which read /dev/full will fail because /dev/full is rw--w--w-- and # needsrootforbuild cannot take affect #%{buildroot}%{_bindir}/strace -V -- Gitee