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 _begin_fstest auto quick metadata
12 # Import common functions.
15 # real QA test starts here
20 linkfile=$TEST_DIR/$seq.symlink
23 FNAME=$(perl -e 'print "a"x254')
25 # Create a symlink points to a very long path, so that the path could not be
27 ln -s $FNAME/$FNAME/$FNAME/$FNAME $linkfile
29 # Check symlink contains the correct path.
30 # 1023 chars are a bit long for golden image output, compute the md5 checksum
31 readlink $linkfile | md5sum