Mercurial > crates > nonstick
view 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 |
line wrap: on
line source
#![allow(unused_imports)] macro_rules! include_test { ($file:literal) => { include!(concat!(env!("OUT_DIR"), "/", $file)); }; } mod constants { #[allow(dead_code, non_camel_case_types, non_upper_case_globals)] mod generated { include_test!("bindgen.rs"); } include_test!("constant_test.rs"); #[test] fn test_constants() { main() } } #[allow(clippy::all)] mod ctest { use libc::*; use libpam_sys::*; include_test!("ctest.rs"); #[test] fn test_c() { main(); } }