Dear Maintainer,
This patch enables autopkgtest for libsemanage by adding basic tests under debian/tests/ (control, upstream-tests, installed-package) to validate upstream tests and installed library usage.
While doing this, APT downgrade failures were observed with the latest upstream commits and therefore skipped the following two commits:
* https://salsa.debian.org/selinux-team/libsemanage/-/commit/43228664d326ce1fd83e5a3927b37a058d0a1e49
* https://salsa.debian.org/selinux-team/libsemanage/-/commit/292e2d954024845ca6048562c76221f527812fa9
The autopkgtest fails with dependency issues where apt attempts to downgrade packages:
The following packages will be DOWNGRADED:
libsemanage-common libsemanage2
21 upgraded, 133 newly installed, 2 downgraded, 0 to remove and 41 not upgraded.
1 not fully installed or removed.
E: Packages were downgraded and -y was used without --allow-downgrades.
badpkg: Test dependencies are unsatisfiable.
The same commits also show build/test failures in the Debian Salsa CI, indicating possible dependency/version mismatch issues with the current test environment.
Hence, autopkgtest has been enabled on a stable base excluding these commits.
Request you to review and provide feedback.
Kind regards,
Sahithi Akunuri