Home
last modified time | relevance | path

Searched refs:ctx (Results 1 – 25 of 30) sorted by relevance

12

/DADK/dadk-user/src/scheduler/
H A Dtests.rs19 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 Dtests.rs19 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 Dtests.rs19 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 Dtests.rs19 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 Dtests.rs19 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 Dmod.rs8 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 Ddisk_img.rs8 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 Dsysroot.rs5 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 Dtests.rs15 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 Dtests.rs15 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 Dtests.rs15 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 Dtests.rs
H A Dtests.rs
/DADK/dadk/src/actions/
H A Duser.rs6 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 Dmod.rs6 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 Duser.rs
H A Dmod.rs
/DADK/dadk-config/tests/
H A Dtest_rootfs_config.rs15 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 Dtest_rootfs_config.rs15 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 Dtest_boot_config.rs12 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 Dtest_dadk_manifest.rs12 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 Dtest_dadk_manifest.rs12 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 Dtest_dadk_manifest.rs12 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 Dtest_rootfs_config.rs15 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 Dtest_parse_dadk_user_config.rs

12