Mercurial > hg > aboriginal
annotate smoketest.sh @ 732:0ac06d08cfe5
Root directory isn't writable with squashfs, use /tmp instead.
author | Rob Landley <rob@landley.net> |
---|---|
date | Mon, 18 May 2009 15:06:41 -0500 |
parents | 148b62e763d3 |
children | 46c4978c9a5c |
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 |
732
0ac06d08cfe5
Root directory isn't writable with squashfs, use /tmp instead.
Rob Landley <rob@landley.net>
parents:
522
diff
changeset
|
20 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
|
21 /tmp/hello |
345
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 |