003 File Manager
Current Path:
/usr/src/tests/sys/geom/class/eli
usr
/
src
/
tests
/
sys
/
geom
/
class
/
eli
/
📁
..
📄
Makefile
(817 B)
📄
Makefile.depend
(317 B)
📄
attach_test.sh
(2.97 KB)
📄
conf.sh
(2.17 KB)
📄
configure_test.sh
(1.28 KB)
📄
delkey_test.sh
(3.03 KB)
📄
detach_test.sh
(1.03 KB)
📄
gentestvect.py
(1.58 KB)
📄
hmac_test.c
(706 B)
📄
init_test.sh
(10.91 KB)
📄
integrity_test.sh
(4.06 KB)
📄
kill_test.sh
(2.48 KB)
📄
misc_test.sh
(4.85 KB)
📄
onetime_test.sh
(4.07 KB)
📄
online_resize_test.sh
(8.73 KB)
📄
reentrancy_test.sh
(1.53 KB)
📄
resize_test.sh
(2.56 KB)
📄
setkey_test.sh
(4.6 KB)
📄
testvect.h
(471.52 KB)
Editing: configure_test.sh
# $FreeBSD$ . $(atf_get_srcdir)/conf.sh atf_test_case configure_b_B cleanup configure_b_B_head() { atf_set "descr" "geli configure -b will set the BOOT flag" atf_set "require.user" "root" } configure_b_B_body() { geli_test_setup sectors=100 md=$(attach_md -t malloc -s `expr $sectors + 1`) atf_check geli init -B none -P -K /dev/null ${md} atf_check -s exit:0 -o match:'flags: 0x200$' geli dump ${md} atf_check geli init -B none -b -P -K /dev/null ${md} atf_check -s exit:0 -o match:'flags: 0x202$' geli dump ${md} atf_check geli configure -B ${md} atf_check -s exit:0 -o match:'flags: 0x200$' geli dump ${md} atf_check geli configure -b ${md} atf_check -s exit:0 -o match:'flags: 0x202$' geli dump ${md} atf_check geli attach -p -k /dev/null ${md} atf_check -s exit:0 -o match:'^Flags: .*BOOT' geli list ${md}.eli atf_check geli configure -B ${md} atf_check -o not-match:'^Flags: .*BOOT' geli list ${md}.eli atf_check -s exit:0 -o match:'flags: 0x200$' geli dump ${md} atf_check geli configure -b ${md} atf_check -s exit:0 -o match:'^Flags: .*BOOT' geli list ${md}.eli atf_check -s exit:0 -o match:'flags: 0x202$' geli dump ${md} atf_check geli detach ${md} } configure_b_B_cleanup() { geli_test_cleanup } atf_init_test_cases() { atf_add_test_case configure_b_B }
Upload File
Create Folder