mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-04 05:26:47 +07:00
e0912c0129
With older kernels, printf.sh and bitmap.sh fail because they can't find the respective test modules they are looking for. Use modprobe dry run to check for missing test_XXX module. Error out with the same error code as prime_numbers.sh. Signed-off-by: Sumit Semwal <sumit.semwal@linaro.org> Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
15 lines
282 B
Bash
Executable File
15 lines
282 B
Bash
Executable File
#!/bin/sh
|
|
# Runs printf infrastructure using test_printf kernel module
|
|
if ! /sbin/modprobe -q -n test_printf; then
|
|
echo "printf: [SKIP]"
|
|
exit 77
|
|
fi
|
|
|
|
if /sbin/modprobe -q test_printf; then
|
|
/sbin/modprobe -q -r test_printf
|
|
echo "printf: ok"
|
|
else
|
|
echo "printf: [FAIL]"
|
|
exit 1
|
|
fi
|