From d7521b36df464cd8ff46b61b5f706ca36df516c7 Mon Sep 17 00:00:00 2001 From: Alexandre Pujol Date: Tue, 22 Oct 2024 00:53:50 +0100 Subject: [PATCH] test: improve gpgconf tests. --- tests/bats/gpgconf.bats | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/tests/bats/gpgconf.bats b/tests/bats/gpgconf.bats index 871a8f1e..7d522d85 100644 --- a/tests/bats/gpgconf.bats +++ b/tests/bats/gpgconf.bats @@ -26,8 +26,23 @@ setup_file() { gpgconf --list-options gpg gpgconf --list-options gpgsm gpgconf --list-options gpg-agent - gpgconf --list-options scdaemon + gpgconf --list-options scdaemon || true gpgconf --list-options dirmngr aa_check } +# bats test_tags=gpgconf +@test "gpgconf: List programs and test whether they are runnable" { + gpgconf --check-programs || true + aa_check +} + +# bats test_tags=gpgconf +@test "gpgconf: Reload a component" { + gpgconf --reload gpg + gpgconf --reload gpgsm + gpgconf --reload gpg-agent + gpgconf --reload scdaemon || true + gpgconf --reload dirmngr + aa_check +}