view images/busybox-test/build.sh @ 29:f3e1afd794a5

The zlib developers remove each old version as the new one as released, to discourage people from using it (I.E. zlib). Remind me to copy the mirroring architecture into the control image shared infrastructure.
author Rob Landley <rob@landley.net>
date Sun, 10 Jun 2012 20:30:25 -0500
parents 0e641b064adf
children
line wrap: on
line source

#!/bin/bash

# Run the busybox test suite.

EXTRACT_ALL=1

URL=http://www.busybox.net/downloads/busybox-1.20.0.tar.bz2 \
SHA1=b8f5721557d437d2539dd3f7db91683ec50bdade \
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 &&
make -j $CPUS &&
cd testsuite &&
./runtest &&
cd .. &&
rm -rf busybox || exit 1

sync

EOF
chmod +x "$WORK"/init || dienow