3 . $(atf_get_srcdir)/conf.sh
5 atf_test_case configure_b_B cleanup
8 atf_set "descr" "geli configure -b will set the BOOT flag"
9 atf_set "require.user" "root"
16 md=$(attach_md -t malloc -s `expr $sectors + 1`)
18 atf_check geli init -B none -P -K /dev/null ${md}
20 atf_check -s exit:0 -o match:'flags: 0x200$' geli dump ${md}
22 atf_check geli init -B none -b -P -K /dev/null ${md}
24 atf_check -s exit:0 -o match:'flags: 0x202$' geli dump ${md}
26 atf_check geli configure -B ${md}
28 atf_check -s exit:0 -o match:'flags: 0x200$' geli dump ${md}
30 atf_check geli configure -b ${md}
32 atf_check -s exit:0 -o match:'flags: 0x202$' geli dump ${md}
34 atf_check geli attach -p -k /dev/null ${md}
36 atf_check -s exit:0 -o match:'^Flags: .*BOOT' geli list ${md}.eli
38 atf_check geli configure -B ${md}
40 atf_check -o not-match:'^Flags: .*BOOT' geli list ${md}.eli
42 atf_check -s exit:0 -o match:'flags: 0x200$' geli dump ${md}
44 atf_check geli configure -b ${md}
46 atf_check -s exit:0 -o match:'^Flags: .*BOOT' geli list ${md}.eli
48 atf_check -s exit:0 -o match:'flags: 0x202$' geli dump ${md}
50 atf_check geli detach ${md}
52 configure_b_B_cleanup()
59 atf_add_test_case configure_b_B