CI Testing: Extend test coverage on Fedora

Enable most of the tests on Fedora.  Port some of them to Fedora.
Annotate expected failures with respective bugzilla IDs.
This commit is contained in:
Martin Cermak 2023-03-10 15:27:23 +01:00
parent 340640bc27
commit 8ea2489c53
41 changed files with 212 additions and 248 deletions

View File

@ -14,3 +14,4 @@ link:
- relates: https://bugzilla.redhat.com/show_bug.cgi?id=1054962 - relates: https://bugzilla.redhat.com/show_bug.cgi?id=1054962
extra-summary: /tools/systemtap/Regression/PR16166 extra-summary: /tools/systemtap/Regression/PR16166
extra-task: /tools/systemtap/Regression/PR16166 extra-task: /tools/systemtap/Regression/PR16166
tier: 1

View File

@ -0,0 +1,153 @@
publicB1
privateB1
publicA1
publicA2
privateA1
privateA2
recursiveA1: 3
recursiveA1: 2
recursiveA1: 1
recursiveA1: 0
================================================================================
Probed function: [main]
Backtrace:
ADDRESS : main+ADDRESS/ADDRESS [PATH]
ADDRESS : __libc_start_call_main+ADDRESS/ADDRESS [PATH]
ADDRESS : __libc_start_main@GLIBC_2.2.5+ADDRESS/ADDRESS [PATH]
ADDRESS : _start+ADDRESS/ADDRESS [PATH]
================================================================================
Probed function: [publicB1]
Backtrace:
ADDRESS : publicB1+ADDRESS/ADDRESS [PATH]
ADDRESS : main+ADDRESS/ADDRESS [PATH]
ADDRESS : __libc_start_call_main+ADDRESS/ADDRESS [PATH]
ADDRESS : __libc_start_main@GLIBC_2.2.5+ADDRESS/ADDRESS [PATH]
ADDRESS : _start+ADDRESS/ADDRESS [PATH]
================================================================================
Probed function: [privateB1]
Backtrace:
ADDRESS : privateB1+ADDRESS/ADDRESS [PATH]
ADDRESS : publicB1+ADDRESS/ADDRESS [PATH]
ADDRESS : main+ADDRESS/ADDRESS [PATH]
ADDRESS : __libc_start_call_main+ADDRESS/ADDRESS [PATH]
ADDRESS : __libc_start_main@GLIBC_2.2.5+ADDRESS/ADDRESS [PATH]
ADDRESS : _start+ADDRESS/ADDRESS [PATH]
================================================================================
Probed function: [publicA1]
Backtrace:
ADDRESS : publicA1+ADDRESS/ADDRESS [PATH]
ADDRESS : privateB1+ADDRESS/ADDRESS [PATH]
ADDRESS : publicB1+ADDRESS/ADDRESS [PATH]
ADDRESS : main+ADDRESS/ADDRESS [PATH]
ADDRESS : __libc_start_call_main+ADDRESS/ADDRESS [PATH]
ADDRESS : __libc_start_main@GLIBC_2.2.5+ADDRESS/ADDRESS [PATH]
ADDRESS : _start+ADDRESS/ADDRESS [PATH]
================================================================================
Probed function: [publicA2]
Backtrace:
ADDRESS : publicA2+ADDRESS/ADDRESS [PATH]
ADDRESS : publicA1+ADDRESS/ADDRESS [PATH]
ADDRESS : privateB1+ADDRESS/ADDRESS [PATH]
ADDRESS : publicB1+ADDRESS/ADDRESS [PATH]
ADDRESS : main+ADDRESS/ADDRESS [PATH]
ADDRESS : __libc_start_call_main+ADDRESS/ADDRESS [PATH]
ADDRESS : __libc_start_main@GLIBC_2.2.5+ADDRESS/ADDRESS [PATH]
ADDRESS : _start+ADDRESS/ADDRESS [PATH]
================================================================================
Probed function: [privateA1]
Backtrace:
ADDRESS : privateA1+ADDRESS/ADDRESS [PATH]
ADDRESS : publicA2+ADDRESS/ADDRESS [PATH]
ADDRESS : publicA1+ADDRESS/ADDRESS [PATH]
ADDRESS : privateB1+ADDRESS/ADDRESS [PATH]
ADDRESS : publicB1+ADDRESS/ADDRESS [PATH]
ADDRESS : main+ADDRESS/ADDRESS [PATH]
ADDRESS : __libc_start_call_main+ADDRESS/ADDRESS [PATH]
ADDRESS : __libc_start_main@GLIBC_2.2.5+ADDRESS/ADDRESS [PATH]
ADDRESS : _start+ADDRESS/ADDRESS [PATH]
================================================================================
Probed function: [privateA2]
Backtrace:
ADDRESS : privateA2+ADDRESS/ADDRESS [PATH]
ADDRESS : privateA1+ADDRESS/ADDRESS [PATH]
ADDRESS : publicA2+ADDRESS/ADDRESS [PATH]
ADDRESS : publicA1+ADDRESS/ADDRESS [PATH]
ADDRESS : privateB1+ADDRESS/ADDRESS [PATH]
ADDRESS : publicB1+ADDRESS/ADDRESS [PATH]
ADDRESS : main+ADDRESS/ADDRESS [PATH]
ADDRESS : __libc_start_call_main+ADDRESS/ADDRESS [PATH]
ADDRESS : __libc_start_main@GLIBC_2.2.5+ADDRESS/ADDRESS [PATH]
ADDRESS : _start+ADDRESS/ADDRESS [PATH]
================================================================================
Probed function: [recursiveA1]
Backtrace:
ADDRESS : recursiveA1+ADDRESS/ADDRESS [PATH]
ADDRESS : privateA2+ADDRESS/ADDRESS [PATH]
ADDRESS : privateA1+ADDRESS/ADDRESS [PATH]
ADDRESS : publicA2+ADDRESS/ADDRESS [PATH]
ADDRESS : publicA1+ADDRESS/ADDRESS [PATH]
ADDRESS : privateB1+ADDRESS/ADDRESS [PATH]
ADDRESS : publicB1+ADDRESS/ADDRESS [PATH]
ADDRESS : main+ADDRESS/ADDRESS [PATH]
ADDRESS : __libc_start_call_main+ADDRESS/ADDRESS [PATH]
ADDRESS : __libc_start_main@GLIBC_2.2.5+ADDRESS/ADDRESS [PATH]
ADDRESS : _start+ADDRESS/ADDRESS [PATH]
================================================================================
Probed function: [recursiveA1]
Backtrace:
ADDRESS : recursiveA1+ADDRESS/ADDRESS [PATH]
ADDRESS : recursiveA1+ADDRESS/ADDRESS [PATH]
ADDRESS : privateA2+ADDRESS/ADDRESS [PATH]
ADDRESS : privateA1+ADDRESS/ADDRESS [PATH]
ADDRESS : publicA2+ADDRESS/ADDRESS [PATH]
ADDRESS : publicA1+ADDRESS/ADDRESS [PATH]
ADDRESS : privateB1+ADDRESS/ADDRESS [PATH]
ADDRESS : publicB1+ADDRESS/ADDRESS [PATH]
ADDRESS : main+ADDRESS/ADDRESS [PATH]
ADDRESS : __libc_start_call_main+ADDRESS/ADDRESS [PATH]
ADDRESS : __libc_start_main@GLIBC_2.2.5+ADDRESS/ADDRESS [PATH]
ADDRESS : _start+ADDRESS/ADDRESS [PATH]
================================================================================
Probed function: [recursiveA1]
Backtrace:
ADDRESS : recursiveA1+ADDRESS/ADDRESS [PATH]
ADDRESS : recursiveA1+ADDRESS/ADDRESS [PATH]
ADDRESS : recursiveA1+ADDRESS/ADDRESS [PATH]
ADDRESS : privateA2+ADDRESS/ADDRESS [PATH]
ADDRESS : privateA1+ADDRESS/ADDRESS [PATH]
ADDRESS : publicA2+ADDRESS/ADDRESS [PATH]
ADDRESS : publicA1+ADDRESS/ADDRESS [PATH]
ADDRESS : privateB1+ADDRESS/ADDRESS [PATH]
ADDRESS : publicB1+ADDRESS/ADDRESS [PATH]
ADDRESS : main+ADDRESS/ADDRESS [PATH]
ADDRESS : __libc_start_call_main+ADDRESS/ADDRESS [PATH]
ADDRESS : __libc_start_main@GLIBC_2.2.5+ADDRESS/ADDRESS [PATH]
ADDRESS : _start+ADDRESS/ADDRESS [PATH]
================================================================================
Probed function: [recursiveA1]
Backtrace:
ADDRESS : recursiveA1+ADDRESS/ADDRESS [PATH]
ADDRESS : recursiveA1+ADDRESS/ADDRESS [PATH]
ADDRESS : recursiveA1+ADDRESS/ADDRESS [PATH]
ADDRESS : recursiveA1+ADDRESS/ADDRESS [PATH]
ADDRESS : privateA2+ADDRESS/ADDRESS [PATH]
ADDRESS : privateA1+ADDRESS/ADDRESS [PATH]
ADDRESS : publicA2+ADDRESS/ADDRESS [PATH]
ADDRESS : publicA1+ADDRESS/ADDRESS [PATH]
ADDRESS : privateB1+ADDRESS/ADDRESS [PATH]
ADDRESS : publicB1+ADDRESS/ADDRESS [PATH]
ADDRESS : main+ADDRESS/ADDRESS [PATH]
ADDRESS : __libc_start_call_main+ADDRESS/ADDRESS [PATH]
ADDRESS : __libc_start_main@GLIBC_2.2.5+ADDRESS/ADDRESS [PATH]
ADDRESS : _start+ADDRESS/ADDRESS [PATH]

