diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-05-02 09:19:29 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-05-02 09:19:29 +0000 |
commit | 57be4abcf845a9f61b8020a1a4c00abdd79c2d1e (patch) | |
tree | de88d3a49529f7051357f25f3f756ac6d8fb3b06 /testsuite | |
parent | e06122666841ab4a6fc3bbea7ca9a94686f2fd88 (diff) | |
download | busybox-w32-57be4abcf845a9f61b8020a1a4c00abdd79c2d1e.tar.gz busybox-w32-57be4abcf845a9f61b8020a1a4c00abdd79c2d1e.tar.bz2 busybox-w32-57be4abcf845a9f61b8020a1a4c00abdd79c2d1e.zip |
runtest: the saga continues :(
Diffstat (limited to 'testsuite')
-rwxr-xr-x | testsuite/runtest | 37 |
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 | |||
122 | done | 116 | done |
123 | 117 | ||
124 | # Set up option flags so tests can be selective. | 118 | # Set up option flags so tests can be selective. |
125 | export OPTIONFLAGS=:$(sed -nr 's/^CONFIG_//p' "$bindir/.config" | sed 's/=.*//' | xargs | sed 's/ /:/g') | 119 | export OPTIONFLAGS=:$( |
120 | sed -nr 's/^CONFIG_//p' "$bindir/.config" | | ||
121 | sed 's/=.*//' | xargs | sed 's/ /:/g' | ||
122 | ) | ||
126 | 123 | ||
127 | status=0 | 124 | status=0 |
128 | for applet in $applets; do | 125 | for 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 | ||
165 | if [ $status -ne 0 -a x"$VERBOSE" = x ]; then | 150 | if [ $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" |
167 | fi | 152 | fi |
168 | exit $status | 153 | exit $status |