card-functionality: use virtual 'opcard-rs' card in CI
This commit is contained in:
parent
4181c2d66c
commit
0d978f8dcb
2 changed files with 30 additions and 0 deletions
|
@ -130,6 +130,24 @@ run_cardtest_smartpgp:
|
|||
# (the base image of run_cardtest uses bookworm)
|
||||
key: "bookworm"
|
||||
|
||||
run_cardtest_opcard_rs:
|
||||
stage: virtual-test
|
||||
image: registry.gitlab.com/openpgp-card/virtual-cards/opcard-rs-builddeps
|
||||
script:
|
||||
- sh /start.sh
|
||||
- RUST_BACKTRACE=1 cargo run -p openpgp-card-tools --bin opgpcard -- status
|
||||
- RUST_BACKTRACE=1 cargo run -p openpgp-card-tools --bin opgpcard -- info
|
||||
- RUST_BACKTRACE=1 cargo run -p openpgp-card-tests --bin import -- $CONFIG
|
||||
- RUST_BACKTRACE=1 cargo run -p openpgp-card-tests --bin keygen -- $CONFIG
|
||||
variables:
|
||||
CONFIG: "card-functionality/ci/virt-opcard-rs.toml"
|
||||
cache:
|
||||
# inherit all general cache settings
|
||||
<<: *general_cache_config
|
||||
# override the key
|
||||
# (the base image of run_cardtest uses bookworm)
|
||||
key: "bookworm"
|
||||
|
||||
run_cardtest_ykneo:
|
||||
stage: virtual-test
|
||||
image: registry.gitlab.com/openpgp-card/virtual-cards/ykneo-builddeps
|
||||
|
|
12
card-functionality/ci/virt-opcard-rs.toml
Normal file
12
card-functionality/ci/virt-opcard-rs.toml
Normal file
|
@ -0,0 +1,12 @@
|
|||
# SPDX-FileCopyrightText: 2022 Heiko Schaefer <heiko@schaefer.name>
|
||||
# SPDX-License-Identifier: CC0-1.0
|
||||
|
||||
[card.opcard-rs]
|
||||
backend.pcsc = "0000:00000000"
|
||||
config.keygen = [
|
||||
"NIST256", "Curve25519"
|
||||
]
|
||||
config.import = [
|
||||
"card-functionality/data/nist256.sec",
|
||||
"card-functionality/data/25519.sec",
|
||||
]
|
Loading…
Reference in a new issue