From 938d34959b6036fb56453affb36ede44470f2e57 Mon Sep 17 00:00:00 2001 From: Zoltan Fridrich Date: Fri, 15 Sep 2023 11:24:09 +0200 Subject: [PATCH] Add test for p11-kit generate-keypair command Signed-off-by: Zoltan Fridrich --- p11-kit/test-objects.sh | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/p11-kit/test-objects.sh b/p11-kit/test-objects.sh index f7b802f9..2ad7b27f 100755 --- a/p11-kit/test-objects.sh +++ b/p11-kit/test-objects.sh @@ -200,5 +200,18 @@ EOF fi } +test_generate_keypair() { + cat > list.exp < list.out + + : ${DIFF=diff} + if ! ${DIFF} list.exp list.out > list.diff; then + sed 's/^/# /' list.diff + assert_fail "output contains wrong result" + fi +} + run test_list_all test_list_with_type test_list_exact test_list_nonexistent \ - test_export_cert test_export_pubkey + test_export_cert test_export_pubkey test_generate_keypair