Skip to content

Commit

Permalink
test: add openSUSE test
Browse files Browse the repository at this point in the history
  • Loading branch information
exincore committed Jan 1, 2023
1 parent 58fda48 commit 544c957
Show file tree
Hide file tree
Showing 2 changed files with 19 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 @@ -391,6 +391,15 @@ mod tests {
("src/linux/tests/none_invalid_os_release", None),
("src/linux/tests/none_no_path", None),
("src/linux/tests/none_no_release", None),
(
// openSUSE Leap
"src/linux/tests/openSUSE/15.1.0",
Some(Info {
os_type: Type::openSUSE,
version: Version::Semantic(15, 1, 0),
..Default::default()
}),
),
(
"src/linux/tests/OracleLinux/8.1.0/server",
Some(Info {
Expand Down
10 changes: 10 additions & 0 deletions os_info/src/linux/tests/openSUSE/15.1.0/etc/os-release
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
NAME="openSUSE Leap"
VERSION="15.1 "
ID="opensuse-leap"
ID_LIKE="suse opensuse"
VERSION_ID="15.1"
PRETTY_NAME="openSUSE Leap 15.1"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:leap:15.1"
BUG_REPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://www.opensuse.org/"

0 comments on commit 544c957

Please sign in to comment.