mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-25 19:21:35 +01:00
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.
28 lines
454 B
Bash
Executable File
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.'
|