1 use std
::process
::Command
;
3 use log
::{error, trace}
;
5 use crate::{bitness, uname::uname, Info, Type, Version}
;
7 pub fn current_platform() -> Info
{
8 trace
!("netbsd::current_platform is called");
11 .map(Version
::from_string
)
12 .unwrap_or_else(|| Version
::Unknown
);
15 os_type
: Type
::NetBSD
,
17 bitness
: bitness
::get(),
21 trace
!("Returning {:?}", info
);
28 use pretty_assertions
::assert_eq
;
32 let version
= current_platform();
33 assert_eq
!(Type
::NetBSD
, version
.os_type());