Mercurial > hg > aboriginal
view sources/control-images/busybox-test.sh @ 1275:a4cb2ed0a551
Move sources/native-builds to sources/control-images, so the naming is consistent.
author | Rob Landley <rob@landley.net> |
---|---|
date | Sun, 07 Nov 2010 15:55:26 -0600 |
parents | sources/native-builds/busybox-test.sh@b41dbea3ba14 |
children | 35dc1da8988c |
line wrap: on
line source
#!/bin/bash # Run the busybox test suite. source sources/include.sh || exit 1 [ $# -ne 1 ] && echo "usage: $0 FILENAME" >&2 && exit 1 [ -e "$1" ] && echo "$1" exists && exit 0 WORK="$BUILD/control-images/busybox-test" && blank_tempdir "$WORK" # Don't download busybox, it's got to already be there in standard sources. setupfor busybox cd "$TOP" cat > "$WORK"/init << 'EOF' || dienow #!/bin/bash echo === $HOST Run busybox test suite cp -sfR /mnt/busybox busybox && cd busybox && make defconfig && ln -s /bin/busybox busybox && cd testsuite && ./runtest && cd .. && rm -rf busybox || exit 1 sync EOF chmod +x "$WORK"/init || dienow mksquashfs "$WORK" "$1" -noappend -all-root