view images/busybox-test/build.sh @ 40:ef471ef37665 draft default tip

Yank reliance on ash.
author Rob Landley <rob@landley.net>
date Sat, 18 Jul 2015 01:39:24 -0500
parents f3e1afd794a5
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