View File

@ -12,3 +12,4 @@ recommend:
duration: 10m duration: 10m
extra-summary: /tools/systemtap/Regression/RHEL6Feature-cpp-backtraces extra-summary: /tools/systemtap/Regression/RHEL6Feature-cpp-backtraces
extra-task: /tools/systemtap/Regression/RHEL6Feature-cpp-backtraces extra-task: /tools/systemtap/Regression/RHEL6Feature-cpp-backtraces
tier: 1

View File

@ -28,6 +28,7 @@
# Include rhts environment # Include rhts environment
. /usr/share/beakerlib/beakerlib.sh || exit 1 . /usr/share/beakerlib/beakerlib.sh || exit 1
. /etc/os-release || exit 1
PACKAGE="systemtap" PACKAGE="systemtap"
@ -79,6 +80,10 @@ rlPhaseStartTest
rlRun "cat golden.el9.`arch`.out > golden.out" rlRun "cat golden.el9.`arch`.out > golden.out"
fi fi
if [ "$ID" == "fedora" ] && test "0$VERSION_ID" -ge 39; then
rlRun "cat golden.fc39.out > golden.out"
fi
# RHEL-9 s390x runtime/stack-s390.c:63:52: error: ASYNC_SIZE undeclared # RHEL-9 s390x runtime/stack-s390.c:63:52: error: ASYNC_SIZE undeclared
# (PAGE_SIZE << 1) on stap side seems to work it around # (PAGE_SIZE << 1) on stap side seems to work it around

