Skip to content

dnsdomainname#191

Open
hz2 wants to merge 2 commits intouutils:mainfrom
hz2:dnsdomainname
Open

dnsdomainname#191
hz2 wants to merge 2 commits intouutils:mainfrom
hz2:dnsdomainname

Conversation

@hz2
Copy link

@hz2 hz2 commented Aug 10, 2025

closes #4

Comment on lines +9 to +15
// Get the dnsdomainname binary path
const DNSDOMAINNAME_BINARY: &str = env!("CARGO_BIN_EXE_dnsdomainname");

// Helper function to create a command for the dnsdomainname binary
fn dnsdomainname_cmd() -> uutests::util::UCommand {
TestScenario::new("test").cmd(DNSDOMAINNAME_BINARY)
}
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if a reviewer could let me know how we should be testing the different binaries, this was a work-around to not be testing hostname dnsdomainname and instead just test dnsdomainname

@hz2
Copy link
Author

hz2 commented Aug 10, 2025

there is reuse of the unix.rs and windows.rs files from hostname (e.g. print/, net/ that can be shared across the different utils, but not sure if that's necessary?

@hz2 hz2 changed the title closes #4 dnsdomainname Aug 10, 2025
@hz2 hz2 marked this pull request as ready for review August 10, 2025 22:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

implement dnsdomainname

1 participant