view images/busybox-test/build.sh @ 20:e2d5699cee3a

Fix a couple problems with the util-linux build.
author Rob Landley <rob@landley.net>
date Sun, 06 Nov 2011 21:08:49 -0600
parents 242a1e03ce15
children 0e641b064adf
line wrap: on
line source

#!/bin/bash

# Run the busybox test suite.

EXTRACT_ALL=1

URL=http://www.busybox.net/downloads/busybox-1.18.4.tar.bz2 \
SHA1=d285855e5770b0fb7caf477dd41ce0863657b975 \
maybe_fork "download || dienow"

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