Skip to content

Commit

Permalink
extras/tests: adjust 30_kdf for KDF related changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Narrat committed Jul 28, 2024
1 parent d4f4667 commit 6665faf
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions extras/test/30_kdf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,22 @@ if test_have_prereq KDF; then
test_export "kdf"
test_expect_success 'Testing KDF: tomb creation' '
tt_dig -s 20 &&
tt_forge --tomb-pwd $DUMMYPASS --kdf 1 &&
tt_forge --tomb-pwd $DUMMYPASS --kdf &&
print $DUMMYPASS \
| gpg --batch --passphrase-fd 0 --no-tty --no-options -d $tomb_key \
| xxd &&
tt_lock --tomb-pwd $DUMMYPASS --kdf 1
tt_lock --tomb-pwd $DUMMYPASS
'

test_expect_success 'Testing KDF: tomb passwd' '
tt passwd -k $tomb_key --kdf 1 \
tt passwd -k $tomb_key --kdf \
--unsafe --tomb-old-pwd $DUMMYPASS --tomb-pwd $DUMMYPASSNEW &&
tt passwd -k $tomb_key --kdf 1 \
tt passwd -k $tomb_key --kdf \
--unsafe --tomb-old-pwd $DUMMYPASSNEW --tomb-pwd $DUMMYPASS
'

test_expect_success 'Testing KDF: tomb open & close' '
tt_open --tomb-pwd $DUMMYPASS --kdf 1 &&
tt_open --tomb-pwd $DUMMYPASS &&
tt_close
'
fi
Expand Down

0 comments on commit 6665faf

Please sign in to comment.