annotate more/smoketest.sh @ 1682:64316ca2bc9b

Remove redundant list assignment in ccwrap that screws up ordering and puts the -L entries in the wrong order.
author Rob Landley <rob@landley.net>
date Fri, 05 Sep 2014 23:54:01 -0500
parents a4823c561e28
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
345
1a70dfe0a436 Quick smoke test for system image: ./smoketest.sh $ARCH | grep 'Hello world!'
Rob Landley <rob@landley.net>
parents:
diff changeset
1 #!/bin/bash
1a70dfe0a436 Quick smoke test for system image: ./smoketest.sh $ARCH | grep 'Hello world!'
Rob Landley <rob@landley.net>
parents:
diff changeset
2
1a70dfe0a436 Quick smoke test for system image: ./smoketest.sh $ARCH | grep 'Hello world!'
Rob Landley <rob@landley.net>
parents:
diff changeset
3 # This script compiles stuff under the final system, using distcc to call out
843
2ca7ea5d3ec1 New native-static-build.sh to compile static dropbear, strace, and busybox inside the emulator and export 'em out via ftp.
Rob Landley <rob@landley.net>
parents: 779
diff changeset
4 # to the cross compiler. It calls run-from-build with a here document.
742
46c4978c9a5c Add a 60 second timeout to smoketest. (Some qemu failure modes involve hanging.)
Rob Landley <rob@landley.net>
parents: 732
diff changeset
5
345
1a70dfe0a436 Quick smoke test for system image: ./smoketest.sh $ARCH | grep 'Hello world!'
Rob Landley <rob@landley.net>
parents:
diff changeset
6 # Note that the first line of the script is a few spaces followed by a comment
843
2ca7ea5d3ec1 New native-static-build.sh to compile static dropbear, strace, and busybox inside the emulator and export 'em out via ftp.
Rob Landley <rob@landley.net>
parents: 779
diff changeset
7 # character. This gives some harmless data for the linux boot process (serial
2ca7ea5d3ec1 New native-static-build.sh to compile static dropbear, strace, and busybox inside the emulator and export 'em out via ftp.
Rob Landley <rob@landley.net>
parents: 779
diff changeset
8 # initialization) to consume and discard before it gets to the command prompt.
2ca7ea5d3ec1 New native-static-build.sh to compile static dropbear, strace, and busybox inside the emulator and export 'em out via ftp.
Rob Landley <rob@landley.net>
parents: 779
diff changeset
9 # (The comment character is just so you can see how much got eaten.)
345
1a70dfe0a436 Quick smoke test for system image: ./smoketest.sh $ARCH | grep 'Hello world!'
Rob Landley <rob@landley.net>
parents:
diff changeset
10
1a70dfe0a436 Quick smoke test for system image: ./smoketest.sh $ARCH | grep 'Hello world!'
Rob Landley <rob@landley.net>
parents:
diff changeset
11 # If you cat your own script into emulator-build.sh, you probably also need
1a70dfe0a436 Quick smoke test for system image: ./smoketest.sh $ARCH | grep 'Hello world!'
Rob Landley <rob@landley.net>
parents:
diff changeset
12 # to start with a line of spaces like that. Just FYI.
1a70dfe0a436 Quick smoke test for system image: ./smoketest.sh $ARCH | grep 'Hello world!'
Rob Landley <rob@landley.net>
parents:
diff changeset
13
1621
c23377891141 Make smoketest work slightly less badly.
Rob Landley <rob@landley.net>
parents: 1314
diff changeset
14 sayhello()
c23377891141 Make smoketest work slightly less badly.
Rob Landley <rob@landley.net>
parents: 1314
diff changeset
15 {
c23377891141 Make smoketest work slightly less badly.
Rob Landley <rob@landley.net>
parents: 1314
diff changeset
16 sleep 10
c23377891141 Make smoketest work slightly less badly.
Rob Landley <rob@landley.net>
parents: 1314
diff changeset
17 echo df
c23377891141 Make smoketest work slightly less badly.
Rob Landley <rob@landley.net>
parents: 1314
diff changeset
18 sleep 1
c23377891141 Make smoketest work slightly less badly.
Rob Landley <rob@landley.net>
parents: 1314
diff changeset
19 echo gcc -s /usr/src/thread-hello2.c -lpthread -o /tmp/hello
c23377891141 Make smoketest work slightly less badly.
Rob Landley <rob@landley.net>
parents: 1314
diff changeset
20 sleep 5
c23377891141 Make smoketest work slightly less badly.
Rob Landley <rob@landley.net>
parents: 1314
diff changeset
21 echo /tmp/hello
c23377891141 Make smoketest work slightly less badly.
Rob Landley <rob@landley.net>
parents: 1314
diff changeset
22 sleep 1
c23377891141 Make smoketest work slightly less badly.
Rob Landley <rob@landley.net>
parents: 1314
diff changeset
23 echo exit
c23377891141 Make smoketest work slightly less badly.
Rob Landley <rob@landley.net>
parents: 1314
diff changeset
24 }
1633
a4823c561e28 Patrick Lauer suggested making the smoketest timeout configurable, and default to 3 minutes when FORK=1.
Rob Landley <rob@landley.net>
parents: 1621
diff changeset
25 sayhello | more/timeout.sh ${TIMEOUT:-60} more/run-emulator-from-build.sh "$1"