silence error if busybox.links doesnt exist and run tests that begin with "all_"

This commit is contained in:
Mike Frysinger 2006-04-01 01:35:33 +00:00
parent 43ac88849b
commit 2cf38523a1

View File

@ -98,7 +98,7 @@ fi
LINKSDIR="${bindir}/runtest-tempdir-links" LINKSDIR="${bindir}/runtest-tempdir-links"
rm -rf "$LINKSDIR" 2>/dev/null rm -rf "$LINKSDIR" 2>/dev/null
mkdir "$LINKSDIR" mkdir "$LINKSDIR"
for i in $(sed 's@/[a-z0-9/\[]*/@@' $bindir/busybox.links) for i in $(sed 's@/[a-z0-9/\[]*/@@' $bindir/busybox.links 2>/dev/null)
do do
ln -s $bindir/busybox "$LINKSDIR"/$i ln -s $bindir/busybox "$LINKSDIR"/$i
done done
@ -122,7 +122,7 @@ for applet in $applets; do
applet=$(echo "$applet" | sed -n 's/\.tests$//p') applet=$(echo "$applet" | sed -n 's/\.tests$//p')
if [ ${#applet} -ne 0 ] if [ ${#applet} -ne 0 ]
then then
if [ ! -h "$LINKSDIR/$applet" ] if [ ! -h "$LINKSDIR/$applet" ] && [ ${applet:0:4} != "all_" ]
then then
echo "SKIPPED: $applet (not built)" echo "SKIPPED: $applet (not built)"
continue continue