1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
|
!mkdir dir
!mkdir dir/subdir
!mkdir dir/subdir/contents
!ln -s nowhere dir/dangling
!ln -s subdir dir/followable
!ln -s / root
!ln -s /./.././.././.. root-wonky
realpath6 no-check ""
#/.*/,testroot/realpath6\.6
realpath6 no-check dir
#/.*/dir
realpath6 no-check dir/subdir
#/.*/subdir
realpath6 no-check dir/subdir/contents
#/.*/subdir/contents
realpath6 no-check dir/dangling
#/.*/dir/dangling
realpath6 no-check dir/dangling/..
#/.*/dir
realpath6 no-check dir/dangling/contents
#/.*/dir/dangling/contents
realpath6 no-check dir/followable
#/.*/followable
realpath6 no-check dir/followable/contents
#/.*/followable/contents
realpath6 stat-if dir
#drwxr.[sx]r.x +\d+ +\S+ +\S+ +\d+ +\S+ +\d+ +\d+:\d+ .*/dir
realpath6 stat-if dir/subdir
#drwxr.[sx]r.x +\d+ +\S+ +\S+ +\d+ +\S+ +\d+ +\d+:\d+ .*/subdir
realpath6 stat-if dir/subdir/contents
#drwxr.[sx]r.x +\d+ +\S+ +\S+ +\d+ +\S+ +\d+ +\d+:\d+ .*/subdir/contents
realpath6 stat-if dir/dangling
#/.*/dir/nowhere
realpath6 stat-if dir/dangling/..
#drwxr.[sx]r.x +\d+ +\S+ +\S+ +\d+ +\S+ +\d+ +\d+:\d+ .*/dir
realpath6 stat-if dir/dangling/contents
#/.*/dir/nowhere/contents
realpath6 stat-if dir/followable
#drwxr.[sx]r.x +\d+ +\S+ +\S+ +\d+ +\S+ +\d+ +\d+:\d+ .*/subdir
realpath6 stat-if dir/followable/contents
#drwxr.[sx]r.x +\d+ +\S+ +\S+ +\d+ +\S+ +\d+ +\d+:\d+ .*/subdir/contents
realpath6 stat-always dir
#drwxr.[sx]r.x +\d+ +\S+ +\S+ +\d+ +\S+ +\d+ +\d+:\d+ .*/dir
realpath6 stat-always dir/subdir
#drwxr.[sx]r.x +\d+ +\S+ +\S+ +\d+ +\S+ +\d+ +\d+:\d+ .*/subdir
realpath6 stat-always dir/subdir/contents
#drwxr.[sx]r.x +\d+ +\S+ +\S+ +\d+ +\S+ +\d+ +\d+:\d+ .*/subdir/contents
realpath6 stat-always dir/dangling
#.*file does not exist.*
realpath6 stat-always dir/dangling/..
#.*file does not exist.*
realpath6 stat-always dir/dangling/contents
#.*file does not exist.*
realpath6 stat-always dir/followable
#drwxr.[sx]r.x +\d+ +\S+ +\S+ +\d+ +\S+ +\d+ +\d+:\d+ .*/subdir
realpath6 stat-always dir/followable/contents
#drwxr.[sx]r.x +\d+ +\S+ +\S+ +\d+ +\S+ +\d+ +\d+:\d+ .*/subdir/contents
realpath6 no-check /
#/
realpath6 no-check /..
#/
realpath6 stat-if root
#d......... +\d+ +\S+ +\S+ +\d+ +\S+ +\d+ +(\d+:\d+|\d+) /
realpath6 stat-if root-wonky
#d......... +\d+ +\S+ +\S+ +\d+ +\S+ +\d+ +(\d+:\d+|\d+) /
|