From bd02b3db8742668d03dd765ff13b51499b479e61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sosth=C3=A8ne=20Gu=C3=A9don?= Date: Wed, 7 Dec 2022 16:25:29 +0100 Subject: [PATCH] Add configurability to tests --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 77f35c6..9e844e4 100644 --- a/Makefile +++ b/Makefile @@ -4,6 +4,7 @@ .NOTPARALLEL: export RUST_LOG ?= info,cargo_tarpaulin=off +TEST_FEATURES ?=virtual,pivy-tests,opensc-tests .PHONY: build-cortex-m4 build-cortex-m4: @@ -11,7 +12,7 @@ build-cortex-m4: .PHONY: test test: - cargo test --features virtual,pivy-tests,opensc-tests + cargo test --features $(TEST_FEATURES) .PHONY: check check: @@ -23,7 +24,7 @@ check: .PHONY: tarpaulin tarpaulin: - cargo tarpaulin --features virtual -o Html -o Xml + cargo tarpaulin --features $(TEST_FEATURES) -o Html -o Xml .PHONY: example example: