summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2026-03-01 17:38:09 +0100
committerNguyễn Gia Phong <cnx@loang.net>2026-04-10 14:55:04 +0900
commit4c7a7a1d498f4ca418a649a0b3e3a056569aec15 (patch)
treeae694f5f88917e752725a60a5526c4fbf6eb7688 /tests
parent4cbd5f883d1b05fd518f88e9256261b4229a6896 (diff)
tests: keys: Moving to openpgp subdirectory.
* tests/keys/*.(pub|sec): Move to tests/keys/openpgp/*.(pub|sec) * build-aux/test-env.in: Adapt accordingly. * Makefile.am: Likewise. * guix/tests/gnupg.scm: Likewise. * tests/guix-authenticate.sh: Likewise. * tests/openpgp.scm: Likewise. Change-Id: If8897cec9851cc51a4ebadcc5927dc0e0520b881 Reviewed-by: Danny Milosavljevic <dannym@friendly-machines.com> Signed-off-by: Nguyễn Gia Phong <cnx@loang.net>
Diffstat (limited to 'tests')
-rw-r--r--tests/guix-authenticate.sh4
-rw-r--r--tests/keys/openpgp/civodul.pub (renamed from tests/keys/civodul.pub)0
-rw-r--r--tests/keys/openpgp/dsa.pub (renamed from tests/keys/dsa.pub)0
-rw-r--r--tests/keys/openpgp/ed25519-2.pub (renamed from tests/keys/ed25519-2.pub)0
-rw-r--r--tests/keys/openpgp/ed25519-2.sec (renamed from tests/keys/ed25519-2.sec)0
-rw-r--r--tests/keys/openpgp/ed25519-3.pub (renamed from tests/keys/ed25519-3.pub)0
-rw-r--r--tests/keys/openpgp/ed25519-3.sec (renamed from tests/keys/ed25519-3.sec)0
-rw-r--r--tests/keys/openpgp/ed25519.pub (renamed from tests/keys/ed25519.pub)0
-rw-r--r--tests/keys/openpgp/ed25519.sec (renamed from tests/keys/ed25519.sec)0
-rw-r--r--tests/keys/openpgp/rsa.pub (renamed from tests/keys/rsa.pub)0
-rw-r--r--tests/keys/openpgp/signing-key.pub (renamed from tests/keys/signing-key.pub)0
-rw-r--r--tests/keys/openpgp/signing-key.sec (renamed from tests/keys/signing-key.sec)0
-rw-r--r--tests/openpgp.scm19
13 files changed, 13 insertions, 10 deletions
diff --git a/tests/guix-authenticate.sh b/tests/guix-authenticate.sh
index ddd39d09c4..3fe974955c 100644
--- a/tests/guix-authenticate.sh
+++ b/tests/guix-authenticate.sh
@@ -28,7 +28,7 @@ rm -f "$sig" "$hash"
trap 'rm -f "$sig" "$hash"' EXIT
-key="$abs_top_srcdir/tests/keys/signing-key.sec"
+key="$abs_top_srcdir/tests/keys/openpgp/signing-key.sec"
key_len="`echo -n $key | wc -c`"
# A hexadecimal string as long as a sha256 hash.
@@ -67,7 +67,7 @@ test "$code" -ne 0
# encoded independently of the current locale: <https://bugs.gnu.org/43421>.
hash="636166e9636166e9636166e9636166e9636166e9636166e9636166e9636166e9"
latin1_cafe="caf$(printf '\351')"
-echo "sign 26:tests/keys/signing-key.sec 64:$hash" | guix authenticate \
+echo "sign 34:tests/keys/openpgp/signing-key.sec 64:$hash" | guix authenticate \
| LC_ALL=C grep "hash sha256 \"$latin1_cafe"
# Test for <http://bugs.gnu.org/17312>: make sure 'guix authenticate' produces
diff --git a/tests/keys/civodul.pub b/tests/keys/openpgp/civodul.pub
index 272600ac93..272600ac93 100644
--- a/tests/keys/civodul.pub
+++ b/tests/keys/openpgp/civodul.pub
diff --git a/tests/keys/dsa.pub b/tests/keys/openpgp/dsa.pub
index 4727975c63..4727975c63 100644
--- a/tests/keys/dsa.pub
+++ b/tests/keys/openpgp/dsa.pub
diff --git a/tests/keys/ed25519-2.pub b/tests/keys/openpgp/ed25519-2.pub
index ef050e3845..ef050e3845 100644
--- a/tests/keys/ed25519-2.pub
+++ b/tests/keys/openpgp/ed25519-2.pub
diff --git a/tests/keys/ed25519-2.sec b/tests/keys/openpgp/ed25519-2.sec
index 059765f557..059765f557 100644
--- a/tests/keys/ed25519-2.sec
+++ b/tests/keys/openpgp/ed25519-2.sec
diff --git a/tests/keys/ed25519-3.pub b/tests/keys/openpgp/ed25519-3.pub
index 057f29577e..057f29577e 100644
--- a/tests/keys/ed25519-3.pub
+++ b/tests/keys/openpgp/ed25519-3.pub
diff --git a/tests/keys/ed25519-3.sec b/tests/keys/openpgp/ed25519-3.sec
index 04128a4131..04128a4131 100644
--- a/tests/keys/ed25519-3.sec
+++ b/tests/keys/openpgp/ed25519-3.sec
diff --git a/tests/keys/ed25519.pub b/tests/keys/openpgp/ed25519.pub
index 5a2fccc9f9..5a2fccc9f9 100644
--- a/tests/keys/ed25519.pub
+++ b/tests/keys/openpgp/ed25519.pub
diff --git a/tests/keys/ed25519.sec b/tests/keys/openpgp/ed25519.sec
index 068738dfab..068738dfab 100644
--- a/tests/keys/ed25519.sec
+++ b/tests/keys/openpgp/ed25519.sec
diff --git a/tests/keys/rsa.pub b/tests/keys/openpgp/rsa.pub
index 0ef9145ef0..0ef9145ef0 100644
--- a/tests/keys/rsa.pub
+++ b/tests/keys/openpgp/rsa.pub
diff --git a/tests/keys/signing-key.pub b/tests/keys/openpgp/signing-key.pub
index 092424a15d..092424a15d 100644
--- a/tests/keys/signing-key.pub
+++ b/tests/keys/openpgp/signing-key.pub
diff --git a/tests/keys/signing-key.sec b/tests/keys/openpgp/signing-key.sec
index 558e189102..558e189102 100644
--- a/tests/keys/signing-key.sec
+++ b/tests/keys/openpgp/signing-key.sec
diff --git a/tests/openpgp.scm b/tests/openpgp.scm
index 1f20466772..30be664468 100644
--- a/tests/openpgp.scm
+++ b/tests/openpgp.scm
@@ -172,7 +172,7 @@ Pz7oopeN72xgggYUNT37ezqN3MeCqw0=
(not (port-ascii-armored? (open-bytevector-input-port %binary-sample))))
(test-assert "get-openpgp-keyring"
- (let* ((key (search-path %load-path "tests/keys/civodul.pub"))
+ (let* ((key (search-path %load-path "tests/keys/openpgp/civodul.pub"))
(keyring (get-openpgp-keyring
(open-bytevector-input-port
(call-with-input-file key read-radix-64)))))
@@ -232,10 +232,11 @@ Pz7oopeN72xgggYUNT37ezqN3MeCqw0=
(verify-openpgp-signature signature keyring
(open-input-string "Hello!\n"))))
(list status (openpgp-public-key-id key)))))
- (list "tests/keys/rsa.pub" "tests/keys/dsa.pub"
- "tests/keys/ed25519.pub"
- "tests/keys/ed25519.pub"
- "tests/keys/ed25519.pub")
+ (list "tests/keys/openpgp/rsa.pub"
+ "tests/keys/openpgp/dsa.pub"
+ "tests/keys/openpgp/ed25519.pub"
+ "tests/keys/openpgp/ed25519.pub"
+ "tests/keys/openpgp/ed25519.pub")
(list %hello-signature/rsa %hello-signature/dsa
%hello-signature/ed25519/sha256
%hello-signature/ed25519/sha512
@@ -254,9 +255,11 @@ Pz7oopeN72xgggYUNT37ezqN3MeCqw0=
(call-with-input-file key read-radix-64))
keyring)))
%empty-keyring
- '("tests/keys/rsa.pub" "tests/keys/dsa.pub"
- "tests/keys/ed25519.pub" "tests/keys/ed25519.pub"
- "tests/keys/ed25519.pub"))))
+ '("tests/keys/openpgp/rsa.pub"
+ "tests/keys/openpgp/dsa.pub"
+ "tests/keys/openpgp/ed25519.pub"
+ "tests/keys/openpgp/ed25519.pub"
+ "tests/keys/openpgp/ed25519.pub"))))
(map (lambda (signature)
(let ((signature (string->openpgp-packet signature)))
(let-values (((status key)