Cheers,
--
Cristian
Index: testsuite/runtest
===================================================================
--- testsuite/runtest (revision 21873)
+++ testsuite/runtest (working copy)
@@ -14,8 +14,9 @@
local status
local uc_applet=$(echo $applet | tr a-z A-Z)
- local testname=$(basename "$testcase")
+ local testname="$testcase"
+ testname=${testname##*/}
if grep -q "^# CONFIG_${uc_applet} is not set$" $bindir/.config; then
echo "UNTESTED: $testname"
return 0
@@ -57,8 +58,11 @@
{
local applet=$1
local status=0
+ local tc
+
for testcase in $tsdir/$applet/*; do
- case $(basename "$testcase") in
+ tc=${testcase##*/}
+ case "$tc" in
\#*)
continue
;;
@@ -78,8 +82,9 @@
-[ -n "$tsdir" ] || tsdir=$(pwd)
-[ -n "$bindir" ] || bindir=$(dirname $(pwd))
+lcwd=$(pwd)
+[ "$tsdir" ] || tsdir=$lcwd
+[ "$bindir" ] || bindir=${lcwd%/*}
PATH="$bindir:$PATH"
if [ x"$VERBOSE" = x ]; then
_______________________________________________
busybox mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/busybox