aboutsummaryrefslogtreecommitdiff
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
parentb34266b42b5f6f78b7346c9ca90caebcd59db345 (diff)
downloadbusybox-w32-3c07e4b8776da6f23251f98e95207f4c713d73bd.tar.gz
busybox-w32-3c07e4b8776da6f23251f98e95207f4c713d73bd.tar.bz2
busybox-w32-3c07e4b8776da6f23251f98e95207f4c713d73bd.zip
runtest: more cleanups
-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()
54} 54}
55 55
56# Run all old-style tests for given applet 56# Run all old-style tests for given applet
57run_applet_tests() 57run_oldstyle_applet_tests()
58{ 58{
59 local applet="$1" 59 local applet="$1"
60 local status=0 60 local status=0
@@ -68,11 +68,13 @@ run_applet_tests()
68 *\~) 68 *\~)
69 continue 69 continue
70 ;; 70 ;;
71 "CVS")
72 continue
73 ;;
74 .*)
75 continue
76 ;;
71 esac 77 esac
72 if [ "$testcase" = "$tsdir/$applet/CVS" ] ||
73 [ "$testcase" = "$tsdir/$applet/.svn" ]; then
74 continue
75 fi
76 run_applet_testcase "$applet" "$testcase" 78 run_applet_testcase "$applet" "$testcase"
77 test $? -eq 0 || status=1 79 test $? -eq 0 || status=1
78 done 80 done
@@ -124,13 +126,21 @@ export OPTIONFLAGS=:$(sed -nr 's/^CONFIG_//p' "$bindir/.config" | sed 's/=.*//'
124 126
125status=0 127status=0
126for applet in $applets; do 128for applet in $applets; do
127 if [ "$applet" = "links" ]; then 129 case "$applet" in
128 continue 130 "links")
129 fi 131 continue
132 ;;
133 "CVS")
134 continue
135 ;;
136 .*)
137 continue
138 ;;
139 esac
130 140
131 # Any old-style tests for this applet? 141 # Any old-style tests for this applet?
132 if [ "$applet" != "CVS" -a -d "$tsdir/$applet" ]; then 142 if [ -d "$tsdir/$applet" ]; then
133 run_applet_tests "$applet" 143 run_oldstyle_applet_tests "$applet"
134 test $? -eq 0 || status=1 144 test $? -eq 0 || status=1
135 fi 145 fi
136 146
@@ -143,8 +153,8 @@ for applet in $applets; do
143 continue 153 continue
144 fi 154 fi
145 fi 155 fi
146# echo "Running test ${tsdir:-.}/$applet.tests" 156# echo "Running test $tsdir/$applet.tests"
147 PATH="$LINKSDIR:$tsdir:$bindir:$PATH" "${tsdir:-.}/$applet.tests" 157 PATH="$LINKSDIR:$tsdir:$bindir:$PATH" "$tsdir/$applet.tests"
148 test $? -eq 0 || status=1 158 test $? -eq 0 || status=1
149 fi 159 fi
150done 160done