ip link: add VLAN support
[oweals/busybox.git] / testsuite / readlink.tests
old mode 100644 (file)
new mode 100755 (executable)
index 5483d97..c7fc8ad
@@ -2,9 +2,9 @@
 
 # Readlink tests.
 # Copyright 2006 by Natanael Copa <n@tanael.org>
-# Licensed under GPL v2, see file LICENSE for details.
+# Licensed under GPLv2, see file LICENSE in this source tree.
 
-. testing.sh
+. ./testing.sh
 
 TESTDIR=readlink_testdir
 TESTFILE="$TESTDIR/testfile"
@@ -18,6 +18,9 @@ ln -s "./$TESTFILE" "./$TESTLINK"
 
 testing "readlink on a file" "readlink ./$TESTFILE" "" "" ""
 testing "readlink on a link" "readlink ./$TESTLINK" "./$TESTFILE\n" "" ""
+
+optional FEATURE_READLINK_FOLLOW
+
 testing "readlink -f on a file" "readlink -f ./$TESTFILE" "$PWD/$TESTFILE\n" "" ""
 testing "readlink -f on a link" "readlink -f ./$TESTLINK" "$PWD/$TESTFILE\n" "" ""
 testing "readlink -f on an invalid link" "readlink -f ./$FAILLINK" "" "" ""
@@ -25,5 +28,6 @@ testing "readlink -f on a wierd dir" "readlink -f $TESTDIR/../$TESTFILE" "$PWD/$
 
 
 # clean up
-rm -r "$TESTLINK" "$TESTDIR" 
+rm -r "$TESTLINK" "$TESTDIR"
 
+exit $((FAILCOUNT <= 255 ? FAILCOUNT : 255))