feat: Add test support for Manjaro Linux
If applied, this commit will add test support for Manjaro Linux. The test suite for Manjaro is based on the test suite for Arch Linux since these two distros share a package manager. In addition to a package manager, Manjaro also shares a vast majority of its packages with Arch Linux and does not offer any that override package names in the base Arch Linux repositories. Like Arch, Manjaro is a rolling release, so the test fixture, (a copy of /etc/os-release), should remain consistent over time, as it lacks any version information. Change-Id: I07195f9300459339ebe62c7871fae9a770bd97f2
This commit is contained in:
parent
80d82a4456
commit
314b303b6e
|
@ -0,0 +1,11 @@
|
|||
NAME="Manjaro Linux"
|
||||
ID=manjaro
|
||||
ID_LIKE=arch
|
||||
BUILD_ID=rolling
|
||||
PRETTY_NAME="Manjaro Linux"
|
||||
ANSI_COLOR="32;1;24;144;200"
|
||||
HOME_URL="https://manjaro.org/"
|
||||
DOCUMENTATION_URL="https://wiki.manjaro.org/"
|
||||
SUPPORT_URL="https://manjaro.org/"
|
||||
BUG_REPORT_URL="https://bugs.manjaro.org/"
|
||||
LOGO=manjarolinux
|
|
@ -354,6 +354,13 @@ class TestDepends(TestCase):
|
|||
depends.platform_profiles(), Contains("platform:pacman"))
|
||||
self.assertIsInstance(depends.platform, Pacman)
|
||||
|
||||
def test_manjaro_implies_pacman(self):
|
||||
with DistroFixture("manjaro"):
|
||||
depends = Depends("")
|
||||
self.assertThat(
|
||||
depends.platform_profiles(), Contains("platform:pacman"))
|
||||
self.assertIsInstance(depends.platform, Pacman)
|
||||
|
||||
def test_finds_profiles(self):
|
||||
depends = Depends(dedent("""\
|
||||
foo
|
||||
|
|
Loading…
Reference in New Issue