Skip to content

Commit

Permalink
test: add Gentoo test
Browse files Browse the repository at this point in the history
  • Loading branch information
exincore committed Jan 2, 2023
1 parent 09d33cc commit 82c5617
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
9 changes: 9 additions & 0 deletions os_info/src/linux/file_release.rs
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,15 @@ mod tests {
..Default::default() // NOTE: lsb-release has DISTRIB_CODENAME="Talon" and DISTRIB_RELEASE=Soaring
}),
),
(
"src/linux/tests/Gentoo/rolling",
Some(Info {
os_type: Type::Gentoo,
// TODO: Should be Version::Rolling
version: Version::Unknown,
..Default::default()
}),
),
(
"src/linux/tests/Manjaro/rolling",
Some(Info {
Expand Down
7 changes: 7 additions & 0 deletions os_info/src/linux/tests/Gentoo/rolling/etc/os-release
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
NAME=Gentoo
ID=gentoo
PRETTY_NAME="Gentoo/Linux"
ANSI_COLOR="1;32"
HOME_URL="https://www.gentoo.org/"
SUPPORT_URL="https://www.gentoo.org/support/"
BUG_REPORT_URL="https://bugs.gentoo.org/"

0 comments on commit 82c5617

Please sign in to comment.