1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 11:37:44 +00:00

Merge pull request #7607 from sylvestre/uutest-doc

uutests: add a doc
This commit is contained in:
Daniel Hofstetter 2025-03-29 13:31:13 +01:00 committed by GitHub
commit ba76b2b791
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View file

@ -36,6 +36,8 @@ parts for getting started:
- [`src/bin/coreutils.rs`](https://github.com/uutils/coreutils/tree/main/src/bin/coreutils.rs): Code for the multicall
binary.
- [`docs`](https://github.com/uutils/coreutils/tree/main/docs/src): the documentation for the website
- [`tests/uutests/`](https://github.com/uutils/coreutils/tree/main/tests/uutests/):
Crate implementing the various functions to test uutils commands.
Each utility is defined as a separate crate. The structure of each of these
crates is as follows:

View file

@ -3,7 +3,6 @@
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
// Then override the macro with your constant
use std::env;
pub const TESTS_BINARY: &str = env!("CARGO_BIN_EXE_coreutils");
@ -12,6 +11,7 @@ pub const TESTS_BINARY: &str = env!("CARGO_BIN_EXE_coreutils");
#[ctor::ctor]
fn init() {
unsafe {
// Necessary for uutests to be able to find the binary
std::env::set_var("UUTESTS_BINARY_PATH", TESTS_BINARY);
}
}