rust-raspberrypi-OS-tutorials/12_integrated_testing/Cargo.toml

56 lines
1.4 KiB
TOML
Raw Normal View History

2019-12-30 23:04:13 +00:00
[package]
name = "kernel"
version = "0.1.0"
authors = ["Andre Richter <andre.o.richter@gmail.com>"]
edition = "2018"
2020-11-23 21:44:31 +00:00
[profile.release]
lto = true
2019-12-30 23:04:13 +00:00
[features]
default = []
2020-10-28 10:45:28 +00:00
bsp_rpi3 = ["register"]
bsp_rpi4 = ["register"]
test_build = ["qemu-exit"]
2020-10-28 10:45:28 +00:00
##--------------------------------------------------------------------------------------------------
## Dependencies
##--------------------------------------------------------------------------------------------------
2019-12-30 23:04:13 +00:00
[dependencies]
test-types = { path = "test-types" }
# Optional dependencies
register = { version = "1.x.x", features = ["no_std_unit_tests"], optional = true }
qemu-exit = { version = "1.x.x", optional = true }
2019-12-30 23:04:13 +00:00
2020-10-28 10:45:28 +00:00
# Platform specific dependencies
[target.'cfg(target_arch = "aarch64")'.dependencies]
cortex-a = { version = "5.x.x" }
2020-10-28 10:45:28 +00:00
2019-12-30 23:04:13 +00:00
##--------------------------------------------------------------------------------------------------
## Testing
##--------------------------------------------------------------------------------------------------
[dev-dependencies]
test-macros = { path = "test-macros" }
# Unit tests are done in the library part of the kernel.
[lib]
name = "libkernel"
test = true
# Disable unit tests for the kernel binary.
[[bin]]
name = "kernel"
test = false
# List of tests without harness.
[[test]]
name = "00_console_sanity"
2019-12-30 23:04:13 +00:00
harness = false
[[test]]
name = "02_exception_sync_page_fault"
2019-12-30 23:04:13 +00:00
harness = false