aboutsummaryrefslogtreecommitdiff
path: root/src/tests/ktests/run_qemu_test.sh
blob: 5f7df832affa0c7e20891010babf58203ae7f8cd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash

(qemu-system-i386 -kernel test_kernel.bin -initrd ../../../kernel/kernel.map -serial stdio -m 16 -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