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:
parent
340640bc27
commit
8ea2489c53
@ -14,3 +14,4 @@ link:
|
||||
- relates: https://bugzilla.redhat.com/show_bug.cgi?id=1054962
|
||||
extra-summary: /tools/systemtap/Regression/PR16166
|
||||
extra-task: /tools/systemtap/Regression/PR16166
|
||||
tier: 1
|
||||
|
153
tests/Regression/RHEL6Feature-cpp-backtraces/golden.fc39.out
Normal file
153
tests/Regression/RHEL6Feature-cpp-backtraces/golden.fc39.out
Normal 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]
|
@ -12,3 +12,4 @@ recommend:
|
||||
duration: 10m
|
||||
extra-summary: /tools/systemtap/Regression/RHEL6Feature-cpp-backtraces
|
||||
extra-task: /tools/systemtap/Regression/RHEL6Feature-cpp-backtraces
|
||||
tier: 1
|
||||
|
@ -28,6 +28,7 @@
|
||||
|
||||
# Include rhts environment
|
||||
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
||||
. /etc/os-release || exit 1
|
||||
|
||||
PACKAGE="systemtap"
|
||||
|
||||
@ -79,6 +80,10 @@ rlPhaseStartTest
|
||||
rlRun "cat golden.el9.`arch`.out > golden.out"
|
||||
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
|
||||
# (PAGE_SIZE << 1) on stap side seems to work it around
|
||||
|
||||
|
@ -11,3 +11,4 @@ recommend:
|
||||
duration: 5m
|
||||
extra-summary: /tools/systemtap/Regression/RHEL6Feature-cpp-ctors-and-dtors
|
||||
extra-task: /tools/systemtap/Regression/RHEL6Feature-cpp-ctors-and-dtors
|
||||
tier: 1
|
||||
|
@ -11,3 +11,4 @@ recommend:
|
||||
duration: 10m
|
||||
extra-summary: /tools/systemtap/Regression/RHEL6Feature-cpp-inheritance
|
||||
extra-task: /tools/systemtap/Regression/RHEL6Feature-cpp-inheritance
|
||||
tier: 1
|
||||
|
@ -11,3 +11,4 @@ recommend:
|
||||
duration: 120m
|
||||
extra-summary: /tools/systemtap/Regression/RHEL6Feature-cpp-methods
|
||||
extra-task: /tools/systemtap/Regression/RHEL6Feature-cpp-methods
|
||||
tier: 1
|
||||
|
@ -12,3 +12,4 @@ link:
|
||||
- relates: https://bugzilla.redhat.com/show_bug.cgi?id=1572501
|
||||
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
|
||||
tier: 1
|
||||
|
@ -29,6 +29,7 @@
|
||||
# Include Beaker environment
|
||||
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
||||
|
||||
|
||||
PACKAGE="systemtap"
|
||||
_SCRIPTS="readpages.stp tcp.sendmsg.stp bdflush.stp"
|
||||
|
||||
|
@ -13,3 +13,4 @@ link:
|
||||
- relates: https://bugzilla.redhat.com/show_bug.cgi?id=706185
|
||||
extra-summary: /tools/systemtap/Regression/bz706185-various-build-and-run
|
||||
extra-task: /tools/systemtap/Regression/bz706185-various-build-and-run
|
||||
tier: 1
|
||||
|
@ -13,3 +13,4 @@ link:
|
||||
- relates: https://bugzilla.redhat.com/show_bug.cgi?id=902739
|
||||
extra-summary: /tools/systemtap/Regression/dtrace-create-Wall-Wextra-pedantic-clean-code
|
||||
extra-task: /tools/systemtap/Regression/dtrace-create-Wall-Wextra-pedantic-clean-code
|
||||
tier: 1
|
||||
|
@ -12,3 +12,4 @@ link:
|
||||
- relates: https://bugzilla.redhat.com/show_bug.cgi?id=1778921
|
||||
extra-summary: /tools/systemtap/Regression/elfutils-debuginfod-client-not-being-called
|
||||
extra-task: /tools/systemtap/Regression/elfutils-debuginfod-client-not-being-called
|
||||
tier: 1
|
||||
|
@ -12,3 +12,4 @@ link:
|
||||
- relates: https://bugzilla.redhat.com/show_bug.cgi?id=1810216
|
||||
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
|
||||
tier: 1
|
||||
|
@ -14,3 +14,4 @@ link:
|
||||
- relates: https://bugzilla.redhat.com/show_bug.cgi?id=822503
|
||||
extra-summary: /tools/systemtap/Regression/ipv6-tapset-support
|
||||
extra-task: /tools/systemtap/Regression/ipv6-tapset-support
|
||||
tier: 1
|
||||
|
@ -31,6 +31,7 @@
|
||||
|
||||
rlJournalStart
|
||||
rlPhaseStartSetup
|
||||
rlLogInfo "Related bugs: Fedora rawhide 6.2.0-0.rc8.57.fc39.x86_64 bz2177192"
|
||||
rlAssertRpm nfs-utils
|
||||
rlRun "uname -r"
|
||||
rlRun "which stap"
|
||||
|
@ -13,3 +13,4 @@ link:
|
||||
- relates: https://bugzilla.redhat.com/show_bug.cgi?id=1020437
|
||||
extra-summary: /tools/systemtap/Regression/irq-vector-tracepoints
|
||||
extra-task: /tools/systemtap/Regression/irq-vector-tracepoints
|
||||
tier: 1
|
||||
|
@ -12,3 +12,4 @@ link:
|
||||
- relates: https://bugzilla.redhat.com/show_bug.cgi?id=1518462
|
||||
extra-summary: /tools/systemtap/Regression/netdev-receive
|
||||
extra-task: /tools/systemtap/Regression/netdev-receive
|
||||
tier: 1
|
||||
|
@ -35,7 +35,7 @@ rlJournalStart
|
||||
rlPhaseStartTest
|
||||
# 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.
|
||||
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 "grep HIT $TMPFILE"
|
||||
rlRun "grep TIMEOUT $TMPFILE" 1
|
||||
|
@ -14,3 +14,4 @@ link:
|
||||
- relates: https://bugzilla.redhat.com/show_bug.cgi?id=1055778
|
||||
extra-summary: /tools/systemtap/Regression/pass-4-failure-netfilter-examples
|
||||
extra-task: /tools/systemtap/Regression/pass-4-failure-netfilter-examples
|
||||
tier: 1
|
||||
|
@ -14,3 +14,4 @@ link:
|
||||
- relates: https://bugzilla.redhat.com/show_bug.cgi?id=1857749
|
||||
extra-summary: /tools/systemtap/Regression/second-command-not-captured
|
||||
extra-task: /tools/systemtap/Regression/second-command-not-captured
|
||||
tier: 1
|
||||
|
@ -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
|
@ -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
|
@ -12,3 +12,4 @@ link:
|
||||
- relates: https://bugzilla.redhat.com/show_bug.cgi?id=884951
|
||||
extra-summary: /tools/systemtap/Regression/semantic-error-nfs-proc-read_setup
|
||||
extra-task: /tools/systemtap/Regression/semantic-error-nfs-proc-read_setup
|
||||
tier: 1
|
||||
|
@ -12,3 +12,4 @@ link:
|
||||
- relates: https://bugzilla.redhat.com/show_bug.cgi?id=1062076
|
||||
extra-summary: /tools/systemtap/Regression/semantic-errors-bz1062076
|
||||
extra-task: /tools/systemtap/Regression/semantic-errors-bz1062076
|
||||
tier: 1
|
||||
|
@ -31,9 +31,10 @@
|
||||
|
||||
rlJournalStart
|
||||
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"
|
||||
p=""
|
||||
stap -vp4 sript.stp >& /dev/null || p="-P"
|
||||
stap -vp4 script.stp >& /dev/null || p="-P"
|
||||
rlRun "stap $p -vp4 script.stp"
|
||||
rlPhaseEnd
|
||||
rlJournalPrintText
|
||||
|
@ -15,3 +15,4 @@ link:
|
||||
- relates: https://bugzilla.redhat.com/show_bug.cgi?id=953776
|
||||
extra-summary: /tools/systemtap/Regression/semantic-errors-bz953776
|
||||
extra-task: /tools/systemtap/Regression/semantic-errors-bz953776
|
||||
tier: 1
|
||||
|
@ -12,3 +12,4 @@ link:
|
||||
- relates: https://bugzilla.redhat.com/show_bug.cgi?id=1566422
|
||||
extra-summary: /tools/systemtap/Regression/stap-ERROR-Build-id-mismatch-with
|
||||
extra-task: /tools/systemtap/Regression/stap-ERROR-Build-id-mismatch-with
|
||||
tier: 1
|
||||
|
@ -13,3 +13,4 @@ link:
|
||||
- relates: https://bugzilla.redhat.com/show_bug.cgi?id=1020207
|
||||
extra-summary: /tools/systemtap/Regression/stapio-possible-circular-locking-dependency
|
||||
extra-task: /tools/systemtap/Regression/stapio-possible-circular-locking-dependency
|
||||
tier: 1
|
||||
|
@ -12,3 +12,4 @@ link:
|
||||
- relates: https://bugzilla.redhat.com/show_bug.cgi?id=1788662
|
||||
extra-summary: /tools/systemtap/Regression/suspicious-RCU-usage
|
||||
extra-task: /tools/systemtap/Regression/suspicious-RCU-usage
|
||||
tier: 1
|
||||
|
@ -13,3 +13,4 @@ link:
|
||||
- relates: https://bugzilla.redhat.com/show_bug.cgi?id=1004059
|
||||
extra-summary: /tools/systemtap/Regression/syscall-get-arguments-returning-wrong-value
|
||||
extra-task: /tools/systemtap/Regression/syscall-get-arguments-returning-wrong-value
|
||||
tier: 1
|
||||
|
@ -12,3 +12,4 @@ link:
|
||||
- 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-task: /tools/systemtap/Regression/task-cwd-path-results-in-an-in-kernel-memory-leak
|
||||
tier: 1
|
||||
|
@ -12,3 +12,4 @@ link:
|
||||
- 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-task: /tools/systemtap/Regression/task-exe-file-results-in-an-file-struct-leak
|
||||
tier: 1
|
||||
|
@ -14,3 +14,4 @@ link:
|
||||
- relates: https://bugzilla.redhat.com/show_bug.cgi?id=876848
|
||||
extra-summary: /tools/systemtap/Regression/utrace-taskfinder-misses-events
|
||||
extra-task: /tools/systemtap/Regression/utrace-taskfinder-misses-events
|
||||
tier: 1
|
||||
|
@ -12,3 +12,4 @@ link:
|
||||
- relates: https://bugzilla.redhat.com/show_bug.cgi?id=920444
|
||||
extra-summary: /tools/systemtap/Regression/wrong-data-returned-by-nfs-commit-done
|
||||
extra-task: /tools/systemtap/Regression/wrong-data-returned-by-nfs-commit-done
|
||||
tier: 1
|
||||
|
@ -28,6 +28,7 @@
|
||||
|
||||
# Include Beaker environment
|
||||
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
||||
. /etc/os-release || exit 1
|
||||
|
||||
PACKAGE="systemtap"
|
||||
|
||||
@ -47,9 +48,7 @@ rlJournalStart
|
||||
|
||||
rlPhaseStart FAIL "Build testing binary, prepare nfs environment"
|
||||
rlRun "make"
|
||||
rlRun "rhelmajor=$(rpm --eval %{rhel})"
|
||||
rlRun "chmod u+x test-for-nfs"
|
||||
rlRun "./test-for-nfs RHEL${rhelmajor}"
|
||||
rlRun "./test-for-nfs"
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartTest
|
||||
@ -62,7 +61,7 @@ rlJournalStart
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStart WARN "Clean the nfs environment up"
|
||||
rlRun "./test-for-nfs -c RHEL${rhelmajor}"
|
||||
rlRun "./test-for-nfs -c"
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartCleanup
|
||||
|
@ -8,11 +8,6 @@ nfs_service()
|
||||
local status="$1"
|
||||
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
|
||||
restart)
|
||||
ps -ef | grep "nfsd" | grep -v grep > /dev/null 2>&1
|
||||
@ -21,22 +16,12 @@ nfs_service()
|
||||
return 0
|
||||
fi
|
||||
|
||||
if [[ "$2" == "RHEL7" || "$2" == "RHEL8" || "$2" == "RHEL9" ]]; then
|
||||
/bin/systemctl restart nfs-server.service
|
||||
ret=$?
|
||||
else
|
||||
/etc/init.d/nfs restart
|
||||
ret=$?
|
||||
fi
|
||||
/bin/systemctl restart nfs-server.service
|
||||
ret=$?
|
||||
;;
|
||||
stop)
|
||||
if [[ "$2" == "RHEL7" || "$2" == "RHEL8" || "$2" == "RHEL9" ]]; then
|
||||
/bin/systemctl stop nfs-server.service
|
||||
ret=$?
|
||||
else
|
||||
/etc/init.d/nfs stop
|
||||
ret=$?
|
||||
fi
|
||||
/bin/systemctl stop nfs-server.service
|
||||
ret=$?
|
||||
;;
|
||||
*)
|
||||
echo "Error: nfs_service [stop|restart]"
|
||||
@ -52,7 +37,7 @@ clean_nfs_env()
|
||||
umount "$NFS_TMP"/sts_mount
|
||||
/usr/sbin/exportfs -u 127.0.0.1:"$NFS_TMP"/sts_share
|
||||
rm -rf "$NFS_TMP"
|
||||
nfs_service stop $1
|
||||
nfs_service stop
|
||||
if [ $? -ne 0 ]; then
|
||||
return 1
|
||||
else
|
||||
@ -63,7 +48,7 @@ clean_nfs_env()
|
||||
|
||||
create_nfs_env()
|
||||
{
|
||||
nfs_service restart $1
|
||||
nfs_service restart
|
||||
if [ $? -ne 0 ]; then
|
||||
return 1
|
||||
fi
|
||||
@ -80,31 +65,26 @@ create_nfs_env()
|
||||
}
|
||||
|
||||
if [ $# -gt 2 ]; then
|
||||
echo "Usage: test-for-nfs [-c] OS_VERSION"
|
||||
echo "Usage: test-for-nfs [-c]"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
case "$1" in
|
||||
-c)
|
||||
clean_nfs_env $2
|
||||
clean_nfs_env
|
||||
ret=$?
|
||||
if [ $ret -ne 0 ]; then
|
||||
echo "Error: cleaning the nfs env for test failed."
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
if [ ! -z "$1" ]; then
|
||||
create_nfs_env $1
|
||||
ret=$?
|
||||
if [ $ret -eq 0 ]; then
|
||||
echo "Info: The nfs env for test create successfully."
|
||||
else
|
||||
echo "Error: creating the nfs env for test failed."
|
||||
fi
|
||||
else
|
||||
echo "Usage: test-for-nfs [-c] OS_VERSION"
|
||||
ret=1
|
||||
fi
|
||||
create_nfs_env
|
||||
ret=$?
|
||||
if [ $ret -eq 0 ]; then
|
||||
echo "Info: The nfs env for test create successfully."
|
||||
else
|
||||
echo "Error: creating the nfs env for test failed."
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
|
@ -10,3 +10,4 @@ recommend:
|
||||
duration: 15m
|
||||
extra-summary: /tools/systemtap/Sanity/byteman-java-methods-probing
|
||||
extra-task: /tools/systemtap/Sanity/byteman-java-methods-probing
|
||||
tier: 1
|
||||
|
@ -15,3 +15,4 @@ recommend:
|
||||
duration: 10m
|
||||
extra-summary: /tools/systemtap/Sanity/kernel-modules
|
||||
extra-task: /tools/systemtap/Sanity/kernel-modules
|
||||
tier: 1
|
||||
|
@ -13,3 +13,4 @@ recommend:
|
||||
duration: 1h
|
||||
extra-summary: /tools/systemtap/Sanity/quick-smoke-test
|
||||
extra-task: /tools/systemtap/Sanity/quick-smoke-test
|
||||
tier: 1
|
||||
|
@ -15,3 +15,4 @@ recommend:
|
||||
duration: 45m
|
||||
extra-summary: /tools/systemtap/Sanity/stap-server-basic-sanity
|
||||
extra-task: /tools/systemtap/Sanity/stap-server-basic-sanity
|
||||
tier: 1
|
||||
|
@ -14,3 +14,4 @@ link:
|
||||
- relates: https://bugzilla.redhat.com/show_bug.cgi?id=855981
|
||||
extra-summary: /CoreOS/systemtap/Sanity/userspace-probes
|
||||
extra-task: /CoreOS/systemtap/Sanity/userspace-probes
|
||||
tier: 1
|
||||
|
Loading…
Reference in New Issue
Block a user