Changeset View
Changeset View
Standalone View
Standalone View
sbin/bectl/tests/bectl_test.sh
Show First 20 Lines • Show All 116 Lines • ▼ Show 20 Lines | bectl_create_body() | ||||
bectl_create_setup ${zpool} ${disk} ${mount} | bectl_create_setup ${zpool} ${disk} ${mount} | ||||
# Create a child dataset that will be used to test creation | # Create a child dataset that will be used to test creation | ||||
# of recursive and non-recursive boot environments. | # of recursive and non-recursive boot environments. | ||||
atf_check zfs create -o mountpoint=/usr -o canmount=noauto \ | atf_check zfs create -o mountpoint=/usr -o canmount=noauto \ | ||||
${zpool}/ROOT/default/usr | ${zpool}/ROOT/default/usr | ||||
# BE datasets with spaces are not bootable, PR 254441. | |||||
atf_check -e not-empty -s not-exit:0 \ | |||||
bectl -r ${zpool}/ROOT create "foo bar" | |||||
# Test standard creation, creation of a snapshot, and creation from a | # Test standard creation, creation of a snapshot, and creation from a | ||||
# snapshot. | # snapshot. | ||||
atf_check bectl -r ${zpool}/ROOT create -e default default2 | atf_check bectl -r ${zpool}/ROOT create -e default default2 | ||||
atf_check bectl -r ${zpool}/ROOT create default2@test_snap | atf_check bectl -r ${zpool}/ROOT create default2@test_snap | ||||
atf_check bectl -r ${zpool}/ROOT create -e default2@test_snap default3 | atf_check bectl -r ${zpool}/ROOT create -e default2@test_snap default3 | ||||
# Test standard creation, creation of a snapshot, and creation from a | # Test standard creation, creation of a snapshot, and creation from a | ||||
# snapshot for recursive boot environments. | # snapshot for recursive boot environments. | ||||
▲ Show 20 Lines • Show All 401 Lines • Show Last 20 Lines |