Files
tar/tests/tests.rs
T
Sylvestre Ledru 5f5f94f6a5 fix various items
2025-09-24 20:53:22 +02:00

21 lines
564 B
Rust

// This file is part of the uutils tar 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_tarapp");
// 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 = "tar")]
#[path = "by-util/test_tar.rs"]
mod test_tar;