view images/busybox-test/build.sh @ 25:0e641b064adf

Now that Aboriginal Linux doesn't include a defconfig busybox, build one to test.
author Rob Landley <rob@landley.net>
date Thu, 19 Apr 2012 00:13:11 -0500
parents 242a1e03ce15
children f3e1afd794a5
line wrap: on
line source

#!/bin/bash

# Run the busybox test suite.

EXTRACT_ALL=1

URL=http://www.busybox.net/downloads/busybox-1.19.4.tar.bz2 \
SHA1=5d7db83d8efbadc19c86ec236e673504bbf43517 \
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