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:
parent
ccfcda531e
commit
a0179ea239
102 changed files with 1018 additions and 157 deletions
|
@ -10,9 +10,6 @@
|
|||
clippy::cast_possible_truncation
|
||||
)]
|
||||
|
||||
use crate::common::util::TestScenario;
|
||||
#[cfg(any(unix, feature = "feat_selinux"))]
|
||||
use crate::common::util::expected_result;
|
||||
#[cfg(all(unix, feature = "chmod"))]
|
||||
use nix::unistd::{close, dup};
|
||||
use regex::Regex;
|
||||
|
@ -29,6 +26,13 @@ use std::path::Path;
|
|||
use std::path::PathBuf;
|
||||
use std::thread::sleep;
|
||||
use std::time::Duration;
|
||||
use uutests::new_ucmd;
|
||||
#[cfg(unix)]
|
||||
use uutests::unwrap_or_return;
|
||||
use uutests::util::TestScenario;
|
||||
#[cfg(any(unix, feature = "feat_selinux"))]
|
||||
use uutests::util::expected_result;
|
||||
use uutests::{at_and_ucmd, util_name};
|
||||
|
||||
const LONG_ARGS: &[&str] = &[
|
||||
"-l",
|
||||
|
@ -2232,6 +2236,7 @@ fn test_ls_recursive_1() {
|
|||
#[cfg(unix)]
|
||||
mod quoting {
|
||||
use super::TestScenario;
|
||||
use uutests::util_name;
|
||||
|
||||
/// Create a directory with "dirname", then for each check, assert that the
|
||||
/// output is correct.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue