about summary refs log tree commit diff
path: root/nixos/tests/apfs.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/tests/apfs.nix')
-rw-r--r--nixos/tests/apfs.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/nixos/tests/apfs.nix b/nixos/tests/apfs.nix
index 15ed5aa7f573..3e79fa11dc04 100644
--- a/nixos/tests/apfs.nix
+++ b/nixos/tests/apfs.nix
@@ -18,6 +18,10 @@
     with subtest("mkapfs works with the maximum label length"):
       machine.succeed("mkapfs -L '000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2E2F303132333435363738393A3B3C3D3E3F404142434445464748494A4B4C4D4E4F505152535455565758595A5B5C5D5E5F606162636465666768696A6B6C6D6E6F707172737475767778797A7B7C7D7E7' /dev/vdb")
 
+    with subtest("apfs-label works"):
+      machine.succeed("mkapfs -L 'myLabel' /dev/vdb")
+      machine.succeed("apfs-label /dev/vdb | grep -q myLabel")
+
     with subtest("Enable case sensitivity and normalization sensitivity"):
       machine.succeed(
           "mkapfs -s -z /dev/vdb",