annotate test/bare/qemutst.sh @ 331:a78b41ff6ad2

Added better recipe files
author Windel Bouwman
date Fri, 07 Feb 2014 12:39:59 +0100
parents 61c9df5bffce
children
rev   line source
326
2fa27c44e3c9 Changed hasbang
Windel Bouwman
parents: 325
diff changeset
1 #!/usr/bin/env bash
324
ed6d0adaa626 Added qemu arm emulated image
Windel Bouwman
parents:
diff changeset
2
325
0dd36d2eb954 Added bin file for test
Windel Bouwman
parents: 324
diff changeset
3 set -e
0dd36d2eb954 Added bin file for test
Windel Bouwman
parents: 324
diff changeset
4
0dd36d2eb954 Added bin file for test
Windel Bouwman
parents: 324
diff changeset
5 echo "quit" | socat stdio stdio
0dd36d2eb954 Added bin file for test
Windel Bouwman
parents: 324
diff changeset
6
324
ed6d0adaa626 Added qemu arm emulated image
Windel Bouwman
parents:
diff changeset
7 echo "Trying to run versatilePB board"
ed6d0adaa626 Added qemu arm emulated image
Windel Bouwman
parents:
diff changeset
8
327
61c9df5bffce Changed emulated board to cortex a8 board
Windel Bouwman
parents: 326
diff changeset
9 qemu-system-arm -M realview-pb-a8 -m 128M -nographic -kernel bare.bin \
325
0dd36d2eb954 Added bin file for test
Windel Bouwman
parents: 324
diff changeset
10 -monitor unix:vm.sock,server,nowait -serial file:output.txt &
324
ed6d0adaa626 Added qemu arm emulated image
Windel Bouwman
parents:
diff changeset
11
331
a78b41ff6ad2 Added better recipe files
Windel Bouwman
parents: 327
diff changeset
12 sleep 1
325
0dd36d2eb954 Added bin file for test
Windel Bouwman
parents: 324
diff changeset
13
0dd36d2eb954 Added bin file for test
Windel Bouwman
parents: 324
diff changeset
14 # Send quit to the monitor application
0dd36d2eb954 Added bin file for test
Windel Bouwman
parents: 324
diff changeset
15 echo "quit" | socat stdio UNIX-CONNECT:vm.sock
0dd36d2eb954 Added bin file for test
Windel Bouwman
parents: 324
diff changeset
16
327
61c9df5bffce Changed emulated board to cortex a8 board
Windel Bouwman
parents: 326
diff changeset
17 echo "Output from terminal:"
61c9df5bffce Changed emulated board to cortex a8 board
Windel Bouwman
parents: 326
diff changeset
18 cat output.txt
61c9df5bffce Changed emulated board to cortex a8 board
Windel Bouwman
parents: 326
diff changeset
19 echo ""
61c9df5bffce Changed emulated board to cortex a8 board
Windel Bouwman
parents: 326
diff changeset
20