Files
linux-kernel-module-cheat/rootfs_overlay/lkmc/test_all.sh
Ciro Santilli 六四事件 法轮功 146e568db8 move all our stuff into /lkmc in guest
Motivation: userland is getting several new subdirectories, it would be
too insane to just dump all of that in the guest root filesystem.

To alleviate the cd pain, .profile puts user inside /lkmc by default.
2019-05-05 00:00:00 +00:00

28 lines
454 B
Bash
Executable File

#!/bin/sh
test_dir="${1:-.}"
for test in \
anonymous_inode.sh \
character_device.sh \
character_device_create.sh \
debugfs.sh \
dep.sh \
fops.sh \
init_module.sh \
ioctl.sh \
kstrto.sh \
mmap.sh \
netlink.sh \
params.sh \
procfs.sh \
seq_file.sh \
seq_file_single_open.sh \
sysfs.sh \
; do
if ! "${test_dir}/${test}"; then
echo "Test failed: ${test}"
./test_fail.sh
exit 1
fi
done
echo 'All tests passed.'