diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9139736..26a7f8d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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 diff --git a/card-functionality/ci/virt-opcard-rs.toml b/card-functionality/ci/virt-opcard-rs.toml new file mode 100644 index 0000000..0a0141d --- /dev/null +++ b/card-functionality/ci/virt-opcard-rs.toml @@ -0,0 +1,12 @@ +# SPDX-FileCopyrightText: 2022 Heiko Schaefer +# 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", +] \ No newline at end of file