1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 03:27:44 +00:00

uutests: adjust the tests to use them

This commit is contained in:
Sylvestre Ledru 2025-03-28 09:51:51 +01:00
parent ccfcda531e
commit a0179ea239
102 changed files with 1018 additions and 157 deletions

View file

@ -10,7 +10,9 @@
clippy::cast_sign_loss
)]
use crate::common::util::TestScenario;
use uutests::new_ucmd;
use uutests::util::TestScenario;
use uutests::util_name;
use std::time::{Duration, SystemTime};
@ -44,11 +46,11 @@ fn test_repeated_exponents() {
#[cfg(feature = "sort")]
#[cfg(not(target_os = "android"))]
fn test_parallel() {
use crate::common::util::AtPath;
use hex_literal::hex;
use sha1::{Digest, Sha1};
use std::{fs::OpenOptions, time::Duration};
use tempfile::TempDir;
use uutests::util::AtPath;
// factor should only flush the buffer at line breaks
let n_integers = 100_000;
let mut input_string = String::new();