aboutsummaryrefslogtreecommitdiff
path: root/testsuite/runtest
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-04-29 14:11:57 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-04-29 14:11:57 +0000
commit3c07e4b8776da6f23251f98e95207f4c713d73bd (patch)
tree0d2197a6ee3851bb2a855480add5a54593fa8af1 /testsuite/runtest
parentb34266b42b5f6f78b7346c9ca90caebcd59db345 (diff)
downloadbusybox-3c07e4b8776da6f23251f98e95207f4c713d73bd.tar.gz
runtest: more cleanups
Diffstat (limited to 'testsuite/runtest')
-rwxr-xr-xtestsuite/runtest34
1 files changed, 22 insertions, 12 deletions
diff --git a/testsuite/runtest b/testsuite/runtest
index 660d08eca..7e0c771e7 100755
--- a/testsuite/runtest
+++ b/testsuite/runtest
@@ -54,7 +54,7 @@ run_applet_testcase()
}
# Run all old-style tests for given applet
-run_applet_tests()
+run_oldstyle_applet_tests()
{
local applet="$1"
local status=0
@@ -68,11 +68,13 @@ run_applet_tests()
*\~)
continue
;;
+ "CVS")
+ continue
+ ;;
+ .*)
+ continue
+ ;;
esac
- if [ "$testcase" = "$tsdir/$applet/CVS" ] ||
- [ "$testcase" = "$tsdir/$applet/.svn" ]; then
- continue
- fi
run_applet_testcase "$applet" "$testcase"
test $? -eq 0 || status=1
done
@@ -124,13 +126,21 @@ export OPTIONFLAGS=:$(sed -nr 's/^CONFIG_//p' "$bindir/.config" | sed 's/=.*//'
status=0
for applet in $applets; do
- if [ "$applet" = "links" ]; then
- continue
- fi
+ case "$applet" in
+ "links")
+ continue
+ ;;
+ "CVS")
+ continue
+ ;;
+ .*)
+ continue
+ ;;
+ esac
# Any old-style tests for this applet?
- if [ "$applet" != "CVS" -a -d "$tsdir/$applet" ]; then
- run_applet_tests "$applet"
+ if [ -d "$tsdir/$applet" ]; then
+ run_oldstyle_applet_tests "$applet"
test $? -eq 0 || status=1
fi
@@ -143,8 +153,8 @@ for applet in $applets; do
continue
fi
fi
-# echo "Running test ${tsdir:-.}/$applet.tests"
- PATH="$LINKSDIR:$tsdir:$bindir:$PATH" "${tsdir:-.}/$applet.tests"
+# echo "Running test $tsdir/$applet.tests"
+ PATH="$LINKSDIR:$tsdir:$bindir:$PATH" "$tsdir/$applet.tests"
test $? -eq 0 || status=1
fi
done