Mercurial > hg > aboriginal
view smoketest.sh @ 810:4cfa8c130605
Brown paper bag bug: setting HOST_BUILD_EXTRA or using ./download.sh --extract causes a build break.
The regex in the shell function noversion doesn't recognize two consecutive letters as part of a legitimate version name, so qemu-2d18e637e5ec.tar.bz2 should actually be qemu-2d18e637e5e.tar.bz2 in order to be recognized as "qemu". (That's using the git commit ID as the version, which would have worked if I'd cut it in the right place.)
I forgot that ./buildall.sh doesn't use ./download.sh --extract anymore, so of course it didn't catch this.
author | Rob Landley <rob@landley.net> |
---|---|
date | Fri, 21 Aug 2009 22:56:13 -0500 |
parents | 6caf372a8b12 |
children | 2ca7ea5d3ec1 |
line wrap: on
line source
#!/bin/bash . sources/functions.sh || exit 1 # This script compiles stuff under the final system, using distcc to call out # to the cross compiler. # Set up a timeout. If it doesn't complete in 60 seconds, it failed. timeout() { sleep 60 kill $1 } timeout $$ & trap "killtree $$" EXIT # Call run-from-build with a here document to do stuff. # Note that the first line of the script is a few spaces followed by a comment # character. This gives some harmless data for the linux boot process to # consume and discard before it gets to the command prompt. I don't know why # it does this, but it does. The comment character is so you can see how # much got eaten, generally about 3 characters. # If you cat your own script into emulator-build.sh, you probably also need # to start with a line of spaces like that. Just FYI. SKIP_HOME=1 ./run-from-build.sh $1 << 'EOF' # # Show free space df # Smoke test for the compiler gcc -s /usr/src/thread-hello2.c -lpthread -o /tmp/hello && /tmp/hello sync exit EOF