annotate smoketest.sh @ 1044:c1556be739ba

Fix one more place timeout.sh moved.
author Rob Landley <rob@landley.net>
date Sat, 01 May 2010 00:58:02 -0500
parents 2ca7ea5d3ec1
children 716ad74e0598
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
778
e373d2b6d0b8 Add killtree and make stuff use it. Update smoketest-all.sh to use doforklog, allowing FORK=1 to run stuff in parallel.
Rob Landley <rob@landley.net>
parents: 751
diff changeset
3 . sources/functions.sh || exit 1
e373d2b6d0b8 Add killtree and make stuff use it. Update smoketest-all.sh to use doforklog, allowing FORK=1 to run stuff in parallel.
Rob Landley <rob@landley.net>
parents: 751
diff changeset
4
345
1a70dfe0a436 Quick smoke test for system image: ./smoketest.sh $ARCH | grep 'Hello world!'
Rob Landley <rob@landley.net>
parents:
diff changeset
5 # 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
6 # 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
7
345
1a70dfe0a436 Quick smoke test for system image: ./smoketest.sh $ARCH | grep 'Hello world!'
Rob Landley <rob@landley.net>
parents:
diff changeset
8 # 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
9 # 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
10 # 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
11 # (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
12
1a70dfe0a436 Quick smoke test for system image: ./smoketest.sh $ARCH | grep 'Hello world!'
Rob Landley <rob@landley.net>
parents:
diff changeset
13 # 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
14 # 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
15
1044
c1556be739ba Fix one more place timeout.sh moved.
Rob Landley <rob@landley.net>
parents: 843
diff changeset
16 SKIP_HOME=1 sources/more/timeout.sh 60 ./run-from-build.sh $1 << 'EOF'
345
1a70dfe0a436 Quick smoke test for system image: ./smoketest.sh $ARCH | grep 'Hello world!'
Rob Landley <rob@landley.net>
parents:
diff changeset
17 #
1a70dfe0a436 Quick smoke test for system image: ./smoketest.sh $ARCH | grep 'Hello world!'
Rob Landley <rob@landley.net>
parents:
diff changeset
18 # Show free space
1a70dfe0a436 Quick smoke test for system image: ./smoketest.sh $ARCH | grep 'Hello world!'
Rob Landley <rob@landley.net>
parents:
diff changeset
19 df
1a70dfe0a436 Quick smoke test for system image: ./smoketest.sh $ARCH | grep 'Hello world!'
Rob Landley <rob@landley.net>
parents:
diff changeset
20 # Smoke test for the compiler
732
0ac06d08cfe5 Root directory isn't writable with squashfs, use /tmp instead.
Rob Landley <rob@landley.net>
parents: 522
diff changeset
21 gcc -s /usr/src/thread-hello2.c -lpthread -o /tmp/hello &&
0ac06d08cfe5 Root directory isn't writable with squashfs, use /tmp instead.
Rob Landley <rob@landley.net>
parents: 522
diff changeset
22 /tmp/hello
345
1a70dfe0a436 Quick smoke test for system image: ./smoketest.sh $ARCH | grep 'Hello world!'
Rob Landley <rob@landley.net>
parents:
diff changeset
23 sync
1a70dfe0a436 Quick smoke test for system image: ./smoketest.sh $ARCH | grep 'Hello world!'
Rob Landley <rob@landley.net>
parents:
diff changeset
24 exit
1a70dfe0a436 Quick smoke test for system image: ./smoketest.sh $ARCH | grep 'Hello world!'
Rob Landley <rob@landley.net>
parents:
diff changeset
25 EOF