View File

@ -11,3 +11,4 @@ recommend:
duration: 5m duration: 5m
extra-summary: /tools/systemtap/Regression/RHEL6Feature-cpp-ctors-and-dtors extra-summary: /tools/systemtap/Regression/RHEL6Feature-cpp-ctors-and-dtors
extra-task: /tools/systemtap/Regression/RHEL6Feature-cpp-ctors-and-dtors extra-task: /tools/systemtap/Regression/RHEL6Feature-cpp-ctors-and-dtors
tier: 1

View File

@ -11,3 +11,4 @@ recommend:
duration: 10m duration: 10m
extra-summary: /tools/systemtap/Regression/RHEL6Feature-cpp-inheritance extra-summary: /tools/systemtap/Regression/RHEL6Feature-cpp-inheritance
extra-task: /tools/systemtap/Regression/RHEL6Feature-cpp-inheritance extra-task: /tools/systemtap/Regression/RHEL6Feature-cpp-inheritance
tier: 1

View File

@ -11,3 +11,4 @@ recommend:
duration: 120m duration: 120m
extra-summary: /tools/systemtap/Regression/RHEL6Feature-cpp-methods extra-summary: /tools/systemtap/Regression/RHEL6Feature-cpp-methods
extra-task: /tools/systemtap/Regression/RHEL6Feature-cpp-methods extra-task: /tools/systemtap/Regression/RHEL6Feature-cpp-methods
tier: 1

View File

@ -12,3 +12,4 @@ link:
- relates: https://bugzilla.redhat.com/show_bug.cgi?id=1572501 - relates: https://bugzilla.redhat.com/show_bug.cgi?id=1572501
extra-summary: /tools/systemtap/Regression/RHEL7-5-backtraces-no-longer-work-with-systemtap extra-summary: /tools/systemtap/Regression/RHEL7-5-backtraces-no-longer-work-with-systemtap
extra-task: /tools/systemtap/Regression/RHEL7-5-backtraces-no-longer-work-with-systemtap extra-task: /tools/systemtap/Regression/RHEL7-5-backtraces-no-longer-work-with-systemtap
tier: 1

View File

@ -29,6 +29,7 @@
# Include Beaker environment # Include Beaker environment
. /usr/share/beakerlib/beakerlib.sh || exit 1 . /usr/share/beakerlib/beakerlib.sh || exit 1
PACKAGE="systemtap" PACKAGE="systemtap"
_SCRIPTS="readpages.stp tcp.sendmsg.stp bdflush.stp" _SCRIPTS="readpages.stp tcp.sendmsg.stp bdflush.stp"

View File

@ -13,3 +13,4 @@ link:
- relates: https://bugzilla.redhat.com/show_bug.cgi?id=706185 - relates: https://bugzilla.redhat.com/show_bug.cgi?id=706185
extra-summary: /tools/systemtap/Regression/bz706185-various-build-and-run extra-summary: /tools/systemtap/Regression/bz706185-various-build-and-run
extra-task: /tools/systemtap/Regression/bz706185-various-build-and-run extra-task: /tools/systemtap/Regression/bz706185-various-build-and-run
tier: 1

View File

@ -13,3 +13,4 @@ link:
- relates: https://bugzilla.redhat.com/show_bug.cgi?id=902739 - relates: https://bugzilla.redhat.com/show_bug.cgi?id=902739
extra-summary: /tools/systemtap/Regression/dtrace-create-Wall-Wextra-pedantic-clean-code extra-summary: /tools/systemtap/Regression/dtrace-create-Wall-Wextra-pedantic-clean-code
extra-task: /tools/systemtap/Regression/dtrace-create-Wall-Wextra-pedantic-clean-code extra-task: /tools/systemtap/Regression/dtrace-create-Wall-Wextra-pedantic-clean-code
tier: 1

View File

@ -12,3 +12,4 @@ link:
- relates: https://bugzilla.redhat.com/show_bug.cgi?id=1778921 - relates: https://bugzilla.redhat.com/show_bug.cgi?id=1778921
extra-summary: /tools/systemtap/Regression/elfutils-debuginfod-client-not-being-called extra-summary: /tools/systemtap/Regression/elfutils-debuginfod-client-not-being-called
extra-task: /tools/systemtap/Regression/elfutils-debuginfod-client-not-being-called extra-task: /tools/systemtap/Regression/elfutils-debuginfod-client-not-being-called
tier: 1

View File

