Files

28 lines
678 B
Rust
Raw Permalink Normal View History

2026-05-07 15:03:33 +02:00
// This file is part of the uutils awk package.
//
// For the full copyright and license information, please view the LICENSE
// files that was distributed with this source code.
2026-04-30 19:20:34 +02:00
use std::env;
2026-04-29 21:59:04 +02:00
use uutests::util::TestScenario;
2026-04-30 19:20:34 +02:00
pub const TESTS_BINARY: &str = env!("CARGO_BIN_EXE_awk");
2026-05-08 07:35:58 +02:00
#[ctor::ctor(unsafe)]
2026-04-30 19:20:34 +02:00
fn init() {
unsafe {
env::set_var("UUTESTS_BINARY_PATH", TESTS_BINARY);
env::remove_var("UUTESTS_UTIL_NAME");
env::set_var("UUTESTS_UTIL_NAME", "");
env::set_var("UUTILS_MULTICALL", "0");
}
}
fn ucmd() -> uutests::util::UCommand {
TestScenario::new("awk").cmd(TESTS_BINARY)
}
2026-04-30 19:20:34 +02:00
#[path = "by-util/test_awk.rs"]
mod test_awk;