diff options
Diffstat (limited to 'testsuite/runtest')
-rwxr-xr-x | testsuite/runtest | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/testsuite/runtest b/testsuite/runtest index 7411aec64..32ff462d7 100755 --- a/testsuite/runtest +++ b/testsuite/runtest | |||
@@ -90,21 +90,22 @@ else | |||
90 | fi | 90 | fi |
91 | 91 | ||
92 | for applet in $applets; do | 92 | for applet in $applets; do |
93 | if [ "$applet" == links ]; then continue; fi | 93 | if [ "$applet" = "links" ]; then continue; fi |
94 | if [ "$applet" != CVS -a -d "$srcdir/$applet" ]; then | 94 | if [ "$applet" != "CVS" -a -d "$srcdir/$applet" ]; then |
95 | if run_applet_tests $applet; then | 95 | if run_applet_tests $applet; then |
96 | : | 96 | : |
97 | else | 97 | else |
98 | status=1 | 98 | status=1 |
99 | fi | 99 | fi |
100 | fi | 100 | fi |
101 | applet=`echo "$applet" | sed -n 's/\.tests$//p'` | 101 | applet=$(echo "$applet" | sed -n 's/\.tests$//p') |
102 | if [ ${#applet} != 0 ] | 102 | if [ ${#applet} -ne 0 ] |
103 | then | 103 | then |
104 | mkdir links 2>/dev/null | 104 | mkdir links 2>/dev/null |
105 | rm -f links/"$applet" | 105 | rm -f links/"$applet" |
106 | ln -s ${bindir:-../..}/busybox links/"$applet" | 106 | ln -s ${bindir:-../..}/busybox links/"$applet" |
107 | PATH="$srcdir:$PATH" COMMAND="links/$applet" "${srcdir:-.}/$applet".tests | 107 | PATH="$srcdir:$PATH" COMMAND="links/$applet" \ |
108 | "${srcdir:-.}/$applet".tests | ||
108 | if [ $? -ne 0 ]; then status=1; fi | 109 | if [ $? -ne 0 ]; then status=1; fi |
109 | fi | 110 | fi |
110 | 111 | ||