blob: 3f5c934756a8359281db405076e402f9adbfbaca (
plain) (
tree)
|
|
#!/bin/bash
(qemu-system-i386 -kernel test_kernel.bin -initrd ../../kernel/kernel.map -serial stdio -m 64 -display none & echo $! >pid) \
| tee >(grep -m 1 "TEST-" >result; kill -INT `cat pid`) \
RESULT=`cat result`
rm result
rm pid
if [ $RESULT != '(TEST-OK)' ]; then exit 1; fi
|