New test from Natanael Copa.
This commit was genuinely broken at the time (not related to our build system): scripts/config/mkconfigs.c (2005-08-01 - 2006-10-05 arasi) uretilen bbconfigopts.h icine .config satirlarini kacissiz, ham newline'larla gömüyordu - gecerli C degildi, busybox'un kendi bb_mkdep araci bile parse edemiyordu (7d219aab7 ile duzeltildi, mkconfigs shell scripte cevrildi)
No binary (build failed)
—
(log yok)
| @@ -0,0 +1,29 @@ | |
| + | #!/bin/sh |
| + | |
| + | # Readlink tests. |
| + | # Copyright 2006 by Natanael Copa <[email protected]> |
| + | # Licensed under GPL v2, see file LICENSE for details. |
| + | |
| + | . testing.sh |
| + | |
| + | TESTDIR=readlink_testdir |
| + | TESTFILE="$TESTDIR/testfile" |
| + | TESTLINK="testlink" |
| + | FAILLINK="$TESTDIR/$TESTDIR/testlink" |
| + | |
| + | # create the dir and test files |
| + | mkdir -p "./$TESTDIR" |
| + | touch "./$TESTFILE" |
| + | ln -s "./$TESTFILE" "./$TESTLINK" |
| + | |
| + | testing "readlink on a file" "readlink ./$TESTFILE" "" "" "" |
| + | testing "readlink on a link" "readlink ./$TESTLINK" "./$TESTFILE\n" "" "" |
| + | 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" "" "" "" |
| + | testing "readlink -f on a wierd dir" "readlink -f $TESTDIR/../$TESTFILE" "$PWD/$TESTFILE\n" "" "" |
| + | |
| + | |
| + | # clean up |
| + | rm -r "$TESTLINK" "$TESTDIR" |
| + | |