mirror of
https://github.com/torvalds/linux.git
synced 2024-12-13 22:53:20 +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>
12 lines
280 B
Bash
Executable File
12 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
|