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
36 linkfile=$TEST_DIR/$seq.symlink
39 FNAME=$(perl -e 'print "a"x254')
41 # Create a symlink points to a very long path, so that the path could not be
43 ln -s $FNAME/$FNAME/$FNAME/$FNAME $linkfile
45 # Check symlink contains the correct path.
46 # 1023 chars are a bit long for golden image output, compute the md5 checksum
47 readlink $linkfile | md5sum