ci: Add tests against canokey virtual card
(see https://github.com/canokeys/canokey-core) Fixes #4.
This commit is contained in:
parent
4ef4291b53
commit
d0fc4b5725
2 changed files with 38 additions and 0 deletions
|
@ -174,6 +174,27 @@ run_cardtest_opcard_rs:
|
||||||
# (the base image is separate from the other virtual cards)
|
# (the base image is separate from the other virtual cards)
|
||||||
key: "opcard_rs"
|
key: "opcard_rs"
|
||||||
|
|
||||||
|
run_cardtest_canokey:
|
||||||
|
stage: virtual-test
|
||||||
|
image: registry.gitlab.com/openpgp-card/virtual-cards/canokey-builddeps
|
||||||
|
before_script:
|
||||||
|
- export PATH="$HOME/.cargo/bin:$PATH"
|
||||||
|
- *report-rust
|
||||||
|
script:
|
||||||
|
- sh /start.sh && sleep 10
|
||||||
|
# - 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-canokey.toml"
|
||||||
|
cache:
|
||||||
|
# inherit all general cache settings
|
||||||
|
<<: *general_cache_config
|
||||||
|
# override the key
|
||||||
|
# (the base image of canokey-builddeps is distinct from the other virtual card images)
|
||||||
|
key: "canokey"
|
||||||
|
|
||||||
run_cardtest_ykneo:
|
run_cardtest_ykneo:
|
||||||
stage: virtual-test
|
stage: virtual-test
|
||||||
image: registry.gitlab.com/openpgp-card/virtual-cards/ykneo-builddeps
|
image: registry.gitlab.com/openpgp-card/virtual-cards/ykneo-builddeps
|
||||||
|
|
17
card-functionality/ci/virt-canokey.toml
Normal file
17
card-functionality/ci/virt-canokey.toml
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
# SPDX-FileCopyrightText: 2021 Heiko Schaefer <heiko@schaefer.name>
|
||||||
|
# SPDX-License-Identifier: CC0-1.0
|
||||||
|
|
||||||
|
[card.smartpgp]
|
||||||
|
backend.pcsc = "F1D0:00000000"
|
||||||
|
config.keygen = [
|
||||||
|
"RSA2k", "RSA3k", "RSA4k",
|
||||||
|
"NIST256", "NIST384", "Curve25519"
|
||||||
|
]
|
||||||
|
config.import = [
|
||||||
|
"card-functionality/data/rsa2k.sec",
|
||||||
|
"card-functionality/data/rsa3k.sec",
|
||||||
|
"card-functionality/data/rsa4k.sec",
|
||||||
|
"card-functionality/data/nist256.sec",
|
||||||
|
"card-functionality/data/nist384.sec",
|
||||||
|
"card-functionality/data/25519.sec",
|
||||||
|
]
|
Loading…
Reference in a new issue