Skip to content

Commit 99daef4

Browse files
committed
Add tutorial 13
1 parent f6832be commit 99daef4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+5136
-0
lines changed

13_integrated_testing/.cargo/config

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[target.'cfg(target_os = "none")']
2+
runner = "target/kernel_test_runner.sh"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"editor.formatOnSave": true,
3+
"rust.features": [
4+
"bsp_rpi3"
5+
],
6+
"rust.all_targets": false,
7+
"editor.rulers": [
8+
100
9+
],
10+
}

13_integrated_testing/Cargo.lock

+187
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

13_integrated_testing/Cargo.toml

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
[package]
2+
name = "kernel"
3+
version = "0.1.0"
4+
authors = ["Andre Richter <andre.o.richter@gmail.com>"]
5+
edition = "2018"
6+
7+
[package.metadata.cargo-xbuild]
8+
sysroot_path = "../xbuild_sysroot"
9+
10+
# The features section is used to select the target board.
11+
[features]
12+
default = []
13+
bsp_rpi3 = ["cortex-a", "register"]
14+
bsp_rpi4 = ["cortex-a", "register"]
15+
16+
[dependencies]
17+
r0 = "0.2.*"
18+
qemu-exit = "0.1.x"
19+
test-types = { path = "test-types" }
20+
21+
# Optional dependencies
22+
cortex-a = { version = "2.8.x", optional = true }
23+
register = { version = "0.4.x", optional = true }
24+
25+
# Temporary workaround for register-rs.
26+
patches = { path = "patches" }
27+
28+
##--------------------------------------------------------------------------------------------------
29+
## Testing
30+
##--------------------------------------------------------------------------------------------------
31+
32+
[dev-dependencies]
33+
test-macros = { path = "test-macros" }
34+
35+
# Unit tests are done in the library part of the kernel.
36+
[lib]
37+
name = "libkernel"
38+
test = true
39+
40+
# Disable unit tests for the kernel binary.
41+
[[bin]]
42+
name = "kernel"
43+
test = false
44+
45+
# List of tests without harness.
46+
[[test]]
47+
name = "00_interface_sanity_console"
48+
harness = false
49+
50+
[[test]]
51+
name = "02_arch_exception_handling"
52+
harness = false

0 commit comments

Comments
 (0)