2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2016 Red Hat Inc. All Rights Reserved.
7 # Test symlink to very long path, check symlink file contains correct path.
10 seqres=$RESULT_DIR/$seq
11 echo "QA output created by $seq"
15 status=1 # failure is the default!
16 trap "_cleanup; exit \$status" 0 1 2 3 15
24 # get standard environment, filters and checks
30 # real QA test starts here
35 linkfile=$TEST_DIR/$seq.symlink
38 FNAME=$(perl -e 'print "a"x254')
40 # Create a symlink points to a very long path, so that the path could not be
42 ln -s $FNAME/$FNAME/$FNAME/$FNAME $linkfile
44 # Check symlink contains the correct path.
45 # 1023 chars are a bit long for golden image output, compute the md5 checksum
46 readlink $linkfile | md5sum