Files
uutil-linux/tests/tests.rs
Tuomas Tynkkynen f9340c3bdc cal: Add tool
This supports most of the important flags and gives bit-exact output
except for spacing in the header line.
2025-09-25 00:03:45 +03:00

89 lines
1.9 KiB
Rust

// This file is part of the uutils util-linux package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
use std::env;
pub const TESTS_BINARY: &str = env!("CARGO_BIN_EXE_util-linux");
// Use the ctor attribute to run this function before any tests
#[ctor::ctor]
fn init() {
unsafe {
// Necessary for uutests to be able to find the binary
std::env::set_var("UUTESTS_BINARY_PATH", TESTS_BINARY);
}
}
#[cfg(feature = "lscpu")]
#[path = "by-util/test_lscpu.rs"]
mod test_lscpu;
#[cfg(feature = "lsmem")]
#[path = "by-util/test_lsmem.rs"]
mod test_lsmem;
#[cfg(feature = "lslocks")]
#[path = "by-util/test_lslocks.rs"]
mod test_lslocks;
#[cfg(feature = "mesg")]
#[path = "by-util/test_mesg.rs"]
mod test_mesg;
#[cfg(feature = "mountpoint")]
#[path = "by-util/test_mountpoint.rs"]
mod test_mountpoint;
#[cfg(feature = "nologin")]
#[path = "by-util/test_nologin.rs"]
mod test_nologin;
#[cfg(feature = "blockdev")]
#[path = "by-util/test_blockdev.rs"]
mod test_blockdev;
#[cfg(feature = "cal")]
#[path = "by-util/test_cal.rs"]
mod test_cal;
#[cfg(feature = "ctrlaltdel")]
#[path = "by-util/test_ctrlaltdel.rs"]
mod test_ctrlaltdel;
#[cfg(feature = "renice")]
#[path = "by-util/test_renice.rs"]
mod test_renice;
#[cfg(feature = "rev")]
#[path = "by-util/test_rev.rs"]
mod test_rev;
#[cfg(feature = "setpgid")]
#[path = "by-util/test_setpgid.rs"]
mod test_setpgid;
#[cfg(feature = "setsid")]
#[path = "by-util/test_setsid.rs"]
mod test_setsid;
#[cfg(feature = "last")]
#[path = "by-util/test_last.rs"]
mod test_last;
#[cfg(feature = "dmesg")]
#[path = "by-util/test_dmesg.rs"]
mod test_dmesg;
#[cfg(feature = "fsfreeze")]
#[path = "by-util/test_fsfreeze.rs"]
mod test_fsfreeze;
#[cfg(feature = "mcookie")]
#[path = "by-util/test_mcookie.rs"]
mod test_mcookie;
#[cfg(feature = "uuidgen")]
#[path = "by-util/test_uuidgen.rs"]
mod test_uuidgen;