blob: bd398b2d48a93dda8c9ed7de90cb435a0b827149 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
#!/bin/sh
set -e
die() {
echo "$1" >&2
exit 1
}
QEMU="$QDIR/usr/bin/qemu-system-arm"
ARGS="-no-reboot -M lm3s6965evb -m 16 -serial stdio -display none -net nic -net user,restrict=on -d guest_errors,unimp"
$QEMU --version
RET=0
dotest() {
echo "=============== Testing $1 ==============="
TEST="-kernel $1"
if perl tapit.pl "timeout 30 $QEMU $ARGS $TEST" </dev/null 2>&1
then
true
else
RET=1
if [ "$TRACEERR" ]; then
echo "Test error, re-run with -d exec"
timeout 30 $QEMU $ARGS $TEST </dev/null > test.log 2>&1 || true
head -n50 test.log
echo "==============="
tail -n50 test.log
fi
fi
}
make PREFIX="$XDIR/usr/bin"
dotest test1-kern.bin
dotest test9-kern.bin
dotest test10-kern.bin
dotest test4-kern.bin
dotest test5-kern.bin
dotest test13-kern.bin
exit $RET
|