2024-02-17 14:54:03 +01:00
|
|
|
// This file is part of the uutils procps package.
|
2024-01-26 20:18:43 +01:00
|
|
|
//
|
|
|
|
|
// For the full copyright and license information, please view the LICENSE
|
|
|
|
|
// file that was distributed with this source code.
|
2025-04-11 23:46:36 +02:00
|
|
|
use std::env;
|
|
|
|
|
|
|
|
|
|
pub const TESTS_BINARY: &str = env!("CARGO_BIN_EXE_procps");
|
|
|
|
|
|
|
|
|
|
// Use the ctor attribute to run this function before any tests
|
2026-05-03 14:25:40 +02:00
|
|
|
#[ctor::ctor(unsafe)]
|
2025-04-11 23:46:36 +02:00
|
|
|
fn init() {
|
|
|
|
|
unsafe {
|
|
|
|
|
// Necessary for uutests to be able to find the binary
|
|
|
|
|
std::env::set_var("UUTESTS_BINARY_PATH", TESTS_BINARY);
|
|
|
|
|
}
|
|
|
|
|
}
|
2024-01-26 20:18:43 +01:00
|
|
|
|
|
|
|
|
#[cfg(feature = "pwdx")]
|
|
|
|
|
#[path = "by-util/test_pwdx.rs"]
|
|
|
|
|
mod test_pwdx;
|
2024-01-26 22:35:52 +01:00
|
|
|
|
|
|
|
|
#[cfg(feature = "free")]
|
|
|
|
|
#[path = "by-util/test_free.rs"]
|
|
|
|
|
mod test_free;
|
2024-01-31 23:07:13 +01:00
|
|
|
|
2026-03-12 19:43:00 +08:00
|
|
|
#[cfg(feature = "hugetop")]
|
|
|
|
|
#[path = "by-util/test_hugetop.rs"]
|
|
|
|
|
mod test_hugetop;
|
|
|
|
|
|
2024-01-31 23:07:13 +01:00
|
|
|
#[cfg(feature = "w")]
|
|
|
|
|
#[path = "by-util/test_w.rs"]
|
|
|
|
|
mod test_w;
|
2024-01-31 23:22:46 +01:00
|
|
|
|
|
|
|
|
#[cfg(feature = "watch")]
|
|
|
|
|
#[path = "by-util/test_watch.rs"]
|
|
|
|
|
mod test_watch;
|
2024-02-06 08:52:05 +01:00
|
|
|
|
|
|
|
|
#[cfg(feature = "pmap")]
|
|
|
|
|
#[path = "by-util/test_pmap.rs"]
|
|
|
|
|
mod test_pmap;
|
2024-04-16 17:58:12 +08:00
|
|
|
|
|
|
|
|
#[cfg(feature = "slabtop")]
|
|
|
|
|
#[path = "by-util/test_slabtop.rs"]
|
|
|
|
|
mod test_slabtop;
|
2024-05-29 18:37:19 +08:00
|
|
|
|
|
|
|
|
#[cfg(feature = "pgrep")]
|
|
|
|
|
#[path = "by-util/test_pgrep.rs"]
|
|
|
|
|
mod test_pgrep;
|
2024-07-08 16:35:44 +08:00
|
|
|
|
|
|
|
|
#[cfg(feature = "pidof")]
|
|
|
|
|
#[path = "by-util/test_pidof.rs"]
|
|
|
|
|
mod test_pidof;
|
2024-08-07 16:04:00 +08:00
|
|
|
|
|
|
|
|
#[cfg(feature = "ps")]
|
|
|
|
|
#[path = "by-util/test_ps.rs"]
|
|
|
|
|
mod test_ps;
|
2024-08-07 23:40:39 +08:00
|
|
|
|
|
|
|
|
#[cfg(feature = "pidwait")]
|
|
|
|
|
#[path = "by-util/test_pidwait.rs"]
|
|
|
|
|
mod test_pidwait;
|
2024-08-22 17:48:16 +08:00
|
|
|
|
|
|
|
|
#[cfg(feature = "top")]
|
|
|
|
|
#[path = "by-util/test_top.rs"]
|
|
|
|
|
mod test_top;
|
2024-08-27 01:27:13 +08:00
|
|
|
|
2025-03-27 12:55:02 +00:00
|
|
|
#[cfg(feature = "vmstat")]
|
|
|
|
|
#[path = "by-util/test_vmstat.rs"]
|
|
|
|
|
mod test_vmstat;
|
|
|
|
|
|
2025-07-14 11:51:50 +08:00
|
|
|
#[cfg(feature = "skill")]
|
|
|
|
|
#[path = "by-util/test_skill.rs"]
|
|
|
|
|
mod test_skill;
|
|
|
|
|
|
2024-08-27 01:27:13 +08:00
|
|
|
#[cfg(feature = "snice")]
|
|
|
|
|
#[path = "by-util/test_snice.rs"]
|
|
|
|
|
mod test_snice;
|
2025-01-15 22:51:53 +08:00
|
|
|
|
|
|
|
|
#[cfg(feature = "pkill")]
|
|
|
|
|
#[path = "by-util/test_pkill.rs"]
|
|
|
|
|
mod test_pkill;
|
2025-01-17 18:52:05 +02:00
|
|
|
|
|
|
|
|
#[cfg(feature = "sysctl")]
|
|
|
|
|
#[path = "by-util/test_sysctl.rs"]
|
|
|
|
|
mod test_sysctl;
|
2025-03-25 23:58:35 +08:00
|
|
|
|
|
|
|
|
#[cfg(feature = "tload")]
|
|
|
|
|
#[path = "by-util/test_tload.rs"]
|
|
|
|
|
mod test_tload;
|