Add testing for Debian testing and unstable

Since the testing and unstable suites don't have version numbers
(similar to some other rolling release distros), but we have some
Debian-specific logic in the program, we need to make sure future
changes don't regress this platform.

Change-Id: I8eac47772b2ec277e0868798846683818149061f
This commit is contained in:
Jeremy Stanley 2024-10-11 15:08:28 +00:00
parent 9c2c28a992
commit 3db70c2ada
2 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,7 @@
PRETTY_NAME="Debian GNU/Linux xyzzy/sid"
NAME="Debian GNU/Linux"
VERSION_CODENAME=xyzzy
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

View File

@ -266,6 +266,15 @@ class TestDepends(TestCase):
self.assertThat(
depends.platform_profiles(), Contains("platform:rpm"))
def test_detects_debian_sid(self):
with DistroFixture("DebianSid"):
depends = Depends("")
self.assertThat(
depends.platform_profiles(), Contains("platform:debian"))
self.assertThat(
depends.platform_profiles(),
Contains("platform:debian-xyzzy"))
def test_detects_release(self):
with DistroFixture("Ubuntu"):
depends = Depends("")