-
Notifications
You must be signed in to change notification settings - Fork 52
Expand file tree
/
Copy pathtests.rs
More file actions
92 lines (71 loc) · 2 KB
/
tests.rs
File metadata and controls
92 lines (71 loc) · 2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
// This file is part of the uutils util-linux 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_util-linux");
// Use the ctor attribute to run this function before any tests
#[ctor::ctor(unsafe)]
fn init() {
unsafe {
// Necessary for uutests to be able to find the binary
std::env::set_var("UUTESTS_BINARY_PATH", TESTS_BINARY);
}
}
#[cfg(feature = "lscpu")]
#[path = "by-util/test_lscpu.rs"]
mod test_lscpu;
#[cfg(feature = "lsmem")]
#[path = "by-util/test_lsmem.rs"]
mod test_lsmem;
#[cfg(feature = "lslocks")]
#[path = "by-util/test_lslocks.rs"]
mod test_lslocks;
#[cfg(feature = "mesg")]
#[path = "by-util/test_mesg.rs"]
mod test_mesg;
#[cfg(feature = "mountpoint")]
#[path = "by-util/test_mountpoint.rs"]
mod test_mountpoint;
#[cfg(feature = "nologin")]
#[path = "by-util/test_nologin.rs"]
mod test_nologin;
#[cfg(feature = "blockdev")]
#[path = "by-util/test_blockdev.rs"]
mod test_blockdev;
#[cfg(feature = "cal")]
#[path = "by-util/test_cal.rs"]
mod test_cal;
#[cfg(feature = "ctrlaltdel")]
#[path = "by-util/test_ctrlaltdel.rs"]
mod test_ctrlaltdel;
#[cfg(feature = "renice")]
#[path = "by-util/test_renice.rs"]
mod test_renice;
#[cfg(feature = "rev")]
#[path = "by-util/test_rev.rs"]
mod test_rev;
#[cfg(feature = "setpgid")]
#[path = "by-util/test_setpgid.rs"]
mod test_setpgid;
#[cfg(feature = "setsid")]
#[path = "by-util/test_setsid.rs"]
mod test_setsid;
#[cfg(feature = "last")]
#[path = "by-util/test_last.rs"]
mod test_last;
#[cfg(feature = "dmesg")]
#[path = "by-util/test_dmesg.rs"]
mod test_dmesg;
#[cfg(feature = "fsfreeze")]
#[path = "by-util/test_fsfreeze.rs"]
mod test_fsfreeze;
#[cfg(feature = "hexdump")]
#[path = "by-util/test_hexdump.rs"]
mod test_hexdump;
#[cfg(feature = "mcookie")]
#[path = "by-util/test_mcookie.rs"]
mod test_mcookie;
#[cfg(feature = "uuidgen")]
#[path = "by-util/test_uuidgen.rs"]
mod test_uuidgen;