Mercurial > hg > aboriginal
annotate smoketest.sh @ 625:065e1a0f6697
The new distcc version notices the host has the python binary, and assumes
it has the python-dev package installed as well supplying Python.h, which isn't
remotely guaranteed. So trim the $PATH to prevent it from finding python.
author | Rob Landley <rob@landley.net> |
---|---|
date | Tue, 17 Feb 2009 13:53:50 -0600 |
parents | 148b62e763d3 |
children | 0ac06d08cfe5 |
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 |
1a70dfe0a436
Quick smoke test for system image: ./smoketest.sh $ARCH | grep 'Hello world!'
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
4 # to the cross compiler. |
1a70dfe0a436
Quick smoke test for system image: ./smoketest.sh $ARCH | grep 'Hello world!'
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
5 |
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 |
1a70dfe0a436
Quick smoke test for system image: ./smoketest.sh $ARCH | grep 'Hello world!'
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
7 # character. This gives some harmless data for the linux boot process to |
1a70dfe0a436
Quick smoke test for system image: ./smoketest.sh $ARCH | grep 'Hello world!'
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
8 # consume and discard before it gets to the command prompt. I don't know why |
1a70dfe0a436
Quick smoke test for system image: ./smoketest.sh $ARCH | grep 'Hello world!'
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
9 # it does this, but it does. The comment character is so you can see how |
1a70dfe0a436
Quick smoke test for system image: ./smoketest.sh $ARCH | grep 'Hello world!'
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
10 # much got eaten, generally about 3 characters. |
1a70dfe0a436
Quick smoke test for system image: ./smoketest.sh $ARCH | grep 'Hello world!'
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
11 |
1a70dfe0a436
Quick smoke test for system image: ./smoketest.sh $ARCH | grep 'Hello world!'
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
12 # 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
|
13 # 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
|
14 |
522 | 15 ./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
|
16 # |
1a70dfe0a436
Quick smoke test for system image: ./smoketest.sh $ARCH | grep 'Hello world!'
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
17 # Show free space |
1a70dfe0a436
Quick smoke test for system image: ./smoketest.sh $ARCH | grep 'Hello world!'
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
18 df |
1a70dfe0a436
Quick smoke test for system image: ./smoketest.sh $ARCH | grep 'Hello world!'
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
19 # Smoke test for the compiler |
522 | 20 gcc -s /usr/src/thread-hello2.c -lpthread && |
345
1a70dfe0a436
Quick smoke test for system image: ./smoketest.sh $ARCH | grep 'Hello world!'
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
21 ./a.out |
1a70dfe0a436
Quick smoke test for system image: ./smoketest.sh $ARCH | grep 'Hello world!'
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
22 sync |
1a70dfe0a436
Quick smoke test for system image: ./smoketest.sh $ARCH | grep 'Hello world!'
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
23 exit |
1a70dfe0a436
Quick smoke test for system image: ./smoketest.sh $ARCH | grep 'Hello world!'
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
24 EOF |