comparison libpam-sys/libpam-sys-test/tests/runner.rs @ 137:88627c057709 default tip

Add Sun PAM functions from Illumos headers.
author Paul Fisher <paul@pfish.zone>
date Thu, 03 Jul 2025 17:33:13 -0400
parents efbc235f01d3
children
comparison
equal deleted inserted replaced
136:efbc235f01d3 137:88627c057709
1 #![allow(unused_imports)] 1 #![allow(unused_imports)]
2 2
3 macro_rules! include_test {
4 ($file:literal) => {
5 include!(concat!(env!("OUT_DIR"), "/", $file));
6 };
7 }
8
3 mod constants { 9 mod constants {
4 include!(concat!(env!("OUT_DIR"), "/constant_test.rs")); 10 #[allow(dead_code, non_camel_case_types, non_upper_case_globals)]
11 mod generated {
12 include_test!("bindgen.rs");
13 }
14
15 include_test!("constant_test.rs");
5 16
6 #[test] 17 #[test]
7 fn test_constants() { 18 fn test_constants() {
8 main() 19 main()
9 } 20 }
11 22
12 #[allow(clippy::all)] 23 #[allow(clippy::all)]
13 mod ctest { 24 mod ctest {
14 use libc::*; 25 use libc::*;
15 use libpam_sys::*; 26 use libpam_sys::*;
16 include!(concat!(env!("OUT_DIR"), "/ctest.rs")); 27 include_test!("ctest.rs");
17 28
18 #[test] 29 #[test]
19 fn test_c() { 30 fn test_c() {
20 main(); 31 main();
21 } 32 }