mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-11-01 00:48:50 +00:00
509e56b37c
Since this is not really a device with all capabilities, this test ensures that it has *enough* to make it through the data path without causing unwanted side-effects (read crash!). Signed-off-by: Mahesh Bandewar <maheshb@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
11 lines
280 B
Bash
Executable file
11 lines
280 B
Bash
Executable file
#!/bin/sh
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
# Runs blackhole-dev test using blackhole-dev kernel module
|
|
|
|
if /sbin/modprobe -q test_blackhole_dev ; then
|
|
/sbin/modprobe -q -r test_blackhole_dev;
|
|
echo "test_blackhole_dev: ok";
|
|
else
|
|
echo "test_blackhole_dev: [FAIL]";
|
|
exit 1;
|
|
fi
|