Mercurial > crates > nonstick
comparison libpam-sys/libpam-sys-test/tests/runner.rs @ 131:a632a8874131
Get all the Linux-PAM functions into libpam-sys, and get tests right.
author | Paul Fisher <paul@pfish.zone> |
---|---|
date | Wed, 02 Jul 2025 02:24:21 -0400 |
parents | c77846f3a979 |
children |
comparison
equal
deleted
inserted
replaced
130:80c07e5ab22f | 131:a632a8874131 |
---|---|
1 include!(concat!(env!("OUT_DIR"), "/constant_test.rs")); | 1 #![allow(unused_imports)] |
2 | |
3 mod constants { | |
4 include!(concat!(env!("OUT_DIR"), "/constant_test.rs")); | |
5 | |
6 #[test] | |
7 fn test_constants() { | |
8 main() | |
9 } | |
10 } | |
11 | |
12 #[allow(clippy::all)] | |
13 mod ctest { | |
14 use libpam_sys::*; | |
15 include!(concat!(env!("OUT_DIR"), "/ctest.rs")); | |
16 | |
17 #[test] | |
18 fn test_c() { | |
19 eprintln!("Running a test!"); | |
20 main(); | |
21 } | |
22 } |