mirror of
https://git.kernel.org/pub/scm/libs/libcap/libcap.git
synced 2026-01-27 01:44:26 +00:00
I occasionally test libcap against a custom kernel using QEMU. Now I have a simple exit binary for exiting with status. From the top level, one can use: make ktest However, for more control: cd kdebug make test If you want to look around after the tests run: make shell Exit the shell & QEMU with ctrl-D (or exit). Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
20 lines
305 B
Bash
20 lines
305 B
Bash
#!/bin/sh
|
|
PATH=/bin
|
|
|
|
echo -n "Mounting filesystems ... "
|
|
mount -t proc proc /proc
|
|
mount -t devtmpfs dev /dev
|
|
mount -t sysfs sys /sys
|
|
mount -t devpts pts /dev/pts
|
|
echo done
|
|
|
|
echo Hello, World
|
|
cd /root
|
|
if [ -f ./interactive ]; then
|
|
./quicktest.sh
|
|
sh -i
|
|
else
|
|
./quicktest.sh || ./exit 1
|
|
fi
|
|
./exit
|