X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Ffilesys.test.sh;h=d2082b66be5eda3a797a8dd25b21e555cd64f51f;hb=4b222ef18cc604eaa9f0c9e02e1b3bf89f0b408d;hp=f892feed0842b3e8540a6420a3c10966305e93f9;hpb=04d819bb1a2e64de4e997203b9516229bb73c686;p=sbcl.git diff --git a/tests/filesys.test.sh b/tests/filesys.test.sh index f892fee..d2082b6 100644 --- a/tests/filesys.test.sh +++ b/tests/filesys.test.sh @@ -11,30 +11,39 @@ # absolutely no warranty. See the COPYING and CREDITS files for # more information. +. ./subr.sh + +use_test_subdirectory +testdir="`pwd -P`" # resolve symbolic links in the directory. + +set -f # disable filename expansion in the shell. + # Test DIRECTORY and TRUENAME. -testdir=`/bin/pwd`"/filesys-test-$$" -mkdir $testdir -echo this is a test > $testdir/test-1.tmp -echo this is a test > $testdir/test-2.tmp -echo this is a test > $testdir/wild\?test.tmp -cd $testdir -ln -s $testdir dirlinktest +echo this is a test > test-1.tmp +echo this is a test > test-2.tmp +echo this is a test > wild?test.tmp + +ln -s "$testdir" dirlinktest ln -s test-1.tmp link-1 -ln -s `pwd`/test-2.tmp link-2 +ln -s "$testdir/test-2.tmp" link-2 ln -s i-do-not-exist link-3 ln -s link-4 link-4 ln -s link-5 link-6 -ln -s `pwd`/link-6 link-5 -expected_truenames=\ -"'(#p\"$testdir/\"\ - #p\"$testdir/link-3\"\ - #p\"$testdir/link-4\"\ - #p\"$testdir/link-5\"\ - #p\"$testdir/link-6\"\ - #p\"$testdir/test-1.tmp\"\ - #p\"$testdir/test-2.tmp\"\ - #p\"$testdir/wild\\\\?test.tmp\")" -$SBCL <