view sources/control-images/busybox-test.sh @ 1403:42698b9646c2

Add m68k back.
author Rob Landley <rob@landley.net>
date Mon, 27 Jun 2011 07:36:56 -0500
parents 35dc1da8988c
children
line wrap: on
line source

#!/bin/bash

# Run the busybox test suite.

source sources/include.sh || exit 1

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" "$WORK.hdc" -noappend -all-root