Lines Matching +full:single +full:- +full:link
33 atf_test_case single
35 atf_set "descr" "Creates a single directory and checks the" \
36 "mount point's hard link count"
42 atf_check -s eq:1 -o empty -e empty test -d a
43 atf_check -s eq:0 -o empty -e empty mkdir a
44 atf_check -s eq:0 -o empty -e empty test -d a
45 test -d a
46 eval $(stat -s ${Mount_Point})
47 [ ${st_nlink} = 3 ] || atf_fail "Link count is not 3"
55 "mount point's hard link count"
62 atf_check -s eq:1 -o empty -e empty test -d ${d}
63 atf_check -s eq:0 -o empty -e empty mkdir ${d}
64 atf_check -s eq:0 -o empty -e empty test -d ${d}
66 eval $(stat -s ${Mount_Point})
67 [ ${st_nlink} = 102 ] || atf_fail "Link count is not 102"
80 atf_check -s eq:1 -o empty -e empty test -d a/b/c/d/e
81 atf_check -s eq:0 -o empty -e empty mkdir -p a/b/c/d/e
82 atf_check -s eq:0 -o empty -e empty test -d a/b/c/d/e
91 atf_set "require.config" "unprivileged-user"
95 user=$(atf_config_get unprivileged-user)
101 atf_check -s eq:0 -o empty -e empty mkdir b c
103 atf_check -s eq:0 -o empty -e empty chown ${user}:0 b
104 eval $(stat -s b)
105 [ ${st_uid} -eq $(id -u ${user}) ] || atf_fail "Incorrect owner"
106 [ ${st_gid} -eq 0 ] || atf_fail "Incorrect group"
108 atf_check -s eq:0 -o empty -e empty chown ${user}:100 c
109 eval $(stat -s c)
110 [ ${st_uid} -eq $(id -u ${user}) ] || atf_fail "Incorrect owner"
111 [ ${st_gid} -eq 100 ] || atf_fail "Incorrect group"
113 atf_check -s eq:0 -o empty -e empty su -m ${user} -c 'mkdir b/a'
114 eval $(stat -s b/a)
115 [ ${st_uid} -eq $(id -u ${user}) ] || atf_fail "Incorrect owner"
116 [ ${st_gid} -eq 0 ] || atf_fail "Incorrect group"
118 atf_check -s eq:0 -o empty -e empty su -m ${user} -c 'mkdir c/a'
119 eval $(stat -s c/a)
120 [ ${st_uid} -eq $(id -u ${user}) ] || atf_fail "Incorrect owner"
121 [ ${st_gid} -eq 100 ] || atf_fail "Incorrect group"
135 atf_check -s eq:0 -o empty -e empty mkdir dir
144 atf_check -s eq:0 -o empty -e empty rmdir dir/a
145 atf_check -s eq:0 -o empty -e empty rmdir dir
154 atf_add_test_case single