Add OSDK demos in Asterinas Book in OSDK integration test

This commit is contained in:
Jianfeng Jiang
2024-03-14 09:17:49 +00:00
committed by Tate, Hongliang Tian
parent 11ff0521e7
commit 63499c675c
15 changed files with 240 additions and 35 deletions

View File

@ -81,12 +81,12 @@ pub struct CrateInfo {
pub path: String,
}
/// Retrieve the default member in the workspace.
///
/// If there is only one kernel crate, return that crate;
/// If there are multiple kernel crates or no kernel crates in the workspace,
/// this function will exit with an error.
///
/// Retrieve the default member in the workspace.
///
/// If there is only one kernel crate, return that crate;
/// If there are multiple kernel crates or no kernel crates in the workspace,
/// this function will exit with an error.
///
/// A crate is considered a kernel crate if it utilizes the `aster_main` macro.
fn get_default_member(metadata: &serde_json::Value) -> &str {
let default_members = metadata