* feat: Add missing cfg(test) * feat: Initial SHA HIL test * test: Test all the SHA modes
124 lines
3.7 KiB
TOML
124 lines
3.7 KiB
TOML
[package]
|
|
name = "hil-test"
|
|
version = "0.0.0"
|
|
edition = "2021"
|
|
publish = false
|
|
|
|
[[test]]
|
|
name = "aes"
|
|
harness = false
|
|
|
|
[[test]]
|
|
name = "crc"
|
|
harness = false
|
|
|
|
[[test]]
|
|
name = "gpio"
|
|
harness = false
|
|
|
|
[[test]]
|
|
name = "spi_full_duplex"
|
|
harness = false
|
|
|
|
[[test]]
|
|
name = "rsa"
|
|
harness = false
|
|
|
|
[[test]]
|
|
name = "sha"
|
|
harness = false
|
|
|
|
[[test]]
|
|
name = "uart"
|
|
harness = false
|
|
|
|
[[test]]
|
|
name = "uart_async"
|
|
harness = false
|
|
required-features = ["async", "embassy"]
|
|
|
|
[[test]]
|
|
name = "ecc"
|
|
harness = false
|
|
|
|
[dependencies]
|
|
cfg-if = "1.0.0"
|
|
critical-section = "1.1.2"
|
|
defmt = "0.3.6"
|
|
defmt-rtt = "0.4.0"
|
|
embassy-futures = "0.1.1"
|
|
embassy-time = { version = "0.3.0", features = ["generic-queue-64"] }
|
|
embedded-hal = "1.0.0"
|
|
embedded-hal-02 = { version = "0.2.7", package = "embedded-hal", features = ["unproven"] }
|
|
embedded-hal-async = { version = "1.0.0", optional = true }
|
|
embedded-hal-nb = { version = "1.0.0", optional = true }
|
|
esp-backtrace = { version = "0.11.1", git = "https://github.com/esp-rs/esp-backtrace", rev = "edff83c3945e8aa11081d8467af65803a82434ba", default-features = false, features = ["exception-handler", "panic-handler", "defmt", "semihosting"] }
|
|
esp-hal = { path = "../esp-hal", features = ["defmt", "embedded-hal", "embedded-hal-02"], optional = true }
|
|
portable-atomic = "1.6.0"
|
|
|
|
[dev-dependencies]
|
|
crypto-bigint = { version = "0.5.5", default-features = false }
|
|
elliptic-curve = { version = "0.13.8", default-features = false, features = ["sec1"] }
|
|
embassy-executor = { version = "0.5.0", default-features = false }
|
|
# Add the `embedded-test/defmt` feature for more verbose testing
|
|
embedded-test = { git = "https://github.com/probe-rs/embedded-test", rev = "1aa5a426d6b29ae2b509c5876dd33523b03e107c", default-features = false }
|
|
hex-literal = "0.4.1"
|
|
nb = "1.1.0"
|
|
p192 = { version = "0.13.0", default-features = false, features = ["arithmetic"] }
|
|
p256 = { version = "0.13.2", default-features = false, features = ["arithmetic"] }
|
|
|
|
[features]
|
|
default = ["async", "embassy", "embassy-executor-thread", "embassy-time-timg0"]
|
|
|
|
# Device support (required!):
|
|
esp32 = [
|
|
"embedded-test/xtensa-semihosting",
|
|
"esp-backtrace/esp32",
|
|
"esp-hal/esp32",
|
|
]
|
|
esp32c2 = ["esp-backtrace/esp32c2", "esp-hal/esp32c2"]
|
|
esp32c3 = ["esp-backtrace/esp32c3", "esp-hal/esp32c3"]
|
|
esp32c6 = ["esp-backtrace/esp32c6", "esp-hal/esp32c6"]
|
|
esp32h2 = ["esp-backtrace/esp32h2", "esp-hal/esp32h2"]
|
|
esp32s2 = [
|
|
"embedded-test/xtensa-semihosting",
|
|
"esp-backtrace/esp32s2",
|
|
"esp-hal/esp32s2",
|
|
]
|
|
esp32s3 = [
|
|
"embedded-test/xtensa-semihosting",
|
|
"esp-backtrace/esp32s3",
|
|
"esp-hal/esp32s3",
|
|
]
|
|
# Async & Embassy:
|
|
async = ["dep:embedded-hal-async", "esp-hal?/async"]
|
|
embassy = [
|
|
"embedded-test/embassy",
|
|
"embedded-test/external-executor",
|
|
"esp-hal?/embassy",
|
|
]
|
|
embassy-executor-interrupt = ["esp-hal?/embassy-executor-interrupt"]
|
|
embassy-executor-thread = ["esp-hal?/embassy-executor-thread"]
|
|
embassy-time-systick-16mhz = ["esp-hal?/embassy-time-systick-16mhz"]
|
|
embassy-time-systick-80mhz = ["esp-hal?/embassy-time-systick-80mhz"]
|
|
embassy-time-timg0 = ["esp-hal?/embassy-time-timg0"]
|
|
|
|
# https://doc.rust-lang.org/cargo/reference/profiles.html#test
|
|
# Test and bench profiles inherit from dev and release respectively.
|
|
[profile.dev]
|
|
codegen-units = 1
|
|
debug = 2
|
|
debug-assertions = true
|
|
incremental = false
|
|
opt-level = "z"
|
|
overflow-checks = true
|
|
|
|
[profile.release]
|
|
codegen-units = 1
|
|
debug = 2
|
|
debug-assertions = false
|
|
incremental = false
|
|
opt-level = 3
|
|
lto = "fat"
|
|
overflow-checks = false
|