Lines Matching +full:non +full:- +full:armv7

2 # SPDX-License-Identifier: BSD-2-Clause
35 mktemp -u bectl_test_XXXXXX > $ZPOOL_NAME_FILE
48 atf_check test -n "$zpool"
50 kldload -n -q zfs || atf_skip "ZFS module not loaded on the current system"
58 atf_check mkdir -p ${mnt}
59 atf_check truncate -s 1G ${disk}
60 atf_check zpool create -R ${mnt} ${zpool} ${disk}
61 atf_check zfs create -o mountpoint=none ${zpool}/ROOT
62 atf_check zfs create -o mountpoint=/ -o canmount=noauto \
72 atf_check test -n "$zpool"
75 atf_check mkdir -p ${root}
76 atf_check -o ignore bectl -r ${zpool}/ROOT mount default ${root}
77 atf_check mkdir -p ${root}/usr
78 atf_check zfs create -o mountpoint=/usr -o canmount=noauto \
80 atf_check -o ignore bectl -r ${zpool}/ROOT umount default
86 if [ -z "$zpool" ]; then
89 zpool destroy -f ${zpool}
102 [ "$(uname -p)" = "i386" ]; then
107 [ "$(uname -p)" = "armv7" ]; then
119 # of recursive and non-recursive boot environments.
120 atf_check zfs create -o mountpoint=/usr -o canmount=noauto \
124 atf_check -e not-empty -s not-exit:0 \
125 bectl -r ${zpool}/ROOT create "foo bar"
129 atf_check bectl -r ${zpool}/ROOT create -e default default2
130 atf_check bectl -r ${zpool}/ROOT create default2@test_snap
131 atf_check bectl -r ${zpool}/ROOT create -e default2@test_snap default3
135 atf_check bectl -r ${zpool}/ROOT create -r -e default recursive
136 atf_check bectl -r ${zpool}/ROOT create -r recursive@test_snap
137 atf_check bectl -r ${zpool}/ROOT create -r -e recursive@test_snap recursive-snap
139 # Test that non-recursive boot environments have no child datasets.
140 atf_check -e not-empty -s not-exit:0 \
142 atf_check -e not-empty -s not-exit:0 \
146 atf_check -o not-empty \
148 atf_check -o not-empty \
149 zfs list "${zpool}/ROOT/recursive-snap/usr"
165 [ "$(uname -p)" = "i386" ]; then
170 [ "$(uname -p)" = "armv7" ]; then
181 atf_check bectl -r ${zpool}/ROOT create -e default default2
182 atf_check -o not-empty zfs get mountpoint ${zpool}/ROOT/default2
183 atf_check -e ignore bectl -r ${zpool}/ROOT destroy default2
184 atf_check -e not-empty -s not-exit:0 zfs get mountpoint ${zpool}/ROOT/default2
188 atf_check mkdir -p ${root}
189 atf_check -o not-empty bectl -r ${zpool}/ROOT mount default ${root}
190 atf_check bectl -r ${zpool}/ROOT create -e default default3
191 atf_check bectl -r ${zpool}/ROOT destroy -o default3
192 atf_check bectl -r ${zpool}/ROOT unmount default
195 atf_check bectl -r ${zpool}/ROOT create -e default default2
196 atf_check bectl -r ${zpool}/ROOT create -e default default3
197 atf_check bectl -r ${zpool}/ROOT destroy default
198 atf_check bectl -r ${zpool}/ROOT destroy default2
199 atf_check bectl -r ${zpool}/ROOT rename default3 default
203 # Sleeps are required to prevent conflicting snapshots- libbe will
210 atf_check bectl -r ${zpool}/ROOT create -e default default2
212 atf_check bectl -r ${zpool}/ROOT create -e default2 default3
214 atf_check bectl -r ${zpool}/ROOT create -e default3 default4
215 atf_check bectl -r ${zpool}/ROOT destroy default3
216 atf_check bectl -r ${zpool}/ROOT destroy default2
217 atf_check bectl -r ${zpool}/ROOT destroy default4
222 # demote the first BE at some point -- if we did, it's origin will no
224 atf_check bectl -r ${zpool}/ROOT create -e default default2
225 atf_check bectl -r ${zpool}/ROOT create default@test
227 atf_check bectl -r ${zpool}/ROOT destroy default@test
228 atf_check -o inline:"-\n" zfs get -Ho value origin ${zpool}/ROOT/default
229 atf_check bectl -r ${zpool}/ROOT destroy default2
233 atf_check bectl -r ${zpool}/ROOT create default@test
234 atf_check bectl -r ${zpool}/ROOT create -e default@test default2
236 atf_check -e not-empty -s not-exit:0 bectl -r ${zpool}/ROOT destroy \
253 [ "$(uname -p)" = "i386" ]; then
258 [ "$(uname -p)" = "armv7" ]; then
268 atf_check -o save:exported bectl -r ${zpool}/ROOT export default
269 atf_check -x "bectl -r ${zpool}/ROOT import default2 < exported"
270 atf_check -o not-empty zfs get mountpoint ${zpool}/ROOT/default2
271 atf_check -e ignore bectl -r ${zpool}/ROOT destroy default2
272 atf_check -e not-empty -s not-exit:0 zfs get mountpoint \
289 [ "$(uname -p)" = "i386" ]; then
294 [ "$(uname -p)" = "armv7" ]; then
308 atf_check -o save:list.out bectl -r ${zpool}/ROOT list
309 atf_check -o not-empty grep 'default' list.out
310 atf_check bectl -r ${zpool}/ROOT create -e default default2
311 atf_check -o save:list.out bectl -r ${zpool}/ROOT list
312 atf_check -o not-empty grep 'default2' list.out
313 atf_check -e ignore bectl -r ${zpool}/ROOT destroy default2
314 atf_check -o save:list.out bectl -r ${zpool}/ROOT list
315 atf_check -s not-exit:0 grep 'default2' list.out
332 [ "$(uname -p)" = "i386" ]; then
337 [ "$(uname -p)" = "armv7" ]; then
348 atf_check mkdir -p ${root}
350 atf_check -o not-empty bectl -r ${zpool}/ROOT mount default ${root}
351 atf_check -o not-empty -x "mount | grep '^${zpool}/ROOT/default'"
352 atf_check bectl -r ${zpool}/ROOT unmount default
353 atf_check -s not-exit:0 -x "mount | grep '^${zpool}/ROOT/default'"
355 atf_check -o not-empty bectl -r ${zpool}/ROOT mount default ${root}
356 atf_check -o not-empty -x "mount | grep '^${zpool}/ROOT/default'"
357 atf_check bectl -r ${zpool}/ROOT umount default
358 atf_check -s not-exit:0 -x "mount | grep '^${zpool}/ROOT/default'"
374 [ "$(uname -p)" = "i386" ]; then
379 [ "$(uname -p)" = "armv7" ]; then
389 atf_check bectl -r ${zpool}/ROOT rename default default2
390 atf_check -o not-empty zfs get mountpoint ${zpool}/ROOT/default2
391 atf_check -e not-empty -s not-exit:0 zfs get mountpoint \
409 [ "$(uname -p)" = "i386" ]; then
414 [ "$(uname -p)" = "armv7" ]; then
424 if [ ! -f /rescue/rescue ]; then
429 atf_check mkdir -p ${root}
430 atf_check -o ignore bectl -r ${zpool}/ROOT mount default ${root}
431 atf_check mkdir -p ${root}/rescue
433 atf_check bectl -r ${zpool}/ROOT umount default
436 atf_check -o empty -s exit:0 bectl -r ${zpool}/ROOT create -e default target
437 atf_check -o empty -s exit:0 bectl -r ${zpool}/ROOT create -e default 1234
442 atf_check -o empty -s exit:0 bectl -r ${zpool}/ROOT jail -b 1234
443 atf_check -o empty -s exit:0 bectl -r ${zpool}/ROOT unjail 1234
446 atf_check -o empty -s exit:0 bectl -r ${zpool}/ROOT jail -b -o jid=233637 default
447 atf_check -o inline:"233637\n" -s exit:0 -x "jls -j 233637 name"
448 atf_check -o empty -s exit:0 bectl -r ${zpool}/ROOT unjail default
450 # Basic command-mode tests, with and without jail cleanup
451 atf_check -o inline:"rescue\nusr\n" bectl -r ${zpool}/ROOT \
452 jail default /rescue/rescue ls -1
453 atf_check -o inline:"rescue\nusr\n" bectl -r ${zpool}/ROOT \
454 jail -Uo path=${root} default /rescue/rescue ls -1
455 atf_check [ -f ${root}/rescue/rescue ]
456 atf_check bectl -r ${zpool}/ROOT ujail default
459 atf_check bectl -r ${zpool}/ROOT jail -bo path=${root} default
460 atf_check -o not-empty -x "jls | grep -F \"${root}\""
461 atf_check bectl -r ${zpool}/ROOT ujail default
462 atf_check -s not-exit:0 -x "jls | grep -F \"${root}\""
464 atf_check bectl -r ${zpool}/ROOT jail -b default
465 atf_check bectl -r ${zpool}/ROOT unjail default
466 atf_check -s not-exit:0 -x "jls | grep -F \"${root}\""
468 atf_check -o empty -s exit:0 bectl -r ${zpool}/ROOT jail -b default
469 atf_check -o empty -s exit:0 bectl -r ${zpool}/ROOT jail -b -o name=bectl_test target
470 atf_check -o empty -s exit:0 bectl -r ${zpool}/ROOT unjail target
471 atf_check -o empty -s exit:0 bectl -r ${zpool}/ROOT unjail default
473 atf_check -e ignore -s not-exit:0 bectl -r ${zpool}/ROOT ujail default
474 atf_check -e ignore -s not-exit:0 bectl -r ${zpool}/ROOT unjail default
477 atf_check bectl -r ${zpool}/ROOT jail -b -o path=${root} -u path default
479 atf_check -s not-exit:0 -x "mount | grep -F '${root}'"
480 atf_check bectl -r ${zpool}/ROOT ujail default
489 [ "$(uname -p)" = "i386" ]; then
494 [ "$(uname -p)" = "armv7" ]; then
501 mountpoint="$(bectl -r ${zpool}/ROOT list -H | grep ${bootenv} | awk '{print $3}')"
506 if [ -z "$jailid" ]; then
509 jail -r ${jailid}
524 [ "$(uname -p)" = "i386" ]; then
529 [ "$(uname -p)" = "armv7" ]; then
540 atf_check mkdir -p ${root}
547 atf_check bectl -r ${zpool}/ROOT rename default A
549 atf_check bectl -r ${zpool}/ROOT create -r -e A B
551 atf_check bectl -r ${zpool}/ROOT create -r -e B C
554 atf_check -o not-inline:"-" zfs list -Hr -o origin ${zpool}/ROOT/C
556 # Activating it should then promote it all the way out of clone-hood.
560 atf_check -o not-empty bectl -r ${zpool}/ROOT activate C
561 atf_check -o inline:"-\n-\n" zfs list -Hr -o origin ${zpool}/ROOT/C
577 [ "$(uname -p)" = "i386" ]; then
582 [ "$(uname -p)" = "armv7" ]; then
595 atf_check -s exit:0 -o empty bectl -r ${zpool}/ROOT create -e default ${be}
598 atf_check -s exit:0 -o ignore bectl -r ${zpool}/ROOT activate -t ${be}
599 atf_check -s exit:0 -o inline:"zfs:${zpool}/ROOT/${be}:\n" zfsbootcfg -z ${zpool}
602 atf_check -s exit:0 -o ignore bectl -r ${zpool}/ROOT destroy ${be}
605 atf_check -s exit:0 -o empty zfsbootcfg -z ${zpool}
621 [ "$(uname -p)" = "i386" ]; then
626 [ "$(uname -p)" = "armv7" ]; then
639 atf_check -s exit:0 -o empty bectl -r ${zpool}/ROOT create -e default ${be}
642 atf_check -s exit:0 -o ignore bectl -r ${zpool}/ROOT activate -t ${be}
643 atf_check -s exit:0 -o inline:"zfs:${zpool}/ROOT/${be}:\n" zfsbootcfg -z ${zpool}
646 atf_check -s exit:0 -o ignore bectl -r ${zpool}/ROOT rename ${be} ${be}_renamed
649 atf_check -s exit:0 -o inline:"zfs:${zpool}/ROOT/${be}_renamed:\n" zfsbootcfg -z ${zpool}