mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 23:04:49 +00:00
WIP more cli_run tests passing
This commit is contained in:
parent
29289694b5
commit
6276cc7b58
2 changed files with 189 additions and 291 deletions
|
@ -452,20 +452,6 @@ pub fn extract_valgrind_errors(xml: &str) -> Result<Vec<ValgrindError>, serde_xm
|
|||
Ok(answer)
|
||||
}
|
||||
|
||||
// start the dir with crates/cli/tests
|
||||
#[allow(dead_code)]
|
||||
pub fn cli_testing_dir(dir_name: &str) -> PathBuf {
|
||||
let mut path = root_dir();
|
||||
|
||||
// Descend into examples/{dir_name}
|
||||
path.push("crates");
|
||||
path.push("cli");
|
||||
path.push("tests");
|
||||
path.extend(dir_name.split('/')); // Make slashes cross-target
|
||||
|
||||
path
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
pub fn dir_path_from_root(dir_name: &str) -> PathBuf {
|
||||
let mut path = root_dir();
|
||||
|
@ -475,7 +461,6 @@ pub fn dir_path_from_root(dir_name: &str) -> PathBuf {
|
|||
path
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
pub fn file_path_from_root(dir_name: &str, file_name: &str) -> PathBuf {
|
||||
let mut path = dir_path_from_root(dir_name);
|
||||
|
||||
|
@ -484,29 +469,6 @@ pub fn file_path_from_root(dir_name: &str, file_name: &str) -> PathBuf {
|
|||
path
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
pub fn fixtures_dir(dir_name: &str) -> PathBuf {
|
||||
let mut path = root_dir();
|
||||
|
||||
// Descend into crates/cli/tests/fixtures/{dir_name}
|
||||
path.push("crates");
|
||||
path.push("cli");
|
||||
path.push("tests");
|
||||
path.push("fixtures");
|
||||
path.extend(dir_name.split('/')); // Make slashes cross-target
|
||||
|
||||
path
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
pub fn fixture_file(dir_name: &str, file_name: &str) -> PathBuf {
|
||||
let mut path = fixtures_dir(dir_name);
|
||||
|
||||
path.push(file_name);
|
||||
|
||||
path
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
pub fn known_bad_file(file_name: &str) -> PathBuf {
|
||||
let mut path = root_dir();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue