systemtap/tests/Sanity/quick-smoke-test/runtest.sh
Martin Cermak 4dfa7981ab CI Gating: Add the python-probing testcase
Add tests/Regression/python-probing covering rhbz2027683.  Also
do minor updates to help the other tests behave correctly.

Related: #2027683
2022-01-21 10:42:59 +01:00

19 lines
588 B
Bash
Executable File

#!/bin/bash
# runtest.sh of /tools/systemtap/Sanity/quick-smoke-test
. /usr/share/beakerlib/beakerlib.sh || exit 1
rlJournalStart
rlPhaseStartTest
rlRun "rpm -qa | egrep '^(kernel|systemtap)' | sort"
rlRun "uname -r"
rlRun "stap-prep"
rlRun "stap -L 'process(\"stap\").mark(\"*\")' | grep pass"
rlRun "stap -v --example helloworld.stp"
rlRun "stap -v -T 10 -p4 -e 'probe kernel.function(\"do_exit\") {println(\$\$vars)}'"
rlRun "stap -v -T 60 -e 'probe kernel.function(\"vfs_read\"){ println(\$\$vars); exit() }'"
rlPhaseEnd
rlJournalPrintText
rlJournalEnd