Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add dangerous-test-real-card feature to run the tests on a real card. #97

Merged
merged 3 commits into from
Jan 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ virtual = ["std", "vpicc"]
rsa2048 = ["trussed/rsa2048"]
rsa4096 = ["rsa2048", "trussed/rsa4096"]
rsa4096-gen = ["rsa4096"]
dangerous-test-real-card = []

# used for delog
log-all = []
Expand Down
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
# SPDX-License-Identifier: CC0-1.0

export RUST_LOG ?= info,cargo_tarpaulin=off
export OPCARD_DANGEROUS_TEST_CARD_VENDOR ?= 0000
export OPCARD_DANGEROUS_TEST_CARD_SERIAL ?= 000000
export OPCARD_DANGEROUS_TEST_CARD_NAME ?= test card

FUZZ_JOBS?=$(shell nproc)
FUZZ_DURATION?="0"
Expand All @@ -26,6 +29,11 @@ fix:
test:
cargo test --features virtual,rsa2048,rsa4096-gen gpg_crypto,sequoia_gen_key
cargo test --features virtual,rsa2048,rsa4096


.PHONY: test
dangerous-real-card-test:
cargo test --features rsa4096,dangerous-test-real-card

.PHONY: fuzz
fuzz: fuzz-corpus
Expand Down
Loading