/// Returns a QEMU runner target given an architecture.
fnget_qemu_target(arch: &str)-> &str{
matcharch{
"armv7"=>"arm",
"i686"=>"i386",
"powerpc"=>"ppc",
"powerpc64le"=>"ppc64le",
_=>arch,
}
}
/// This is required since running binary tests via cross can cause be tricky! We need to basically "magically" grab
/// the correct runner in some cases, which can be done by inspecting env variables that should only show up while
/// using cross.
///
/// Originally inspired by [ripgrep's test files](https://cs.github.com/BurntSushi/ripgrep/blob/9f0e88bcb14e02da1b88872435b17d74786640b5/tests/util.rs#L470),
/// but adapted to work more generally with the architectures supported by bottom after looking through cross'