test: add 2 more os-release tests

This adds two more os-release tests. One contains an empty os-release
file. We verify it is correctly parsed and ends up with the default
value.

The second one is the official Arch Linux os-release file. We verify
that we correctly end up with the rolling-release name.
This commit is contained in:
David Rheinsberg 2020-02-29 12:11:54 +01:00
parent 53415a3cbc
commit 88f9915577
2 changed files with 10 additions and 0 deletions

10
test/os-release/arch Normal file
View file

@ -0,0 +1,10 @@
NAME="Arch Linux"
PRETTY_NAME="Arch Linux"
ID=arch
BUILD_ID=rolling
ANSI_COLOR="0;36"
HOME_URL="https://www.archlinux.org/"
DOCUMENTATION_URL="https://wiki.archlinux.org/"
SUPPORT_URL="https://bbs.archlinux.org/"
BUG_REPORT_URL="https://bugs.archlinux.org/"
LOGO=archlinux

0
test/os-release/linux Normal file
View file