~ubuntu-branches/ubuntu/trusty/busybox/trusty

« back to all changes in this revision

Viewing changes to testsuite/runtest

  • Committer: Scott Moser
  • Date: 2011-05-27 16:06:28 UTC
  • mfrom: (68.1.6 oneiric)
  • Revision ID: smoser@ubuntu.com-20110527160628-t1lo3pfw92ef8vnf
* Resynchronise with Debian (LP: #788888).  Remaining changes:
  - [udeb] Enable chvt, getopt (and -l), killall, losetup, NFS
    mount, od, ping, stat, and remote syslog.
  - [deb] Enable mdev.
  - [deb, static] Enable fractional sleep and CGI support for httpd.
  - Enable 'mount -f' and mount helpers for all targets.
  - Add busybox-initramfs.
  - test-bin.patch: Move test and friends to /bin.
  - static-sh-alias.patch: Add static-sh alias name for ash, and install
    /bin/static-sh symlink to busybox in busybox-static.
  - Add cross-compiling support.
* grep-o-loop.patch: dropped as fix and testcase in upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
 
5
5
. ./testing.sh
6
6
 
 
7
total_failed=0
 
8
 
7
9
# Run one old-style test.
8
10
# Tests are stored in applet/testcase shell scripts.
9
11
# They are run using "sh -x -e applet/testcase".
73
75
                        *.r[0-9]*) continue ;; # svn-produced junk
74
76
                esac
75
77
                run_applet_testcase "$applet" "$testcase" || status=1
 
78
                total_failed=$((total_failed + status))
76
79
        done
77
80
        return $status
78
81
}
150
153
                fi
151
154
#               echo "Running test $tsdir/$applet.tests"
152
155
                PATH="$LINKSDIR:$tsdir:$bindir:$PATH" \
153
 
                        "$tsdir/$applet.tests" || status=1
 
156
                        "$tsdir/$applet.tests"
 
157
                rc=$?
 
158
                total_failed=$((total_failed + rc))
 
159
                test $rc -ne 0 && status=1
154
160
        fi
155
161
done
156
162
 
158
164
#rm -rf "$LINKSDIR"
159
165
 
160
166
if [ $status -ne 0 ] && [ x"$VERBOSE" = x ]; then
161
 
        echo "Failures detected, running with -v (verbose) will give more info"
 
167
        echo "$total_failed failure(s) detected; running with -v (verbose) will give more info"
162
168
fi
163
169
exit $status