Lines Matching +full:foo +full:- +full:bar

33 	touch foo
34 atf_check -s not-exit:0 -e match:"Invalid argument" \
35 setextattr badnamespace myattr X foo
36 atf_check -s not-exit:0 -e match:"Invalid argument" \
37 lsextattr -q badnamespace foo
46 touch foo
47 atf_check -s exit:0 -o empty setextattr user myattr XYZ foo
48 atf_check -s exit:0 -o inline:"58 59 5a\n" \
49 getextattr -qx user myattr foo
58 touch foo
60 atf_check -s exit:0 -o empty setextattr user myattr "$BINSTUFF" foo
61 getextattr user myattr foo
62 atf_check -s exit:0 -o inline:"20 30 40 55 66 70 81 a2 b3 ee ff\n" \
63 getextattr -qx user myattr foo
77 ATTRNAME=`jot -b X -s "" $NAME_MAX 0`
78 touch foo
79 atf_check -s exit:0 -o empty setextattr user $ATTRNAME myvalue foo
80 atf_check -s exit:0 -o inline:"${ATTRNAME}\n" lsextattr -q user foo
81 atf_check -s exit:0 -o inline:"myvalue\n" \
82 getextattr -q user ${ATTRNAME} foo
83 atf_check -s exit:0 -o empty rmextattr user ${ATTRNAME} foo
84 atf_check -s exit:0 -o empty lsextattr -q user foo
89 atf_set "descr" "Loud (non -q) output for each command"
93 touch foo
96 atf_check -s exit:0 -o empty setextattr user myattr myvalue foo
97 atf_check -s exit:0 -o inline:"foo myattr" \
98 printf "%s %s" $(lsextattr user foo)
99 atf_check -s exit:0 -o inline:"foo myvalue" \
100 printf "%s %s" $(getextattr user myattr foo)
101 atf_check -s exit:0 -o empty rmextattr user myattr foo
102 atf_check -s exit:0 -o inline:"foo" printf %s $(lsextattr user foo)
111 touch foo
112 atf_check -s exit:0 -o empty lsextattr -q user foo
121 atf_check -s exit:1 -e match:"No such file or directory" \
122 lsextattr user foo
123 atf_check -s exit:1 -e match:"No such file or directory" \
124 setextattr user myattr myvalue foo
125 atf_check -s exit:1 -e match:"No such file or directory" \
126 getextattr user myattr foo
127 atf_check -s exit:1 -e match:"No such file or directory" \
128 rmextattr user myattr foo
133 atf_set "descr" "NUL-terminate an attribute value"
137 touch foo
138 atf_check -s exit:0 -o empty setextattr -n user myattr myvalue foo
139 atf_check -s exit:0 -o inline:"myvalue\0\n" getextattr -q user myattr foo
148 touch foo
149 atf_check -s exit:0 -o empty setextattr user myattr myvalue foo
150 atf_check -s exit:0 -o inline:"myattr\n" lsextattr -q user foo
151 atf_check -s exit:0 -o inline:"myvalue\n" getextattr -q user myattr foo
152 atf_check -s exit:0 -o empty rmextattr user myattr foo
153 atf_check -s exit:0 -o empty lsextattr -q user foo
163 touch foo
164 atf_check -s exit:0 -o empty setextattr system myattr myvalue foo
165 atf_check -s exit:0 -o inline:"myattr\n" lsextattr -q system foo
166 atf_check -s exit:0 -o inline:"myvalue\n" getextattr -q system myattr foo
167 atf_check -s exit:0 -o empty rmextattr system myattr foo
168 atf_check -s exit:0 -o empty lsextattr -q system foo
178 touch foo
179 setextattr -i user myattr foo < infile || atf_fail "setextattr failed"
180 atf_check -s exit:0 -o inline:"myattr\n" lsextattr -q user foo
181 getextattr -qq user myattr foo > outfile || atf_fail "getextattr failed"
182 atf_check -s exit:0 cmp -s infile outfile
191 touch foo
192 atf_check -s exit:0 -o empty setextattr user myattr "my value" foo
193 atf_check -s exit:0 -o inline:"\"my\\\040value\"\n" \
194 getextattr -qs user myattr foo
203 touch foo
204 ln -s foo foolink
205 atf_check -s exit:0 -o empty setextattr user myattr myvalue foolink
206 atf_check -s exit:0 -o inline:"myvalue\n" \
207 getextattr -q user myattr foolink
208 atf_check -s exit:0 -o inline:"myvalue\n" getextattr -q user myattr foo
217 touch foo
218 ln -s foo foolink
219 # Check that with -h we can operate directly on the link
220 atf_check -s exit:0 -o empty setextattr -h user myattr myvalue foolink
221 atf_check -s exit:0 -o inline:"myvalue\n" \
222 getextattr -qh user myattr foolink
223 atf_check -s exit:1 -e match:"Attribute not found" \
225 atf_check -s exit:1 -e match:"Attribute not found" \
226 getextattr user myattr foo
228 # Check that with -h we cannot operate on the destination file
229 atf_check -s exit:0 -o empty setextattr user otherattr othervalue foo
230 atf_check -s exit:1 getextattr -qh user otherattr foolink
240 touch foo
241 atf_check -s exit:0 -o empty setextattr user userattr userval foo
242 atf_check -s exit:0 -o empty setextattr system sysattr sysval foo
243 atf_check -s exit:0 -o inline:"userattr\n" lsextattr -q user foo
244 atf_check -s exit:0 -o inline:"sysattr\n" lsextattr -q system foo
246 atf_check -s exit:0 -o inline:"userval\n" getextattr -q user userattr foo
247 atf_check -s exit:0 -o inline:"sysval\n" getextattr -q system sysattr foo
248 atf_check -s exit:0 -o empty rmextattr user userattr foo
249 atf_check -s exit:0 -o empty rmextattr system sysattr foo
250 atf_check -s exit:0 -o empty lsextattr -q user foo
251 atf_check -s exit:0 -o empty lsextattr -q system foo
260 touch foo bar
261 atf_check -s exit:0 -o empty setextattr user myattr myvalue foo bar
262 atf_check -s exit:0 -o inline:"foo\tmyattr\nbar\tmyattr\n" \
263 lsextattr user foo bar
264 atf_check -s exit:0 \
265 -o inline:"foo\tmyvalue\nbar\tmyvalue\n" \
266 getextattr user myattr foo bar
267 atf_check -s exit:0 -o empty rmextattr user myattr foo bar
268 atf_check -s exit:0 -o empty lsextattr -q user foo bar
277 touch bar
278 atf_check -s exit:1 -e match:"No such file or directory" \
279 setextattr user myattr myvalue foo bar
280 atf_check -s exit:0 -e ignore setextattr -f user myattr myvalue foo bar
281 atf_check -s exit:1 -e match:"No such file or directory" \
282 lsextattr user foo bar
283 atf_check -s exit:0 -e ignore -o inline:"bar\tmyattr\n" \
284 lsextattr -f user foo bar
285 atf_check -s exit:1 -e match:"No such file or directory" \
286 getextattr user myattr foo bar
287 atf_check -s exit:0 -e ignore \
288 -o inline:"bar\tmyvalue\n" \
289 getextattr -f user myattr foo bar
290 atf_check -s exit:1 -e match:"No such file or directory" \
291 rmextattr user myattr foo bar
292 atf_check -s exit:0 -e ignore \
293 rmextattr -f user myattr foo bar
294 atf_check -s exit:0 -o empty lsextattr -q user bar
303 touch foo
304 atf_check -s exit:0 -o empty setextattr user myattr1 myvalue1 foo
305 atf_check -s exit:0 -o empty setextattr user myattr2 myvalue2 foo
308 raw_output=`lsextattr -q user foo` || atf_fail "lsextattr failed"
310 if [ "myattr1 myattr2" != "${tabless_output}" -a \
314 atf_check -s exit:0 -o inline:"myvalue1\n" getextattr -q user myattr1 foo
315 atf_check -s exit:0 -o inline:"myvalue2\n" getextattr -q user myattr2 foo
316 atf_check -s exit:0 -o empty rmextattr user myattr2 foo
317 atf_check -s exit:0 -o empty rmextattr user myattr1 foo
318 atf_check -s exit:0 -o empty lsextattr -q user foo
328 touch foo
329 atf_check -s exit:1 -e match:"Operation not permitted" \
330 setextattr system myattr myvalue foo
358 case `df -T . | tail -n 1 | cut -wf 2` in
360 case `dumpfs . | head -1 | awk -F'[()]' '{print $2}'` in