mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-04-03 00:00:03 +03:00
fixup! test(nix): add basic functionality testing infra
This commit is contained in:
parent
77e90e74bc
commit
65f1c3f52a
@ -35,6 +35,7 @@ let
|
|||||||
];
|
];
|
||||||
|
|
||||||
environment.variables = {
|
environment.variables = {
|
||||||
|
BCACHEFS_LOG = "trace";
|
||||||
RUST_BACKTRACE = "full";
|
RUST_BACKTRACE = "full";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -28,10 +28,10 @@ echo "$pw" | bcachefs format \
|
|||||||
|
|
||||||
udevadm settle
|
udevadm settle
|
||||||
|
|
||||||
echo "$pw" | bcachefs mount -v "UUID=$uuid" "$mnt"
|
echo "$pw" | bcachefs mount "UUID=$uuid" "$mnt"
|
||||||
|
|
||||||
keyctl search @u user "bcachefs:$uuid"
|
keyctl search @u user "bcachefs:$uuid"
|
||||||
|
|
||||||
umount "$mnt"
|
umount "$mnt"
|
||||||
|
|
||||||
bcachefs mount -v "${blkdev}1" "$mnt"
|
bcachefs mount "${blkdev}1" "$mnt"
|
||||||
|
@ -23,7 +23,7 @@ bcachefs unlock -c "$blkdev"
|
|||||||
echo "$pw" | bcachefs unlock "$blkdev"
|
echo "$pw" | bcachefs unlock "$blkdev"
|
||||||
key_id=$(keyctl search @u user "bcachefs:$uuid")
|
key_id=$(keyctl search @u user "bcachefs:$uuid")
|
||||||
|
|
||||||
bcachefs mount -v "$blkdev" "$mnt"
|
bcachefs mount "$blkdev" "$mnt"
|
||||||
umount "$mnt"
|
umount "$mnt"
|
||||||
|
|
||||||
keyctl unlink "$key_id"
|
keyctl unlink "$key_id"
|
||||||
@ -36,20 +36,20 @@ umount "$mnt"
|
|||||||
|
|
||||||
keyctl unlink "$key_id"
|
keyctl unlink "$key_id"
|
||||||
|
|
||||||
bcachefs mount -v -f <(echo "$pw") "$blkdev" "$mnt"
|
bcachefs mount -f <(echo "$pw") "$blkdev" "$mnt"
|
||||||
key_id=$(keyctl search @u user "bcachefs:$uuid")
|
key_id=$(keyctl search @u user "bcachefs:$uuid")
|
||||||
umount "$mnt"
|
umount "$mnt"
|
||||||
keyctl unlink "$key_id"
|
keyctl unlink "$key_id"
|
||||||
|
|
||||||
echo "$pw" | bcachefs mount -v -k stdin "$blkdev" "$mnt"
|
echo "$pw" | bcachefs mount -k stdin "$blkdev" "$mnt"
|
||||||
key_id=$(keyctl search @u user "bcachefs:$uuid")
|
key_id=$(keyctl search @u user "bcachefs:$uuid")
|
||||||
umount "$mnt"
|
umount "$mnt"
|
||||||
keyctl unlink "$key_id"
|
keyctl unlink "$key_id"
|
||||||
|
|
||||||
echo "$pw" | bcachefs mount -v "$blkdev" "$mnt"
|
echo "$pw" | bcachefs mount "$blkdev" "$mnt"
|
||||||
key_id=$(keyctl search @u user "bcachefs:$uuid")
|
key_id=$(keyctl search @u user "bcachefs:$uuid")
|
||||||
umount "$mnt"
|
umount "$mnt"
|
||||||
bcachefs mount -v -k fail "$blkdev"
|
bcachefs mount -k fail "$blkdev"
|
||||||
bcachefs mount -v -k wait "$blkdev" "$mnt"
|
bcachefs mount -k wait "$blkdev" "$mnt"
|
||||||
umount "$mnt"
|
umount "$mnt"
|
||||||
keyctl unlink "$key_id"
|
keyctl unlink "$key_id"
|
||||||
|
@ -19,7 +19,7 @@ echo "$pw" | bcachefs format \
|
|||||||
|
|
||||||
udevadm settle
|
udevadm settle
|
||||||
|
|
||||||
echo "$pw" | bcachefs mount -v "UUID=$uuid" "$mnt1"
|
echo "$pw" | bcachefs mount "UUID=$uuid" "$mnt1"
|
||||||
|
|
||||||
fallocate --length 2G "$mnt1/fs.img"
|
fallocate --length 2G "$mnt1/fs.img"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user