Ignore:
Timestamp:
Nov 4, 2007, 3:16:40 AM (18 years ago)
Author:
Bruno Cornec
Message:

Update to busybox 1.7.2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.5/mindi-busybox/testsuite/runtest

    r821 r1765  
    77# Run old-style test.
    88
    9 function run_applet_testcase
     9run_applet_testcase()
    1010{
    1111    local applet=$1
     
    5656}
    5757
    58 run_applet_tests ()
     58run_applet_tests()
    5959{
    6060    local applet=$1
     
    9595# Populate a directory with links to all busybox applets
    9696
    97 LINKSDIR="${bindir}/runtest-tempdir-links"
     97LINKSDIR="$bindir/runtest-tempdir-links"
     98implemented=$($bindir/busybox 2>&1 |
     99    while read line
     100    do
     101        if test x"$line" = x"Currently defined functions:"
     102        then
     103            xargs | sed 's/,//g'
     104            break
     105        fi
     106    done
     107    )
    98108rm -rf "$LINKSDIR" 2>/dev/null
    99109mkdir "$LINKSDIR"
    100 for i in $(sed 's@/[a-z0-9/\[]*/@@' $bindir/busybox.links 2>/dev/null)
     110for i in $implemented
    101111do
    102112    ln -s $bindir/busybox "$LINKSDIR"/$i
     
    128138        fi
    129139        if PATH="$LINKSDIR":$srcdir:$bindir:$PATH \
    130             "${srcdir:-.}/$applet".tests
     140                "${srcdir:-.}/$applet".tests
    131141        then
    132           :
     142            :
    133143        else
    134           status=1
     144            status=1
    135145        fi
    136146    fi
Note: See TracChangeset for help on using the changeset viewer.