fixup! test(nix): add basic functionality testing infra

This commit is contained in:
Thomas Mühlbacher 2024-06-22 16:50:39 +02:00
parent 6377d93b1c
commit 99b02a82fe
4 changed files with 4 additions and 9 deletions

View File

@ -2,7 +2,7 @@
set -euxo pipefail
blkdev="/dev/vdb"
mnt="/tmp/mnt"
mnt=$(mktemp -d)
pw=$(genpass)
uuid=$(uuidgen)
@ -28,7 +28,6 @@ echo "$pw" | bcachefs format \
udevadm settle
mkdir -p "$mnt"
echo "$pw" | bcachefs mount -v "UUID=$uuid" "$mnt"
keyctl search @u user "bcachefs:$uuid"

View File

@ -2,7 +2,7 @@
set -euxo pipefail
blkdev="/dev/vdb"
mnt="/tmp/mnt"
mnt=$(mktemp -d)
pw=$(genpass)
uuid=$(uuidgen)
@ -18,8 +18,6 @@ echo "$pw" | bcachefs format \
udevadm settle
mkdir -p "$mnt"
bcachefs unlock -c "$blkdev"
echo "$pw" | bcachefs unlock "$blkdev"

View File

@ -2,7 +2,7 @@
set -euxo pipefail
blkdev="/dev/vdb"
mnt="/tmp/mnt"
mnt=$(mktemp -d)
uuid=$(uuidgen)
bcachefs format \
@ -13,7 +13,6 @@ bcachefs format \
udevadm settle
mkdir -p "$mnt"
mount "$blkdev" "$mnt"
bcachefs show-super "$blkdev" | grep -i "external.*$uuid"

View File

@ -2,7 +2,7 @@
set -euxo pipefail
blkdev="/dev/vdb"
mnt="/tmp/mnt"
mnt=$(mktemp -d)
uuid=$(uuidgen)
bcachefs format \
@ -13,7 +13,6 @@ bcachefs format \
udevadm settle
mkdir -p "$mnt"
mount "$blkdev" "$mnt"
touch "$mnt/file1"