systemtap/tests/Sanity/quick-smoke-test/runtest.sh
Martin Cermak 107122a4e8 CI tests: Add more tests
- Separate the "stap-prep" phase out to a separate phase
 - Add tests/Sanity/byteman-java-methods-probing
 - Add tests/Sanity/kernel-modules
 - Add tests/Sanity/userspace-probes
 - Add tests/Sanity/stap-server-basic-sanity
 - Add tests/Regression/small-tests
2021-06-09 16:28:54 +02:00

24 lines
731 B
Bash
Executable File

#!/bin/bash
# runtest.sh of /tools/systemtap/Sanity/quick-smoke-test
. /usr/share/beakerlib/beakerlib.sh || exit 1
export DEBUGINFOD_URLS="https://debuginfod.fedoraproject.org/ $DEBUGINFOD_URLS"
export DEBUGINFOD_TIMEOUT=300
# export DEBUGINFOD_PROGRESS=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