comparison more/cross-smoke-test.sh @ 1157:300e6d919d86

Move "sources/more/" to just "more/", add a README explaining why those scripts are there, and adjust calls to them.
author Rob Landley <rob@landley.net>
date Mon, 05 Jul 2010 15:37:04 -0500
parents sources/more/cross-smoke-test.sh@48784ae8533e
children e34c00072500
comparison
equal deleted inserted replaced
1156:8ab750338f73 1157:300e6d919d86
1 #!/bin/bash
2
3 source sources/include.sh && read_arch_dir "$1" || exit 1
4
5 # Build statically linked hello world, if necessary
6
7 if [ ! -e "$WORK/hello" ]
8 then
9 "${ARCH}-gcc" -Os -static "${SOURCES}/toys/hello.c" -o "$WORK"/hello
10
11 if [ $? -ne 0 ]
12 then
13 echo "Compiler doesn't seem to work" >&2
14 dienow
15 fi
16 fi
17
18 # Attempt to run statically linked hello world
19
20 RESULT="$(PATH="$OLDPATH" qemu-"$QEMU_TEST" "$WORK/hello")"
21 if [ "$RESULT" == "Hello world!" ]
22 then
23 echo "Cross toolchain seems to work."
24 else
25 echo "Can't run hello world" >&2
26 dienow
27 fi