Skip to content

Commit ba76b2b

Browse files
authored
Merge pull request #7607 from sylvestre/uutest-doc
uutests: add a doc
2 parents f5241e9 + 8be432e commit ba76b2b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CONTRIBUTING.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ parts for getting started:
3636
- [`src/bin/coreutils.rs`](https://github.com/uutils/coreutils/tree/main/src/bin/coreutils.rs): Code for the multicall
3737
binary.
3838
- [`docs`](https://github.com/uutils/coreutils/tree/main/docs/src): the documentation for the website
39+
- [`tests/uutests/`](https://github.com/uutils/coreutils/tree/main/tests/uutests/):
40+
Crate implementing the various functions to test uutils commands.
3941

4042
Each utility is defined as a separate crate. The structure of each of these
4143
crates is as follows:

tests/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// For the full copyright and license information, please view the LICENSE
44
// file that was distributed with this source code.
55

6-
// Then override the macro with your constant
76
use std::env;
87

98
pub const TESTS_BINARY: &str = env!("CARGO_BIN_EXE_coreutils");
@@ -12,6 +11,7 @@ pub const TESTS_BINARY: &str = env!("CARGO_BIN_EXE_coreutils");
1211
#[ctor::ctor]
1312
fn init() {
1413
unsafe {
14+
// Necessary for uutests to be able to find the binary
1515
std::env::set_var("UUTESTS_BINARY_PATH", TESTS_BINARY);
1616
}
1717
}

0 commit comments

Comments
 (0)