Removed aarch64-be specific execution command for rust test files
This commit is contained in:
parent
add7b2e402
commit
445137ad13
1 changed files with 8 additions and 23 deletions
|
|
@ -2,8 +2,6 @@ use super::types::FailureReason;
|
|||
use rayon::prelude::*;
|
||||
use std::process::Command;
|
||||
|
||||
static SPECIAL_TARGETS: [&str; 1] = ["aarch64_be-unknown-linux-gnu"];
|
||||
|
||||
pub fn compare_outputs(
|
||||
intrinsic_name_list: &Vec<String>,
|
||||
toolchain: &str,
|
||||
|
|
@ -18,27 +16,14 @@ pub fn compare_outputs(
|
|||
.arg(format!("{runner} ./c_programs/{intrinsic_name}"))
|
||||
.output();
|
||||
|
||||
let rust = if SPECIAL_TARGETS
|
||||
.into_iter()
|
||||
.find(|&special_target| special_target == target)
|
||||
.is_some()
|
||||
{
|
||||
Command::new("sh")
|
||||
.arg("-c")
|
||||
.arg(format!(
|
||||
"{runner} ./rust_programs/target/{target}/release/{intrinsic_name}",
|
||||
))
|
||||
.output()
|
||||
} else {
|
||||
Command::new("sh")
|
||||
.current_dir("rust_programs")
|
||||
.arg("-c")
|
||||
.arg(format!(
|
||||
"cargo {toolchain} run --target {target} --bin {intrinsic_name} --release",
|
||||
))
|
||||
.env("RUSTFLAGS", "-Cdebuginfo=0")
|
||||
.output()
|
||||
};
|
||||
let rust = Command::new("sh")
|
||||
.current_dir("rust_programs")
|
||||
.arg("-c")
|
||||
.arg(format!(
|
||||
"cargo {toolchain} run --target {target} --bin {intrinsic_name} --release",
|
||||
))
|
||||
.env("RUSTFLAGS", "-Cdebuginfo=0")
|
||||
.output();
|
||||
|
||||
let (c, rust) = match (c, rust) {
|
||||
(Ok(c), Ok(rust)) => (c, rust),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue