kpatch/test/integration/rhel-8.9/module-LOADED.test
Ryan Sullivan 452047381f test/integration/rhel-8.9: integration testing for rhel-8.9
Provides integration tests for rhel-8.9 (kernel-4.18.0-513.5.1.el8_9),
note that module.test is from the linux-6.2/ directory and not
rhel-8.8/

Signed-off-by: Ryan Sullivan <rysulliv@redhat.com>
2023-12-05 11:58:55 -05:00

12 lines
356 B
Bash
Executable File

#!/bin/bash
set -o errexit
sudo modprobe xfs
sleep 5
grep -q kpatch /sys/fs/xfs/stats/stats
# TODO: This will trigger a printk on newer kernels which have the .klp.arch
# removal. Don't actually do the grep until running on a newer kernel.
echo "file fs/xfs/xfs_stats.c +p" > /sys/kernel/debug/dynamic_debug/control
# dmesg | grep -q "kpatch: pr_debug"