runtest: more cleanups

This commit is contained in:
Denis Vlasenko 2008-04-29 14:11:57 +00:00
parent b34266b42b
commit 3c07e4b877

View File

@ -54,7 +54,7 @@ run_applet_testcase()
} }
# Run all old-style tests for given applet # Run all old-style tests for given applet
run_applet_tests() run_oldstyle_applet_tests()
{ {
local applet="$1" local applet="$1"
local status=0 local status=0
@ -68,11 +68,13 @@ run_applet_tests()
*\~) *\~)
continue continue
;; ;;
esac "CVS")
if [ "$testcase" = "$tsdir/$applet/CVS" ] ||
[ "$testcase" = "$tsdir/$applet/.svn" ]; then
continue continue
fi ;;
.*)
continue
;;
esac
run_applet_testcase "$applet" "$testcase" run_applet_testcase "$applet" "$testcase"
test $? -eq 0 || status=1 test $? -eq 0 || status=1
done done
@ -124,13 +126,21 @@ export OPTIONFLAGS=:$(sed -nr 's/^CONFIG_//p' "$bindir/.config" | sed 's/=.*//'
status=0 status=0
for applet in $applets; do for applet in $applets; do
if [ "$applet" = "links" ]; then case "$applet" in
"links")
continue continue
fi ;;
"CVS")
continue
;;
.*)
continue
;;
esac
# Any old-style tests for this applet? # Any old-style tests for this applet?
if [ "$applet" != "CVS" -a -d "$tsdir/$applet" ]; then if [ -d "$tsdir/$applet" ]; then
run_applet_tests "$applet" run_oldstyle_applet_tests "$applet"
test $? -eq 0 || status=1 test $? -eq 0 || status=1
fi fi
@ -143,8 +153,8 @@ for applet in $applets; do
continue continue
fi fi
fi fi
# echo "Running test ${tsdir:-.}/$applet.tests" # echo "Running test $tsdir/$applet.tests"
PATH="$LINKSDIR:$tsdir:$bindir:$PATH" "${tsdir:-.}/$applet.tests" PATH="$LINKSDIR:$tsdir:$bindir:$PATH" "$tsdir/$applet.tests"
test $? -eq 0 || status=1 test $? -eq 0 || status=1
fi fi
done done