aboutsummaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-05-02 09:19:29 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-05-02 09:19:29 +0000
commit57be4abcf845a9f61b8020a1a4c00abdd79c2d1e (patch)
treede88d3a49529f7051357f25f3f756ac6d8fb3b06 /testsuite
parente06122666841ab4a6fc3bbea7ca9a94686f2fd88 (diff)
downloadbusybox-w32-57be4abcf845a9f61b8020a1a4c00abdd79c2d1e.tar.gz
busybox-w32-57be4abcf845a9f61b8020a1a4c00abdd79c2d1e.tar.bz2
busybox-w32-57be4abcf845a9f61b8020a1a4c00abdd79c2d1e.zip
runtest: the saga continues :(
Diffstat (limited to 'testsuite')
-rwxr-xr-xtestsuite/runtest37
1 files changed, 11 insertions, 26 deletions
diff --git a/testsuite/runtest b/testsuite/runtest
index 7e0c771e7..d9de8799f 100755
--- a/testsuite/runtest
+++ b/testsuite/runtest
@@ -62,18 +62,12 @@ run_oldstyle_applet_tests()
62 for testcase in "$tsdir/$applet"/*; do 62 for testcase in "$tsdir/$applet"/*; do
63 # switch on basename of $testcase 63 # switch on basename of $testcase
64 case "${testcase##*/}" in 64 case "${testcase##*/}" in
65 \#*) 65 .*) continue ;; # .svn, .git etc
66 continue 66 *~) continue ;; # backup files
67 ;; 67 "CVS") continue ;;
68 *\~) 68 \#*) continue ;; # CVS merge residues
69 continue 69 *.mine) continue ;; # svn-produced junk
70 ;; 70 *.r[0-9]*) continue ;; # svn-produced junk
71 "CVS")
72 continue
73 ;;
74 .*)
75 continue
76 ;;
77 esac 71 esac
78 run_applet_testcase "$applet" "$testcase" 72 run_applet_testcase "$applet" "$testcase"
79 test $? -eq 0 || status=1 73 test $? -eq 0 || status=1
@@ -122,22 +116,13 @@ for i in $implemented; do
122done 116done
123 117
124# Set up option flags so tests can be selective. 118# Set up option flags so tests can be selective.
125export OPTIONFLAGS=:$(sed -nr 's/^CONFIG_//p' "$bindir/.config" | sed 's/=.*//' | xargs | sed 's/ /:/g') 119export OPTIONFLAGS=:$(
120 sed -nr 's/^CONFIG_//p' "$bindir/.config" |
121 sed 's/=.*//' | xargs | sed 's/ /:/g'
122 )
126 123
127status=0 124status=0
128for applet in $applets; do 125for applet in $applets; do
129 case "$applet" in
130 "links")
131 continue
132 ;;
133 "CVS")
134 continue
135 ;;
136 .*)
137 continue
138 ;;
139 esac
140
141 # Any old-style tests for this applet? 126 # Any old-style tests for this applet?
142 if [ -d "$tsdir/$applet" ]; then 127 if [ -d "$tsdir/$applet" ]; then
143 run_oldstyle_applet_tests "$applet" 128 run_oldstyle_applet_tests "$applet"
@@ -162,7 +147,7 @@ done
162# Leaving the dir makes it somewhat easier to run failed test by hand 147# Leaving the dir makes it somewhat easier to run failed test by hand
163#rm -rf "$LINKSDIR" 148#rm -rf "$LINKSDIR"
164 149
165if [ $status -ne 0 -a x"$VERBOSE" = x ]; then 150if [ $status -ne 0 ] && [ x"$VERBOSE" = x ]; then
166 echo "Failures detected, running with -v (verbose) will give more info" 151 echo "Failures detected, running with -v (verbose) will give more info"
167fi 152fi
168exit $status 153exit $status