Home
last modified time | relevance | path

Searched refs:env (Results 1 – 25 of 27) sorted by relevance

12

/DADK/crates/test_base/src/
H A Ddadk_config.rs34 let mut test_base_path = PathBuf::from(env!("CARGO_MANIFEST_DIR")); in setup()
43 std::env::set_current_dir(&test_base_path).expect("Failed to setup test base path"); in setup()
54 use std::env;
59 let expected_path = PathBuf::from(env!("CARGO_MANIFEST_DIR")) in test_test_base_path()
H A Dglobal.rs44 std::env::set_var( in ensure_fake_dadk_cache_root_exist()
69 let mut project_base_path = PathBuf::from(env!("CARGO_MANIFEST_DIR")); in setup()
73 std::env::set_current_dir(&project_base_path).expect("Failed to setup project_base_path"); in setup()
84 use std::env;
89 let binding = PathBuf::from(env!("CARGO_MANIFEST_DIR")); in test_project_base_path()
130 env::var("DADK_CACHE_ROOT").unwrap(), in test_setup()
/DADK/.github/workflows/
H A Ddocs.yml24 env:
28 …key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('docs/package.json') }}-${{ hashFi…
54 env:
58 key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('package.json') }}
71 env:
H A Drust.yml9 env:
34 env:
/DADK/dadk-user/src/executor/
H A Dcache.rs30 let env = std::env::var("DADK_CACHE_ROOT"); in cache_root_init() localVariable
31 if env.is_ok() { in cache_root_init()
32 cache_root = env.unwrap(); in cache_root_init()
36 let cwd = std::env::current_dir().map_err(|e| ExecutorError::IoError(e.to_string()))?; in cache_root_init()
87 std::env::set_var("DADK_CACHE_ROOT", CACHE_ROOT.get().to_str().unwrap()); in cache_root_init()
H A Dcache.rs30 let env = std::env::var("DADK_CACHE_ROOT"); in cache_root_init() localVariable
31 if env.is_ok() { in cache_root_init()
32 cache_root = env.unwrap(); in cache_root_init()
36 let cwd = std::env::current_dir().map_err(|e| ExecutorError::IoError(e.to_string()))?; in cache_root_init()
87 std::env::set_var("DADK_CACHE_ROOT", CACHE_ROOT.get().to_str().unwrap()); in cache_root_init()
H A Dmod.rs3 env::Vars,
465 // debug!("DADK env found: {}={}", key, value.value); in prepare_input()
467 command.env(key, value.value.clone()); in prepare_input()
471 debug!("Local env found: {}={}", key, value.value); in prepare_input()
472 command.env(key, value.value.clone()); in prepare_input()
613 pub fn add(&mut self, env: EnvVar) {
614 self.envs.insert(env.key.clone(), env);
676 let envs: Vars = std::env::vars();
H A Dmod.rs3 env::Vars,
465 // debug!("DADK env found: {}={}", key, value.value); in prepare_input()
467 command.env(key, value.value.clone()); in prepare_input()
471 debug!("Local env found: {}={}", key, value.value); in prepare_input()
472 command.env(key, value.value.clone()); in prepare_input()
613 pub fn add(&mut self, env: EnvVar) {
614 self.envs.insert(env.key.clone(), env); in prepare_env()
676 let envs: Vars = std::env::vars();
H A Dmod.rs3 env::Vars,
465 // debug!("DADK env found: {}={}", key, value.value); in prepare_input()
467 command.env(key, value.value.clone());
471 debug!("Local env found: {}={}", key, value.value); in run_command()
472 command.env(key, value.value.clone()); in run_command()
613 pub fn add(&mut self, env: EnvVar) { in create_global_env_list()
614 self.envs.insert(env.key.clone(), env); in create_global_env_list()
676 let envs: Vars = std::env::vars();
H A Dmod.rs3 env::Vars,
465 // debug!("DADK env found: {}={}", key, value.value); in prepare_input()
467 command.env(key, value.value.clone()); in prepare_input()
471 debug!("Local env found: {}={}", key, value.value); in prepare_input()
472 command.env(key, value.value.clone()); in prepare_input()
613 pub fn add(&mut self, env: EnvVar) {
614 self.envs.insert(env.key.clone(), env); in create_global_env_list()
676 let envs: Vars = std::env::vars(); in last_modified_time()
H A Dmod.rs3 env::Vars,
465 // debug!("DADK env found: {}={}", key, value.value); in prepare_input()
467 command.env(key, value.value.clone()); in prepare_input()
471 debug!("Local env found: {}={}", key, value.value); in prepare_input()
472 command.env(key, value.value.clone()); in prepare_input()
613 pub fn add(&mut self, env: EnvVar) {
614 self.envs.insert(env.key.clone(), env);
676 let envs: Vars = std::env::vars(); in last_modified_time()
H A Dmod.rs3 env::Vars,
465 // debug!("DADK env found: {}={}", key, value.value); in prepare_input()
467 command.env(key, value.value.clone()); in prepare_input()
471 debug!("Local env found: {}={}", key, value.value); in prepare_input()
472 command.env(key, value.value.clone()); in prepare_input()
613 pub fn add(&mut self, env: EnvVar) { in prepare_env()
614 self.envs.insert(env.key.clone(), env); in prepare_env()
676 let envs: Vars = std::env::vars(); in last_modified_time()
H A Dmod.rs3 env::Vars,
467 command.env(key, value.value.clone()); in create_command()
472 command.env(key, value.value.clone()); in create_command()
613 pub fn add(&mut self, env: EnvVar) { in add()
614 self.envs.insert(env.key.clone(), env); in add()
676 let envs: Vars = std::env::vars(); in create_global_env_list()
/DADK/dadk-user/src/utils/
H A Dpath.rs8 std::env::current_dir().unwrap().join(path) in abs_path()
/DADK/tests/data/dadk_config_v1/
H A Dapp_normal_with_env_0_1_0.dadk4 "description": "A normal app with env",
H A Dapp_normal_with_env_fail_0_1_0.dadk4 "description": "A normal app with env which should failed",
/DADK/docs/.vuepress/
H A Dconfig.js9 base: process.env.NODE_ENV === 'production' ? '/p/dadk/' : '/',
/DADK/dadk/src/
H A Dutils.rs22 let origin = std::env::current_dir().unwrap().join(path); in abs_path()
/DADK/dadk-user/src/parser/
H A Dtask.rs97 let s = std::env::var("ARCH").unwrap_or("x86_64".to_string()); in default_target_arch()
151 for env in envs { in validate_envs()
152 env.validate()?; in validate_envs()
167 for env in envs { in trim_envs()
168 env.trim(); in trim_envs()
H A Dtask.rs97 let s = std::env::var("ARCH").unwrap_or("x86_64".to_string());
151 for env in envs { in validate_envs()
152 env.validate()?; in validate_envs()
167 for env in envs { in trim_envs()
168 env.trim();
H A Dtask.rs97 let s = std::env::var("ARCH").unwrap_or("x86_64".to_string());
151 for env in envs { in trim_depends()
152 env.validate()?; in trim_depends()
167 for env in envs { in validate_target_arch()
168 env.trim(); in validate_target_arch()
H A Dtask.rs97 let s = std::env::var("ARCH").unwrap_or("x86_64".to_string()); in default_target_arch()
151 for env in envs { in trim_depends()
152 env.validate()?;
167 for env in envs { in validate_target_arch()
168 env.trim();
/DADK/tests/data/dadk_config_v2/
H A Dapp_normal_with_env_0_2_0.toml3 description = "A normal app with env"
H A Dapp_normal_with_env_fail_0_2_0.toml3 description = "A normal app with env which should failed"
/DADK/dadk-user/src/console/
H A Dnew_config.rs

12