annotate more/smoketest.sh @ 1522:95a720e694a6

Switch x86_64 from nptl back to pthreads. This isn't the correct fix but uClibc apparently never tested nptl on x86-64, and one of the assembly files doesn't support PIC.
author Rob Landley <rob@landley.net>
date Thu, 10 May 2012 22:03:22 -0500
parents ce5212c0fc05
children c23377891141
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
1235
d169a2c6f410 Smoketest was using the wrong run-emulator-from-build.sh path.
Rob Landley <rob@landley.net>
parents: 1157
diff changeset
14 more/timeout.sh 60 more/run-emulator-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
15 #
1a70dfe0a436 Quick smoke test for system image: ./smoketest.sh $ARCH | grep 'Hello world!'
Rob Landley <rob@landley.net>
parents:
diff changeset
16 # Show free space
1a70dfe0a436 Quick smoke test for system image: ./smoketest.sh $ARCH | grep 'Hello world!'
Rob Landley <rob@landley.net>
parents:
diff changeset
17 df
1a70dfe0a436 Quick smoke test for system image: ./smoketest.sh $ARCH | grep 'Hello world!'
Rob Landley <rob@landley.net>
parents:
diff changeset
18 # 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
19 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
20 /tmp/hello
345
1a70dfe0a436 Quick smoke test for system image: ./smoketest.sh $ARCH | grep 'Hello world!'
Rob Landley <rob@landley.net>
parents:
diff changeset
21 sync
1a70dfe0a436 Quick smoke test for system image: ./smoketest.sh $ARCH | grep 'Hello world!'
Rob Landley <rob@landley.net>
parents:
diff changeset
22 exit
1a70dfe0a436 Quick smoke test for system image: ./smoketest.sh $ARCH | grep 'Hello world!'
Rob Landley <rob@landley.net>
parents:
diff changeset
23 EOF