/DADK/dadk-user/src/scheduler/ |
H A D | tests.rs | 19 fn should_not_run_task_only_riscv64_on_x86_64(ctx: &DadkExecuteContextTestBuildX86_64V1) { in should_not_run_task_only_riscv64_on_x86_64() 20 let config_file = ctx in should_not_run_task_only_riscv64_on_x86_64() 24 let task = Parser::new(ctx.base_context().config_v2_dir()).parse_config_file(&config_file); in should_not_run_task_only_riscv64_on_x86_64() 39 ctx.execute_context().self_ref().unwrap(), in should_not_run_task_only_riscv64_on_x86_64() 40 ctx.base_context().fake_dragonos_sysroot(), in should_not_run_task_only_riscv64_on_x86_64() 41 *ctx.execute_context().action(), in should_not_run_task_only_riscv64_on_x86_64() 60 fn should_not_run_task_only_x86_64_on_riscv64(ctx: &DadkExecuteContextTestBuildRiscV64V1) { in should_not_run_task_only_x86_64_on_riscv64() 61 let config_file = ctx in should_not_run_task_only_x86_64_on_riscv64() 65 let task = Parser::new(ctx.base_context().config_v2_dir()).parse_config_file(&config_file); in should_not_run_task_only_x86_64_on_riscv64() 80 ctx in should_not_run_task_only_x86_64_on_riscv64() [all...] |
H A D | tests.rs | 19 fn should_not_run_task_only_riscv64_on_x86_64(ctx: &DadkExecuteContextTestBuildX86_64V1) { in should_not_run_task_only_riscv64_on_x86_64() 20 let config_file = ctx in should_not_run_task_only_riscv64_on_x86_64() 24 let task = Parser::new(ctx.base_context().config_v2_dir()).parse_config_file(&config_file); in should_not_run_task_only_riscv64_on_x86_64() 39 ctx.execute_context().self_ref().unwrap(), in should_not_run_task_only_riscv64_on_x86_64() 40 ctx.base_context().fake_dragonos_sysroot(), in should_not_run_task_only_riscv64_on_x86_64() 41 *ctx.execute_context().action(), in should_not_run_task_only_riscv64_on_x86_64() 60 fn should_not_run_task_only_x86_64_on_riscv64(ctx: &DadkExecuteContextTestBuildRiscV64V1) { in should_not_run_task_only_x86_64_on_riscv64() 61 let config_file = ctx in should_not_run_task_only_x86_64_on_riscv64() 65 let task = Parser::new(ctx.base_context().config_v2_dir()).parse_config_file(&config_file); in should_not_run_task_only_x86_64_on_riscv64() 80 ctx in should_not_run_task_only_x86_64_on_riscv64() [all...] |
H A D | tests.rs | 19 fn should_not_run_task_only_riscv64_on_x86_64(ctx: &DadkExecuteContextTestBuildX86_64V1) { in should_not_run_task_only_riscv64_on_x86_64() 20 let config_file = ctx in should_not_run_task_only_riscv64_on_x86_64() 24 let task = Parser::new(ctx.base_context().config_v2_dir()).parse_config_file(&config_file); in should_not_run_task_only_riscv64_on_x86_64() 39 ctx.execute_context().self_ref().unwrap(), in should_not_run_task_only_riscv64_on_x86_64() 40 ctx.base_context().fake_dragonos_sysroot(), in should_not_run_task_only_riscv64_on_x86_64() 41 *ctx.execute_context().action(), in should_not_run_task_only_riscv64_on_x86_64() 60 fn should_not_run_task_only_x86_64_on_riscv64(ctx: &DadkExecuteContextTestBuildRiscV64V1) { in should_not_run_task_only_x86_64_on_riscv64() 61 let config_file = ctx in should_not_run_task_only_x86_64_on_riscv64() 65 let task = Parser::new(ctx.base_context().config_v2_dir()).parse_config_file(&config_file); in should_not_run_task_only_x86_64_on_riscv64() 80 ctx in should_not_run_task_only_x86_64_on_riscv64() [all...] |
H A D | tests.rs | 19 fn should_not_run_task_only_riscv64_on_x86_64(ctx: &DadkExecuteContextTestBuildX86_64V1) { in should_not_run_task_only_riscv64_on_x86_64() 20 let config_file = ctx in should_not_run_task_only_riscv64_on_x86_64() 24 let task = Parser::new(ctx.base_context().config_v2_dir()).parse_config_file(&config_file); in should_not_run_task_only_riscv64_on_x86_64() 39 ctx.execute_context().self_ref().unwrap(), in should_not_run_task_only_riscv64_on_x86_64() 40 ctx.base_context().fake_dragonos_sysroot(), in should_not_run_task_only_riscv64_on_x86_64() 41 *ctx.execute_context().action(), in should_not_run_task_only_riscv64_on_x86_64() 60 fn should_not_run_task_only_x86_64_on_riscv64(ctx: &DadkExecuteContextTestBuildRiscV64V1) { in should_not_run_task_only_x86_64_on_riscv64() 61 let config_file = ctx in should_not_run_task_only_x86_64_on_riscv64() 65 let task = Parser::new(ctx.base_context().config_v2_dir()).parse_config_file(&config_file); in should_not_run_task_only_x86_64_on_riscv64() 80 ctx in should_not_run_task_only_x86_64_on_riscv64() [all...] |
H A D | tests.rs | 19 fn should_not_run_task_only_riscv64_on_x86_64(ctx: &DadkExecuteContextTestBuildX86_64V1) { in should_not_run_task_only_riscv64_on_x86_64() 20 let config_file = ctx in should_not_run_task_only_riscv64_on_x86_64() 24 let task = Parser::new(ctx.base_context().config_v2_dir()).parse_config_file(&config_file); in should_not_run_task_only_riscv64_on_x86_64() 39 ctx.execute_context().self_ref().unwrap(), in should_not_run_task_only_riscv64_on_x86_64() 40 ctx.base_context().fake_dragonos_sysroot(), in should_not_run_task_only_riscv64_on_x86_64() 41 *ctx.execute_context().action(), in should_not_run_task_only_riscv64_on_x86_64() 60 fn should_not_run_task_only_x86_64_on_riscv64(ctx: &DadkExecuteContextTestBuildRiscV64V1) { in should_not_run_task_only_x86_64_on_riscv64() 61 let config_file = ctx in should_not_run_task_only_x86_64_on_riscv64() 65 let task = Parser::new(ctx.base_context().config_v2_dir()).parse_config_file(&config_file); in should_not_run_task_only_x86_64_on_riscv64() 80 ctx.execute_context().self_ref().unwrap(), in should_not_run_task_only_x86_64_on_riscv64() [all …]
|
/DADK/dadk/src/actions/rootfs/ |
H A D | mod.rs | 8 pub(super) fn run(ctx: &DADKExecContext, rootfs_cmd: &RootFSCommand) -> Result<()> { in run() 10 RootFSCommand::Create(param) => disk_img::create(ctx, param.skip_if_exists), in run() 11 RootFSCommand::Delete => disk_img::delete(ctx, false), in run() 12 RootFSCommand::DeleteSysroot => sysroot::delete(ctx), in run() 13 RootFSCommand::Mount => disk_img::mount(ctx), in run() 14 RootFSCommand::Umount => disk_img::umount(ctx), in run() 15 RootFSCommand::CheckDiskImageExists => disk_img::check_disk_image_exists(ctx), in run() 16 RootFSCommand::ShowMountPoint => disk_img::show_mount_point(ctx), in run() 17 RootFSCommand::ShowLoopDevice => disk_img::show_loop_device(ctx), in run()
|
H A D | disk_img.rs | 8 pub(super) fn create(ctx: &DADKExecContext, skip_if_exists: bool) -> Result<()> { in create() 9 let disk_image_path = ctx.disk_image_path(); in create() 23 let image_size = ctx.disk_image_size(); in create() 28 let r = if ctx.rootfs().partition.image_should_be_partitioned() { in create() 29 create_partitioned_image(ctx, &disk_image_path) in create() 31 create_unpartitioned_image(ctx, &disk_image_path) in create() 40 pub(super) fn delete(ctx: &DADKExecContext, skip_if_not_exists: bool) -> Result<()> { in delete() 41 let disk_image_path = ctx.disk_image_path(); in delete() 58 pub fn mount(ctx: &DADKExecContext) -> Result<()> { in mount() 59 let disk_image_path = ctx.disk_image_path(); in mount() [all …]
|
H A D | sysroot.rs | 5 pub(super) fn delete(ctx: &DADKExecContext) -> Result<()> { in delete() 6 let sysroot_dir = ctx.sysroot_dir()?; in delete() 18 if !sysroot_dir.starts_with(&ctx.workdir()) { in delete()
|
/DADK/dadk-user/src/executor/ |
H A D | tests.rs | 15 fn setup_executor<T: TestContextExt>(config_file: PathBuf, ctx: &T) -> Executor { in setup_executor() 16 let task = Parser::new(ctx.base_context().config_v2_dir()).parse_config_file(&config_file); in setup_executor() 19 ctx.execute_context().self_ref().unwrap(), in setup_executor() 20 ctx.base_context().fake_dragonos_sysroot(), in setup_executor() 21 *ctx.execute_context().action(), in setup_executor() 35 *ctx.execute_context().action(), in setup_executor() 36 ctx.base_context().fake_dragonos_sysroot(), in setup_executor() 48 fn set_local_env(ctx: &DadkExecuteContextTestBuildX86_64V1) { in set_local_env() 49 let config_file_path = ctx in set_local_env() 53 let mut executor = setup_executor(config_file_path, ctx); in set_local_env() [all...] |
H A D | tests.rs | 15 fn setup_executor<T: TestContextExt>(config_file: PathBuf, ctx: &T) -> Executor { in setup_executor() 16 let task = Parser::new(ctx.base_context().config_v2_dir()).parse_config_file(&config_file); in setup_executor() 19 ctx.execute_context().self_ref().unwrap(), in setup_executor() 20 ctx.base_context().fake_dragonos_sysroot(), in setup_executor() 21 *ctx.execute_context().action(), in setup_executor() 35 *ctx.execute_context().action(), in setup_executor() 36 ctx.base_context().fake_dragonos_sysroot(), in setup_executor() 48 fn set_local_env(ctx: &DadkExecuteContextTestBuildX86_64V1) { in set_local_env() 49 let config_file_path = ctx in set_local_env() 53 let mut executor = setup_executor(config_file_path, ctx); in set_local_env() [all...] |
H A D | tests.rs | 15 fn setup_executor<T: TestContextExt>(config_file: PathBuf, ctx: &T) -> Executor { in setup_executor() 16 let task = Parser::new(ctx.base_context().config_v2_dir()).parse_config_file(&config_file); in setup_executor() 19 ctx.execute_context().self_ref().unwrap(), in setup_executor() 20 ctx.base_context().fake_dragonos_sysroot(), in setup_executor() 21 *ctx.execute_context().action(), in setup_executor() 35 *ctx.execute_context().action(), in setup_executor() 36 ctx.base_context().fake_dragonos_sysroot(), in setup_executor() 48 fn set_local_env(ctx: &DadkExecuteContextTestBuildX86_64V1) { in set_local_env() 49 let config_file_path = ctx in set_local_env() 53 let mut executor = setup_executor(config_file_path, ctx); in set_local_env() [all …]
|
/DADK/dadk-user/src/parser/ |
H A D | tests.rs |
|
H A D | tests.rs |
|
/DADK/dadk/src/actions/ |
H A D | user.rs | 6 pub(super) fn run(ctx: &DADKExecContext, cmd: &UserCommand) -> Result<()> { in run() 7 let config_dir = ctx.user_config_dir()?; in run() 8 let cache_root_dir = ctx.cache_root_dir()?; in run() 9 let sysroot_dir = ctx.sysroot_dir()?; in run() 18 .target_arch(ctx.target_arch()) in run()
|
H A D | mod.rs | 6 pub fn run(ctx: DADKExecContext) { in run() 7 match &ctx.command.action { in run() 12 rootfs::run(&ctx, rootfs_command).expect("Run rootfs action error.") in run() 15 user::run(&ctx, user_command).expect("Run user action error.") in run()
|
/DADK/dadk-config/templates/config/actions/ |
H A D | user.rs |
|
H A D | mod.rs |
|
/DADK/dadk-config/tests/ |
H A D | test_rootfs_config.rs | 15 fn test_load_rootfs_manifest_template(ctx: &DadkConfigTestContext) { in test_load_rootfs_manifest_template() 16 let rootfs_manifest_path = ctx.templates_dir().join(ROOTFS_CONFIG_FILE_NAME); in test_load_rootfs_manifest_template()
|
H A D | test_rootfs_config.rs | 15 fn test_load_rootfs_manifest_template(ctx: &DadkConfigTestContext) { in test_load_rootfs_manifest_template() 16 let rootfs_manifest_path = ctx.templates_dir().join(ROOTFS_CONFIG_FILE_NAME); in test_load_rootfs_manifest_template()
|
H A D | test_boot_config.rs | 12 fn test_load_boot_config_template(ctx: &DadkConfigTestContext) { in test_load_boot_config_template() 13 let boot_config_path = ctx.templates_dir().join(BOOT_CONFIG_FILE_NAME); in test_load_boot_config_template()
|
H A D | test_dadk_manifest.rs | 12 fn test_load_dadk_manifest_template(ctx: &DadkConfigTestContext) { in test_load_dadk_manifest_template() 13 let manifest_path = ctx.templates_dir().join(DADK_MANIFEST_FILE_NAME); in test_load_dadk_manifest_template()
|
H A D | test_dadk_manifest.rs | 12 fn test_load_dadk_manifest_template(ctx: &DadkConfigTestContext) { in test_load_dadk_manifest_template() 13 let manifest_path = ctx.templates_dir().join(DADK_MANIFEST_FILE_NAME); in test_load_dadk_manifest_template()
|
H A D | test_dadk_manifest.rs | 12 fn test_load_dadk_manifest_template(ctx: &DadkConfigTestContext) { 13 let manifest_path = ctx.templates_dir().join(DADK_MANIFEST_FILE_NAME); in test_load_dadk_manifest_template()
|
H A D | test_rootfs_config.rs | 15 fn test_load_rootfs_manifest_template(ctx: &DadkConfigTestContext) { in test_load_rootfs_manifest_template() 16 let rootfs_manifest_path = ctx.templates_dir().join(ROOTFS_CONFIG_FILE_NAME); in test_load_rootfs_manifest_template()
|
/DADK/dadk-user/tests/ |
H A D | test_parse_dadk_user_config.rs |
|