@ -12,3 +12,4 @@ link:
- relates: https://bugzilla.redhat.com/show_bug.cgi?id=1810216 - relates: https://bugzilla.redhat.com/show_bug.cgi?id=1810216
extra-summary: /tools/systemtap/Regression/ftrace-logging-tapset-not-working-as-expected-in extra-summary: /tools/systemtap/Regression/ftrace-logging-tapset-not-working-as-expected-in
extra-task: /tools/systemtap/Regression/ftrace-logging-tapset-not-working-as-expected-in extra-task: /tools/systemtap/Regression/ftrace-logging-tapset-not-working-as-expected-in
tier: 1

View File

@ -14,3 +14,4 @@ link:
- relates: https://bugzilla.redhat.com/show_bug.cgi?id=822503 - relates: https://bugzilla.redhat.com/show_bug.cgi?id=822503
extra-summary: /tools/systemtap/Regression/ipv6-tapset-support extra-summary: /tools/systemtap/Regression/ipv6-tapset-support
extra-task: /tools/systemtap/Regression/ipv6-tapset-support extra-task: /tools/systemtap/Regression/ipv6-tapset-support
tier: 1

View File

@ -31,6 +31,7 @@
rlJournalStart rlJournalStart
rlPhaseStartSetup rlPhaseStartSetup
rlLogInfo "Related bugs: Fedora rawhide 6.2.0-0.rc8.57.fc39.x86_64 bz2177192"
rlAssertRpm nfs-utils rlAssertRpm nfs-utils
rlRun "uname -r" rlRun "uname -r"
rlRun "which stap" rlRun "which stap"

View File

@ -13,3 +13,4 @@ link:
- relates: https://bugzilla.redhat.com/show_bug.cgi?id=1020437 - relates: https://bugzilla.redhat.com/show_bug.cgi?id=1020437
extra-summary: /tools/systemtap/Regression/irq-vector-tracepoints extra-summary: /tools/systemtap/Regression/irq-vector-tracepoints
extra-task: /tools/systemtap/Regression/irq-vector-tracepoints extra-task: /tools/systemtap/Regression/irq-vector-tracepoints
tier: 1

View File

@ -12,3 +12,4 @@ link:
- relates: https://bugzilla.redhat.com/show_bug.cgi?id=1518462 - relates: https://bugzilla.redhat.com/show_bug.cgi?id=1518462
extra-summary: /tools/systemtap/Regression/netdev-receive extra-summary: /tools/systemtap/Regression/netdev-receive
extra-task: /tools/systemtap/Regression/netdev-receive extra-task: /tools/systemtap/Regression/netdev-receive
tier: 1

View File

@ -35,7 +35,7 @@ rlJournalStart
rlPhaseStartTest rlPhaseStartTest
# Here we rely on that netdev.receive gets hit immediately without us explicitly triggering it. # Here we rely on that netdev.receive gets hit immediately without us explicitly triggering it.
# Not all rhel-7 stap versions have -T already, so we use -E instead. # Not all rhel-7 stap versions have -T already, so we use -E instead.
rlRun "stap -o $TMPFILE -ve 'probe netdev.receive{log(\"HIT\") exit()}' -E 'probe timer.s(10) {log(\"TIMEOUT\") exit()}'" rlRun "stap -o $TMPFILE -ve 'probe netdev.receive{log(\"HIT\") exit()}' -E 'probe timer.s(30) {log(\"TIMEOUT\") exit()}'"
rlRun "cat $TMPFILE" rlRun "cat $TMPFILE"
rlRun "grep HIT $TMPFILE" rlRun "grep HIT $TMPFILE"
rlRun "grep TIMEOUT $TMPFILE" 1 rlRun "grep TIMEOUT $TMPFILE" 1

View File

@ -14,3 +14,4 @@ link:
- relates: https://bugzilla.redhat.com/show_bug.cgi?id=1055778 - relates: https://bugzilla.redhat.com/show_bug.cgi?id=1055778
extra-summary: /tools/systemtap/Regression/pass-4-failure-netfilter-examples extra-summary: /tools/systemtap/Regression/pass-4-failure-netfilter-examples
extra-task: /tools/systemtap/Regression/pass-4-failure-netfilter-examples extra-task: /tools/systemtap/Regression/pass-4-failure-netfilter-examples
tier: 1

View File

@ -14,3 +14,4 @@ link:
- relates: https://bugzilla.redhat.com/show_bug.cgi?id=1857749 - relates: https://bugzilla.redhat.com/show_bug.cgi?id=1857749
extra-summary: /tools/systemtap/Regression/second-command-not-captured extra-summary: /tools/systemtap/Regression/second-command-not-captured
extra-task: /tools/systemtap/Regression/second-command-not-captured extra-task: /tools/systemtap/Regression/second-command-not-captured
tier: 1

View File

@ -1,23 +0,0 @@
summary: selected-parts-of-upstream-testsuite
description: ''
contact: Martin Cermak <mcermak@redhat.com>
component:
- systemtap
test: ./runtest.sh
framework: beakerlib
recommend:
- systemtap
- libstdc++
- dejagnu
- elfutils-devel
- gettext
- libgcc
- glibc-devel
- gcc-c++
- libstdc++-devel
- dyninst
- dyninst-devel
- systemtap-testsuite
duration: 48h
extra-summary: /tools/systemtap/Regression/selected-parts-of-upstream-testsuite
extra-task: /tools/systemtap/Regression/selected-parts-of-upstream-testsuite

View File

