Add FluffyPGP to CI tests

This commit is contained in:
Heiko Schaefer 2022-05-13 21:15:08 +02:00
parent f83e26f213
commit 13edd290ef
No known key found for this signature in database
GPG key ID: 4A849A1904CCBD7D
2 changed files with 28 additions and 0 deletions

View file

@ -161,6 +161,23 @@ run_cardtest_ykneo:
# (the base image of run_cardtest uses bookworm) # (the base image of run_cardtest uses bookworm)
key: "bookworm" key: "bookworm"
run_cardtest_fluffypgp:
stage: virtual-test
image: registry.gitlab.com/hkos/openpgp-card-images/fluffypgp-builddeps
script:
- /etc/init.d/pcscd start
- su - -c "sh /home/jcardsim/run-card.sh" jcardsim
- cargo run -p openpgp-card-tests --bin import -- $CONFIG
- cargo run -p openpgp-card-tests --bin keygen -- $CONFIG
variables:
CONFIG: "card-functionality/docker/test-fluffypgp.toml"
cache:
# inherit all general cache settings
<<: *general_cache_config
# override the key
# (the base image of run_cardtest uses bookworm)
key: "bookworm"
hardware-builddeps: hardware-builddeps:
stage: hw-builddeps stage: hw-builddeps
needs: [ ] needs: [ ]

View file

@ -0,0 +1,11 @@
# SPDX-FileCopyrightText: 2022 Heiko Schaefer <heiko@schaefer.name>
# SPDX-License-Identifier: CC0-1.0
[card.fluffypgp]
backend.pcsc = "FFFD:00000001"
config.keygen = [
"RSA2k"
]
config.import = [
"card-functionality/data/rsa2k.sec",
]