aboriginal

changeset 345:1a70dfe0a436 0.4.0

Quick smoke test for system image: ./smoketest.sh $ARCH | grep 'Hello world!' The result should be "Hello world!". (Also acts as a template for driving a qemu instance from a script.)
author Rob Landley <rob@landley.net>
date Wed, 04 Jun 2008 18:03:00 -0500
parents cffc6d6ff459
children 8a71354d8ceb
files smoketest.sh
diffstat 1 files changed, 24 insertions(+), 0 deletions(-) [+]
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/smoketest.sh	Wed Jun 04 18:03:00 2008 -0500
     1.3 @@ -0,0 +1,24 @@
     1.4 +#!/bin/bash
     1.5 +
     1.6 +# This script compiles stuff under the final system, using distcc to call out
     1.7 +# to the cross compiler.
     1.8 +
     1.9 +# Note that the first line of the script is a few spaces followed by a comment
    1.10 +# character.  This gives some harmless data for the linux boot process to
    1.11 +# consume and discard before it gets to the command prompt.  I don't know why
    1.12 +# it does this, but it does.  The comment character is so you can see how
    1.13 +# much got eaten, generally about 3 characters.
    1.14 +
    1.15 +# If you cat your own script into emulator-build.sh, you probably also need
    1.16 +# to start with a line of spaces like that.  Just FYI.
    1.17 +
    1.18 +./emulator-build.sh $1 << 'EOF'
    1.19 +          #
    1.20 +# Show free space
    1.21 +df
    1.22 +# Smoke test for the compiler
    1.23 +gcc -s /tools/src/thread-hello2.c -lpthread &&
    1.24 +./a.out
    1.25 +sync
    1.26 +exit
    1.27 +EOF