@ -1,184 +0,0 @@
#!/bin/bash
# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# runtest.sh of /tools/systemtap/Regression/selected-parts-of-upstream-testsuite
# Description: selected-parts-of-upstream-testsuite
# Author: Martin Cermak <mcermak@redhat.com>
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Copyright (c) 2017 Red Hat, Inc.
#
# This program is free software: you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation, either version 2 of
# the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be
# useful, but WITHOUT ANY WARRANTY; without even the implied
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
# PURPOSE. See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see http://www.gnu.org/licenses/.
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Be tolerant about selinux
export AVC_ERROR='+no_avc_check'
# Include Beaker environment
. /usr/share/beakerlib/beakerlib.sh || exit 1
DMESG1=$(mktemp)
DMESG2=$(mktemp)
PACKAGE="systemtap"
SUBTESTS="\
attach_detach.exp \
bz1126645.exp \
bz1214176.exp \
bz1252436.exp \
exelib.exp \
pr22005.exp \
server.exp \
systemtap-service.exp \
task_dentry_path.exp \
task_paths.exp \
tracepoints.exp \
"
blacklist_subtest()
{
token=${1/\//\\/}
SUBTESTS=${SUBTESTS/$token/}
}
P4TESTS="\
buildok/nfs-all-probes.stp \
buildok/nfs-detailed.stp \
buildok/nfs-fop.check_flags.stp \
buildok/nfs_proc-detailed.stp \
buildok/nfsd-all-probes.stp \
buildok/nfsd-detailed.stp \
systemtap.examples/io/nfs_func_users.stp \
systemtap.examples/network/nfsdtop.stp \
"
blacklist_p4()
{
token=${1/\//\\/}
P4TESTS=${P4TESTS/$token/}
}
if [[ $(rpm --eval '%{rhel}') -ge 8 ]]; then
# mjw authored that testcase - had been notified
arch | fgrep 'x86_64' && blacklist_subtest 'exelib.exp'
blacklist_p4 'buildok/nfs-fop.check_flags.stp'
blacklist_p4 'buildok/nfs_proc-detailed.stp'
blacklist_p4 'buildok/nfsd-detailed.stp'
# bz1709831
blacklist_p4 'buildok/nfs-detailed.stp'
arch | fgrep -q ppc64le && blacklist_p4 'buildok/nfs-all-probes.stp'
elif [[ $(rpm --eval '%{rhel}') -eq 7 ]]; then
# RHEL-ALT
if rpm -qi kernel | fgrep -q kernel-alt; then
# at_var.exp is expected to fail on Pegas - https://bugzilla.redhat.com/show_bug.cgi?id=1165848#c7
blacklist_subtest 'at_var.exp'
fi
# bz1107616, bz1698737
blacklist_p4 'buildok/nfsd-detailed.stp'
if arch | fgrep -q ppc64le; then
blacklist_p4 'buildok/nfs-all-probes.stp'
blacklist_p4 'buildok/nfs-detailed.stp'
blacklist_p4 'buildok/nfsd-all-probes.stp'
fi
elif [[ $(rpm --eval '%{rhel}') -le 6 ]]; then
true
fi
which stap | fgrep -q toolset && blacklist_subtest 'modules_out_of_tree.exp'
rlJournalStart
rlPhaseStartSetup
TESTSUITERPM="$(rpm --queryformat='%{name}\n' -qf $(which stap) | head -1 | grep -o '.*systemtap')-testsuite"
rlLogInfo "$(rpm -q $TESTSUITERPM)"
TESTSUITEDIR="$(rpm -ql $TESTSUITERPM | grep -o '.*share/systemtap/testsuite/' | head -1)"
rlLogInfo "$TESTSUITEDIR"
# For devtoolset, compat arch support was dropped for non-x86_64 arches. Ref: bz1493500
if echo $TESTSUITEDIR | grep -q toolset && arch | egrep -q '^(ppc64|s390x)$'; then
sed -i '/^proc arch_compile_flags/,/^}/d' $TESTSUITEDIR/lib/compile_flags.exp
echo 'proc arch_compile_flags {} { return 1 }' >> $TESTSUITEDIR/lib/compile_flags.exp
fi
# Need to suppress warnings so that task_dentry_path.exp can pass
# And --skip-badvars to let task_paths.exp pass
rlRun "sed -i 's/--rlimit-cpu=850/-w --skip-badvars \0/' $TESTSUITEDIR/lib/systemtap.exp"
rlServiceStop firewalld
rlServiceStop iptables
rlServiceStop ip6tables
rlServiceStart avahi-daemon
rlRun "rpm -qa | grep ^kernel | grep -v `uname -r` | xargs rpm -e" 0-255
rlRun "stap-prep" 0,127
PKGMGR="yum --skip-broken --nogpgcheck"
rpm -q dnf && PKGMGR="dnf --setopt=strict=0 --nogpgcheck"
rlRun "$PKGMGR -y install --setopt=multilib_policy=all libstdc++ dejagnu elfutils-devel gettext libgcc glibc-devel gcc-c++ libstdc++-devel dyninst dyninst-devel"
rlRun "sysctl -w kernel.panic=1"
rlRun "sysctl -w kernel.panic_on_oops=1"
rlPhaseEnd
rlPhaseStartTest
rlRun "cd $TESTSUITEDIR"
rlRun "make clean"
rlRun "dmesg > $DMESG1"
rlRun "make installcheck RUNTESTFLAGS=\"${RUNTESTFLAGS:-$SUBTESTS}\""
rlRun "dmesg > $DMESG2"
rlLogInfo "$SUBTESTS"
rlDejaSum "systemtap.sum"
rlFileSubmit "systemtap.log"
rlFileSubmit "systemtap.sum"
rlPhaseEnd
rlPhaseStart FAIL "Run selected -p4 tests"
for t in $P4TESTS; do
rlLogInfo "Trying to compile $t without prologue search ..."
ADDSWITCHES=''
stap $ADDSWITCHES -w -o /dev/null -p4 $t || ADDSWITCHES='-P'
rlRun "stap $ADDSWITCHES -w -p4 $t"
done
rlPhaseEnd
rlPhaseStart FAIL "Check for BUG: in dmesg"
rlRun "diff $DMESG1 $DMESG2" 0-255
rlRun "diff $DMESG1 $DMESG2 | grep 'BUG:'" 1
rlPhaseEnd
rlPhaseStart FAIL "Evaluate test results"
TEMPLOG=$(mktemp)
rlRun "cp systemtap.sum $TEMPLOG"
# BLACKLIST
if which stap | grep -q toolset; then
rlLogInfo "Ignore boot time probing subtest FAILures per bz1121363#c20 for devtoolset"
sed -i '/^FAIL: stap-service::boot probing - install script/d' $TEMPLOG
sed -i '/^FAIL: stap-service::boot probing - check script/d' $TEMPLOG
fi
# check for failures
rlRun "grep ^PASS $TEMPLOG" 0 "Assert a/some PASS"
rlRun "grep ^FAIL $TEMPLOG" 1 "Assert no FAIL"
rm -f $TEMPLOG
rlPhaseEnd
rlPhaseStartCleanup
rlServiceRestore firewalld
rlServiceRestore iptables
rlServiceRestore ip6tables
rlServiceRestore avahi-daemon
rlPhaseEnd
rlJournalPrintText
rlJournalEnd

View File

@ -12,3 +12,4 @@ link:
- relates: https://bugzilla.redhat.com/show_bug.cgi?id=884951 - relates: https://bugzilla.redhat.com/show_bug.cgi?id=884951
extra-summary: /tools/systemtap/Regression/semantic-error-nfs-proc-read_setup extra-summary: /tools/systemtap/Regression/semantic-error-nfs-proc-read_setup
extra-task: /tools/systemtap/Regression/semantic-error-nfs-proc-read_setup extra-task: /tools/systemtap/Regression/semantic-error-nfs-proc-read_setup
tier: 1

View File

@ -12,3 +12,4 @@ link:
- relates: https://bugzilla.redhat.com/show_bug.cgi?id=1062076 - relates: https://bugzilla.redhat.com/show_bug.cgi?id=1062076
extra-summary: /tools/systemtap/Regression/semantic-errors-bz1062076 extra-summary: /tools/systemtap/Regression/semantic-errors-bz1062076
extra-task: /tools/systemtap/Regression/semantic-errors-bz1062076 extra-task: /tools/systemtap/Regression/semantic-errors-bz1062076
tier: 1

View File

@ -31,9 +31,10 @@
rlJournalStart rlJournalStart
rlPhaseStartTest rlPhaseStartTest
rlLogInfo "Related bugs: Fedora rawhide 6.2.0-0.rc8.57.fc39.x86_64 bz2177196"
rlLogInfo "Check if we might want to try out prologue search" rlLogInfo "Check if we might want to try out prologue search"
p="" p=""
stap -vp4 sript.stp >& /dev/null || p="-P" stap -vp4 script.stp >& /dev/null || p="-P"
rlRun "stap $p -vp4 script.stp" rlRun "stap $p -vp4 script.stp"
rlPhaseEnd rlPhaseEnd
rlJournalPrintText rlJournalPrintText

View File

@ -15,3 +15,4 @@ link:
- relates: https://bugzilla.redhat.com/show_bug.cgi?id=953776 - relates: https://bugzilla.redhat.com/show_bug.cgi?id=953776
extra-summary: /tools/systemtap/Regression/semantic-errors-bz953776 extra-summary: /tools/systemtap/Regression/semantic-errors-bz953776
extra-task: /tools/systemtap/Regression/semantic-errors-bz953776 extra-task: /tools/systemtap/Regression/semantic-errors-bz953776
tier: 1

View File

@ -12,3 +12,4 @@ link:
- relates: https://bugzilla.redhat.com/show_bug.cgi?id=1566422 - relates: https://bugzilla.redhat.com/show_bug.cgi?id=1566422
extra-summary: /tools/systemtap/Regression/stap-ERROR-Build-id-mismatch-with extra-summary: /tools/systemtap/Regression/stap-ERROR-Build-id-mismatch-with
extra-task: /tools/systemtap/Regression/stap-ERROR-Build-id-mismatch-with extra-task: /tools/systemtap/Regression/stap-ERROR-Build-id-mismatch-with
tier: 1

View File

@ -13,3 +13,4 @@ link:
- relates: https://bugzilla.redhat.com/show_bug.cgi?id=1020207 - relates: https://bugzilla.redhat.com/show_bug.cgi?id=1020207
extra-summary: /tools/systemtap/Regression/stapio-possible-circular-locking-dependency extra-summary: /tools/systemtap/Regression/stapio-possible-circular-locking-dependency
extra-task: /tools/systemtap/Regression/stapio-possible-circular-locking-dependency extra-task: /tools/systemtap/Regression/stapio-possible-circular-locking-dependency
tier: 1

View File

@ -12,3 +12,4 @@ link:
- relates: https://bugzilla.redhat.com/show_bug.cgi?id=1788662 - relates: https://bugzilla.redhat.com/show_bug.cgi?id=1788662
extra-summary: /tools/systemtap/Regression/suspicious-RCU-usage extra-summary: /tools/systemtap/Regression/suspicious-RCU-usage
extra-task: /tools/systemtap/Regression/suspicious-RCU-usage extra-task: /tools/systemtap/Regression/suspicious-RCU-usage
tier: 1

View File

@ -13,3 +13,4 @@ link:
- relates: https://bugzilla.redhat.com/show_bug.cgi?id=1004059 - relates: https://bugzilla.redhat.com/show_bug.cgi?id=1004059
extra-summary: /tools/systemtap/Regression/syscall-get-arguments-returning-wrong-value extra-summary: /tools/systemtap/Regression/syscall-get-arguments-returning-wrong-value
extra-task: /tools/systemtap/Regression/syscall-get-arguments-returning-wrong-value extra-task: /tools/systemtap/Regression/syscall-get-arguments-returning-wrong-value
tier: 1

View File

@ -12,3 +12,4 @@ link:
- relates: https://bugzilla.redhat.com/show_bug.cgi?id=1412691 - relates: https://bugzilla.redhat.com/show_bug.cgi?id=1412691
extra-summary: /tools/systemtap/Regression/task-cwd-path-results-in-an-in-kernel-memory-leak extra-summary: /tools/systemtap/Regression/task-cwd-path-results-in-an-in-kernel-memory-leak
extra-task: /tools/systemtap/Regression/task-cwd-path-results-in-an-in-kernel-memory-leak extra-task: /tools/systemtap/Regression/task-cwd-path-results-in-an-in-kernel-memory-leak
tier: 1

View File

@ -12,3 +12,4 @@ link:
- relates: https://bugzilla.redhat.com/show_bug.cgi?id=1430861 - relates: https://bugzilla.redhat.com/show_bug.cgi?id=1430861
extra-summary: /tools/systemtap/Regression/task-exe-file-results-in-an-file-struct-leak extra-summary: /tools/systemtap/Regression/task-exe-file-results-in-an-file-struct-leak
extra-task: /tools/systemtap/Regression/task-exe-file-results-in-an-file-struct-leak extra-task: /tools/systemtap/Regression/task-exe-file-results-in-an-file-struct-leak
tier: 1

View File

@ -14,3 +14,4 @@ link:
- relates: https://bugzilla.redhat.com/show_bug.cgi?id=876848 - relates: https://bugzilla.redhat.com/show_bug.cgi?id=876848
extra-summary: /tools/systemtap/Regression/utrace-taskfinder-misses-events extra-summary: /tools/systemtap/Regression/utrace-taskfinder-misses-events
extra-task: /tools/systemtap/Regression/utrace-taskfinder-misses-events extra-task: /tools/systemtap/Regression/utrace-taskfinder-misses-events
tier: 1

View File

@ -12,3 +12,4 @@ link:
- relates: https://bugzilla.redhat.com/show_bug.cgi?id=920444 - relates: https://bugzilla.redhat.com/show_bug.cgi?id=920444
extra-summary: /tools/systemtap/Regression/wrong-data-returned-by-nfs-commit-done extra-summary: /tools/systemtap/Regression/wrong-data-returned-by-nfs-commit-done
extra-task: /tools/systemtap/Regression/wrong-data-returned-by-nfs-commit-done extra-task: /tools/systemtap/Regression/wrong-data-returned-by-nfs-commit-done
tier: 1

View File

@ -28,6 +28,7 @@
# Include Beaker environment # Include Beaker environment
. /usr/share/beakerlib/beakerlib.sh || exit 1 . /usr/share/beakerlib/beakerlib.sh || exit 1
. /etc/os-release || exit 1
PACKAGE="systemtap" PACKAGE="systemtap"
@ -47,9 +48,7 @@ rlJournalStart
rlPhaseStart FAIL "Build testing binary, prepare nfs environment" rlPhaseStart FAIL "Build testing binary, prepare nfs environment"
rlRun "make" rlRun "make"
rlRun "rhelmajor=$(rpm --eval %{rhel})" rlRun "./test-for-nfs"
rlRun "chmod u+x test-for-nfs"
rlRun "./test-for-nfs RHEL${rhelmajor}"
rlPhaseEnd rlPhaseEnd
rlPhaseStartTest rlPhaseStartTest
@ -62,7 +61,7 @@ rlJournalStart
rlPhaseEnd rlPhaseEnd
rlPhaseStart WARN "Clean the nfs environment up" rlPhaseStart WARN "Clean the nfs environment up"
rlRun "./test-for-nfs -c RHEL${rhelmajor}" rlRun "./test-for-nfs -c"
rlPhaseEnd rlPhaseEnd
rlPhaseStartCleanup rlPhaseStartCleanup

View File

@ -8,11 +8,6 @@ nfs_service()
local status="$1" local status="$1"
local OS_VER="$2" local OS_VER="$2"
if [[ "$OS_VER" != "RHEL9" && "$OS_VER" != "RHEL8" && "$OS_VER" != "RHEL7" && "$OS_VER" != "RHEL6" && "$OS_VER" != "RHEL5" ]]; then
echo "Error: $OS_VER not supported."
return 1
fi
case "$status" in case "$status" in
restart) restart)
ps -ef | grep "nfsd" | grep -v grep > /dev/null 2>&1 ps -ef | grep "nfsd" | grep -v grep > /dev/null 2>&1
@ -21,22 +16,12 @@ nfs_service()
return 0 return 0
fi fi
if [[ "$2" == "RHEL7" || "$2" == "RHEL8" || "$2" == "RHEL9" ]]; then /bin/systemctl restart nfs-server.service
/bin/systemctl restart nfs-server.service ret=$?
ret=$?
else
/etc/init.d/nfs restart
ret=$?
fi
;; ;;
stop) stop)
if [[ "$2" == "RHEL7" || "$2" == "RHEL8" || "$2" == "RHEL9" ]]; then /bin/systemctl stop nfs-server.service
/bin/systemctl stop nfs-server.service ret=$?
ret=$?
else
/etc/init.d/nfs stop
ret=$?
fi
;; ;;
*) *)
echo "Error: nfs_service [stop|restart]" echo "Error: nfs_service [stop|restart]"
@ -52,7 +37,7 @@ clean_nfs_env()
umount "$NFS_TMP"/sts_mount umount "$NFS_TMP"/sts_mount
/usr/sbin/exportfs -u 127.0.0.1:"$NFS_TMP"/sts_share /usr/sbin/exportfs -u 127.0.0.1:"$NFS_TMP"/sts_share
rm -rf "$NFS_TMP" rm -rf "$NFS_TMP"
nfs_service stop $1 nfs_service stop
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
return 1 return 1
else else
@ -63,7 +48,7 @@ clean_nfs_env()
create_nfs_env() create_nfs_env()
{ {
nfs_service restart $1 nfs_service restart
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
return 1 return 1
fi fi
@ -80,31 +65,26 @@ create_nfs_env()
} }
if [ $# -gt 2 ]; then if [ $# -gt 2 ]; then
echo "Usage: test-for-nfs [-c] OS_VERSION" echo "Usage: test-for-nfs [-c]"
exit 1 exit 1
fi fi
case "$1" in case "$1" in
-c) -c)
clean_nfs_env $2 clean_nfs_env
ret=$? ret=$?
if [ $ret -ne 0 ]; then if [ $ret -ne 0 ]; then
echo "Error: cleaning the nfs env for test failed." echo "Error: cleaning the nfs env for test failed."
fi fi
;; ;;
*) *)
if [ ! -z "$1" ]; then create_nfs_env
create_nfs_env $1 ret=$?
ret=$? if [ $ret -eq 0 ]; then
if [ $ret -eq 0 ]; then echo "Info: The nfs env for test create successfully."
echo "Info: The nfs env for test create successfully." else
else echo "Error: creating the nfs env for test failed."
echo "Error: creating the nfs env for test failed." fi
fi
else
echo "Usage: test-for-nfs [-c] OS_VERSION"
ret=1
fi
;; ;;
esac esac

