]> Cypherpunks repositories - dsc.git/commitdiff
Check that empty hashes also work
authorSergey Matveev <stargrave@stargrave.org>
Wed, 24 Dec 2025 11:46:08 +0000 (14:46 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Wed, 24 Dec 2025 11:46:08 +0000 (14:46 +0300)
t/csum.t

index 803b639dca486dad3653a26d72f6fe471898e128a7f63ac1b305141b1e0a28d8..02d58499a33390c52ff575937caf6aeb2e5576cbe4321741961b05ffe1d68c03 100755 (executable)
--- a/t/csum.t
+++ b/t/csum.t
@@ -37,4 +37,15 @@ echo -n "sha2-512 " >>expected
 cat hsh >>expected
 test_expect_success "cmp" "test_cmp out expected"
 
+DSC_HASHES=""
+test_expect_success "empty hashes" "dsc export >out"
+cat >expected <<EOF
+-- .dirs --
+sys
+-- sys/hostname --
+mein
+-- .csum --
+EOF
+test_expect_success "cmp" "test_cmp out expected"
+
 test_done