Mercurial > hg > aboriginal
comparison more/cross-smoke-test.sh @ 1170:e34c00072500
Comment tweak for cross-smoke-test.sh.
author | Rob Landley <rob@landley.net> |
---|---|
date | Sat, 17 Jul 2010 13:29:12 -0500 |
parents | 300e6d919d86 |
children | b74d36876c0a |
comparison
equal
deleted
inserted
replaced
1169:d13ddec32cee | 1170:e34c00072500 |
---|---|
1 #!/bin/bash | 1 #!/bin/bash |
2 | |
3 # Perform a smoke test on a target's cross compiler by building "hello world" | |
4 # and attempting to run it under QEMU application emulation. | |
2 | 5 |
3 source sources/include.sh && read_arch_dir "$1" || exit 1 | 6 source sources/include.sh && read_arch_dir "$1" || exit 1 |
4 | 7 |
5 # Build statically linked hello world, if necessary | 8 # Build statically linked hello world, if necessary |
6 | 9 |
19 | 22 |
20 RESULT="$(PATH="$OLDPATH" qemu-"$QEMU_TEST" "$WORK/hello")" | 23 RESULT="$(PATH="$OLDPATH" qemu-"$QEMU_TEST" "$WORK/hello")" |
21 if [ "$RESULT" == "Hello world!" ] | 24 if [ "$RESULT" == "Hello world!" ] |
22 then | 25 then |
23 echo "Cross toolchain seems to work." | 26 echo "Cross toolchain seems to work." |
27 exit 0 | |
24 else | 28 else |
25 echo "Can't run hello world" >&2 | 29 echo "Can't run hello world" >&2 |
26 dienow | 30 exit 1 |
27 fi | 31 fi |