View File

@ -10,3 +10,4 @@ recommend:
duration: 15m duration: 15m
extra-summary: /tools/systemtap/Sanity/byteman-java-methods-probing extra-summary: /tools/systemtap/Sanity/byteman-java-methods-probing
extra-task: /tools/systemtap/Sanity/byteman-java-methods-probing extra-task: /tools/systemtap/Sanity/byteman-java-methods-probing
tier: 1

View File

@ -15,3 +15,4 @@ recommend:
duration: 10m duration: 10m
extra-summary: /tools/systemtap/Sanity/kernel-modules extra-summary: /tools/systemtap/Sanity/kernel-modules
extra-task: /tools/systemtap/Sanity/kernel-modules extra-task: /tools/systemtap/Sanity/kernel-modules
tier: 1

View File

@ -13,3 +13,4 @@ recommend:
duration: 1h duration: 1h
extra-summary: /tools/systemtap/Sanity/quick-smoke-test extra-summary: /tools/systemtap/Sanity/quick-smoke-test
extra-task: /tools/systemtap/Sanity/quick-smoke-test extra-task: /tools/systemtap/Sanity/quick-smoke-test
tier: 1

View File

@ -15,3 +15,4 @@ recommend:
duration: 45m duration: 45m
extra-summary: /tools/systemtap/Sanity/stap-server-basic-sanity extra-summary: /tools/systemtap/Sanity/stap-server-basic-sanity
extra-task: /tools/systemtap/Sanity/stap-server-basic-sanity extra-task: /tools/systemtap/Sanity/stap-server-basic-sanity
tier: 1

View File

@ -14,3 +14,4 @@ link:
- relates: https://bugzilla.redhat.com/show_bug.cgi?id=855981 - relates: https://bugzilla.redhat.com/show_bug.cgi?id=855981
extra-summary: /CoreOS/systemtap/Sanity/userspace-probes extra-summary: /CoreOS/systemtap/Sanity/userspace-probes
extra-task: /CoreOS/systemtap/Sanity/userspace-probes extra-task: /CoreOS/systemtap/Sanity/userspace-probes
tier: 1