Files

21 lines
572 B
Rust
Raw Permalink Normal View History

2025-09-24 20:47:21 +02:00
// This file is part of the uutils tar package.
2025-02-01 18:07:27 +01:00
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
2025-04-04 09:37:44 +02:00
use std::env;
2025-09-24 20:47:21 +02:00
pub const TESTS_BINARY: &str = env!("CARGO_BIN_EXE_tarapp");
2025-04-04 09:37:44 +02:00
// Use the ctor attribute to run this function before any tests
2026-05-03 13:34:19 +02:00
#[ctor::ctor(unsafe)]
2025-04-04 09:37:44 +02:00
fn init() {
unsafe {
// Necessary for uutests to be able to find the binary
std::env::set_var("UUTESTS_BINARY_PATH", TESTS_BINARY);
}
}
2025-02-01 18:07:27 +01:00
2025-09-24 20:47:21 +02:00
#[cfg(feature = "tar")]
#[path = "by-util/test_tar.rs"]
mod test_tar;