From 6afe4f51c6e5294d0546630a812f4a568c605530 Mon Sep 17 00:00:00 2001 From: SteveLauC Date: Mon, 17 Jul 2023 13:31:46 +0800 Subject: [PATCH] test: unit test for Solus (#504) --- src/steps/os/linux.rs | 5 +++++ src/steps/os/os_release/solus | 11 +++++++++++ 2 files changed, 16 insertions(+) create mode 100644 src/steps/os/os_release/solus diff --git a/src/steps/os/linux.rs b/src/steps/os/linux.rs index 13fc6bb6..b6ec70dd 100644 --- a/src/steps/os/linux.rs +++ b/src/steps/os/linux.rs @@ -1014,4 +1014,9 @@ mod tests { fn test_vanilla() { test_template(include_str!("os_release/vanilla"), Distribution::Vanilla); } + + #[test] + fn test_solus() { + test_template(include_str!("os_release/solus"), Distribution::Solus); + } } diff --git a/src/steps/os/os_release/solus b/src/steps/os/os_release/solus new file mode 100644 index 00000000..81e1a5bc --- /dev/null +++ b/src/steps/os/os_release/solus @@ -0,0 +1,11 @@ +NAME="Solus" +VERSION="4.4" +ID="solus" +VERSION_CODENAME=harmony +VERSION_ID="4.4" +PRETTY_NAME="Solus 4.4 Harmony" +ANSI_COLOR="1;34" +HOME_URL="https://getsol.us" +SUPPORT_URL="https://help.getsol.us/docs/user/contributing/getting-involved" +BUG_REPORT_URL="https://dev.getsol.us/" +LOGO="distributor-logo-solus"