aboutsummaryrefslogtreecommitdiff
path: root/testsuite/runtest
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-04-23 06:45:11 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-04-23 06:45:11 +0000
commit58dc274a7aefcbe80efe2a99742811a8affaca44 (patch)
tree63f331def4ed05dba99cb925d7149849a11a3d9b /testsuite/runtest
parentfa5b05ab070ccbdd4f962b97d69a7c141618aa04 (diff)
downloadbusybox-58dc274a7aefcbe80efe2a99742811a8affaca44.tar.gz
testsuite: runtest enhancements by Cristian Ionescu-Idbohrn
Diffstat (limited to 'testsuite/runtest')
-rwxr-xr-xtestsuite/runtest21
1 files changed, 15 insertions, 6 deletions
diff --git a/testsuite/runtest b/testsuite/runtest
index fc8392ac5..c668240eb 100755
--- a/testsuite/runtest
+++ b/testsuite/runtest
@@ -10,19 +10,19 @@
run_applet_testcase()
{
local applet=$1
- local testcase=$2
+ local testcase="$2"
local status
local uc_applet=$(echo $applet | tr a-z A-Z)
- local testname=$(basename $testcase)
+ local testname=`basename "$testcase"`
if grep -q "^# CONFIG_${uc_applet} is not set$" $bindir/.config; then
echo "UNTESTED: $testname"
return 0
fi
- if grep -q "^# FEATURE: " $testcase; then
- local feature=`sed -ne 's/^# FEATURE: //p' $testcase`
+ if grep -q "^# FEATURE: " "$testcase"; then
+ local feature=`sed -ne 's/^# FEATURE: //p' "$testcase"`
if grep -q "^# ${feature} is not set$" $bindir/.config; then
echo "UNTESTED: $testname"
@@ -58,10 +58,19 @@ run_applet_tests()
local applet=$1
local status=0
for testcase in $tsdir/$applet/*; do
- if [ "$testcase" = "$tsdir/$applet/CVS" ]; then
+ case `basename "$testcase"` in
+ \#*)
+ continue
+ ;;
+ *\~)
+ continue
+ ;;
+ esac
+ if [ "$testcase" = "$tsdir/$applet/CVS" ] ||
+ [ "$testcase" = "$tsdir/$applet/.svn" ]; then
continue
fi
- run_applet_testcase $applet $testcase
+ run_applet_testcase "$applet" "$testcase"
test $? = 0 || status=1
done
return $status