Changeset 1770 in MondoRescue for branches/stable/mindi-busybox/testsuite/runtest
- Timestamp:
- Nov 6, 2007, 11:01:53 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mindi-busybox/testsuite/runtest
r821 r1770 7 7 # Run old-style test. 8 8 9 function run_applet_testcase 9 run_applet_testcase() 10 10 { 11 11 local applet=$1 … … 56 56 } 57 57 58 run_applet_tests 58 run_applet_tests() 59 59 { 60 60 local applet=$1 … … 95 95 # Populate a directory with links to all busybox applets 96 96 97 LINKSDIR="${bindir}/runtest-tempdir-links" 97 LINKSDIR="$bindir/runtest-tempdir-links" 98 implemented=$($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 ) 98 108 rm -rf "$LINKSDIR" 2>/dev/null 99 109 mkdir "$LINKSDIR" 100 for i in $ (sed 's@/[a-z0-9/\[]*/@@' $bindir/busybox.links 2>/dev/null)110 for i in $implemented 101 111 do 102 112 ln -s $bindir/busybox "$LINKSDIR"/$i … … 128 138 fi 129 139 if PATH="$LINKSDIR":$srcdir:$bindir:$PATH \ 130 "${srcdir:-.}/$applet".tests140 "${srcdir:-.}/$applet".tests 131 141 then 132 142 : 133 143 else 134 144 status=1 135 145 fi 136 146 fi
Note:
See TracChangeset
for help on using the changeset viewer.