Path: blob/main/tests/sys/geom/class/eli/configure_test.sh
39635 views
1. $(atf_get_srcdir)/conf.sh23atf_test_case configure_b_B cleanup4configure_b_B_head()5{6atf_set "descr" "geli configure -b will set the BOOT flag"7atf_set "require.user" "root"8}9configure_b_B_body()10{11geli_test_setup1213sectors=10014attach_md md -t malloc -s `expr $sectors + 1`1516atf_check geli init -B none -P -K /dev/null ${md}1718atf_check -s exit:0 -o match:'flags: 0x200$' geli dump ${md}1920atf_check geli init -B none -b -P -K /dev/null ${md}2122atf_check -s exit:0 -o match:'flags: 0x202$' geli dump ${md}2324atf_check geli configure -B ${md}2526atf_check -s exit:0 -o match:'flags: 0x200$' geli dump ${md}2728atf_check geli configure -b ${md}2930atf_check -s exit:0 -o match:'flags: 0x202$' geli dump ${md}3132atf_check geli attach -p -k /dev/null ${md}3334atf_check -s exit:0 -o match:'^Flags: .*BOOT' geli list ${md}.eli3536atf_check geli configure -B ${md}3738atf_check -o not-match:'^Flags: .*BOOT' geli list ${md}.eli3940atf_check -s exit:0 -o match:'flags: 0x200$' geli dump ${md}4142atf_check geli configure -b ${md}4344atf_check -s exit:0 -o match:'^Flags: .*BOOT' geli list ${md}.eli4546atf_check -s exit:0 -o match:'flags: 0x202$' geli dump ${md}4748atf_check geli detach ${md}49}50configure_b_B_cleanup()51{52geli_test_cleanup53}5455atf_init_test_cases()56{57atf_add_test_case configure_b_B58}596061