Reduce the number of iterations on emulated aarch64 Linux
CI for aarch64 Linux is significantly slower than the others. Adjust how iteration selection is done to better handle this case, which also simplifies things. Also set the `EMULATED` environment variable in Docker to be more accurate, and reindents run-docker.sh.
This commit is contained in:
committed by
Trevor Gross
parent
bf757e3a7b
commit
ebb2dc11d8
@@ -13,31 +13,21 @@ const SEED: [u8; 32] = *b"3.141592653589793238462643383279";
|
||||
|
||||
/// Number of tests to run.
|
||||
const NTESTS: usize = {
|
||||
let ntests = if cfg!(optimizations_enabled) {
|
||||
if cfg!(target_arch = "x86_64") || cfg!(target_arch = "aarch64") {
|
||||
5_000_000
|
||||
} else if !cfg!(target_pointer_width = "64")
|
||||
if cfg!(optimizations_enabled) {
|
||||
if crate::emulated()
|
||||
|| !cfg!(target_pointer_width = "64")
|
||||
|| cfg!(all(target_arch = "x86_64", target_vendor = "apple"))
|
||||
|| option_env!("EMULATED").is_some()
|
||||
&& cfg!(any(target_arch = "aarch64", target_arch = "powerpc64"))
|
||||
{
|
||||
// Tests are pretty slow on:
|
||||
// - Non-64-bit targets
|
||||
// - Emulated ppc
|
||||
// - Emulated aarch64
|
||||
// - x86 MacOS
|
||||
// So reduce the number of iterations
|
||||
// Tests are pretty slow on non-64-bit targets, x86 MacOS, and targets that run
|
||||
// in QEMU.
|
||||
100_000
|
||||
} else {
|
||||
// Most everything else gets tested in docker and works okay, but we still
|
||||
// don't need 20 minutes of tests.
|
||||
1_000_000
|
||||
5_000_000
|
||||
}
|
||||
} else {
|
||||
// Without optimizations just run a quick check
|
||||
800
|
||||
};
|
||||
|
||||
ntests
|
||||
}
|
||||
};
|
||||
|
||||
/// Tested inputs.
|
||||
|
||||
Reference in New Issue
Block a user