callback test coding

This commit is contained in:
bunnie 2021-04-12 13:32:00 +08:00
parent f1d97fe428
commit f15266c070
3 changed files with 69 additions and 0 deletions

51
Cargo.lock generated
View file

@ -164,6 +164,57 @@ version = "1.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ae44d1a3d5a19df61dd0c8beb138458ac2a53a7ac09eba97d55592540004306b"
[[package]]
name = "cb-test-c1"
version = "0.1.0"
dependencies = [
"heapless",
"log",
"log-server",
"num-derive",
"num-traits",
"rkyv 0.4.3",
"ticktimer-server",
"utralib",
"xous",
"xous-ipc",
"xous-names",
]
[[package]]
name = "cb-test-c2"
version = "0.1.0"
dependencies = [
"heapless",
"log",
"log-server",
"num-derive",
"num-traits",
"rkyv 0.4.3",
"ticktimer-server",
"utralib",
"xous",
"xous-ipc",
"xous-names",
]
[[package]]
name = "cb-test-srv"
version = "0.1.0"
dependencies = [
"benchmark-target",
"log",
"log-server",
"num-derive",
"num-traits",
"rkyv 0.4.3",
"ticktimer-server",
"utralib",
"xous",
"xous-ipc",
"xous-names",
]
[[package]]
name = "cc"
version = "1.0.66"

View file

@ -21,6 +21,9 @@ default-members = [
"services/llio",
"services/rtc",
"services/trng-tester",
"services/cb-test-srv",
"services/cb-test-c1",
"services/cb-test-c2",
]
members = [
"xous-ipc",
@ -53,6 +56,9 @@ members = [
"services/llio",
"services/rtc",
"services/trng-tester",
"services/cb-test-srv",
"services/cb-test-c1",
"services/cb-test-c2",
]
resolver = "2"

View file

@ -80,6 +80,16 @@ fn try_main() -> Result<(), DynError> {
"rkyv-test-client",
"rkyv-test-server",
];
let cbtest_pkgs = [
"ticktimer-server",
"log-server",
"xous-names",
"trng",
"llio",
"cb-test-srv",
"cb-test-c1",
"cb-test-c2",
];
let task = env::args().nth(1);
match task.as_deref() {
Some("renode-image") => renode_image(false, &hw_pkgs)?,
@ -99,6 +109,7 @@ fn try_main() -> Result<(), DynError> {
Some("benchmark") => build_hw_image(false, env::args().nth(2), &benchmark_pkgs)?,
Some("fcc-agent") => build_hw_image(false, env::args().nth(2), &fcc_pkgs)?,
Some("minimal") => build_hw_image(false, env::args().nth(2), &minimal_pkgs)?,
Some("cbtest") => build_hw_image(false, env::args().nth(2), &cbtest_pkgs)?,
Some("debug") => run(true, &hw_pkgs)?,
_ => print_help(),
}
@ -117,6 +128,7 @@ debug runs a debug build using a hosted environment
benchmark [soc.svd] builds a benchmarking image for real hardware
fcc-agent [soc.svd] builds a version suitable for FCC testing
minimal [soc.svd] builds a minimal image for API testing
cbtest builds an image for callback testing
"
)
}