ip link: add VLAN support
[oweals/busybox.git] / testsuite / md5sum.tests
index 5bbdb3b58e7e9bd08f14982262c58fdcb0248517..1068b083f588e8a97e5edd4fec7e23c0f66f6f14 100755 (executable)
@@ -18,25 +18,22 @@ fi
 sum="$1"
 expected="$2"
 
-mkdir testdir 2>/dev/null
+test -f "$bindir/.config" && . "$bindir/.config"
 
-result=`(
-cd testdir || { echo "cannot cd testdir!" >&2; exit 1; }
+test x"$CONFIG_FEATURE_FANCY_HEAD" != x"y" \
+&& { echo "SKIPPED: $sum"; exit 0; }
 
 text="The quick brown fox jumps over the lazy dog"
+text=`yes "$text" | head -c 9999`
 
+result=`(
 n=0
 while test $n -le 999; do
-       yes "$text" | head -c $n | "$sum"
+       echo "$text" | head -c $n | "$sum"
        : $((n++))
 done | "$sum"
-
 )`
 
-rm -rf testdir
-
-FAILCOUNT=0
-
 if test x"$result" = x"$expected  -"; then
     echo "PASS: $sum"
     exit 0