File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff 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
4042Each utility is defined as a separate crate. The structure of each of these
4143crates is as follows:
Original file line number Diff line number Diff line change 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
76use std:: env;
87
98pub 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]
1312fn 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}
You can’t perform that action at this time.
0 commit comments