diff options
author | Pavlina Moravcova Varekova <pmoravco@redhat.com> | 2018-11-29 13:01:29 +0100 |
---|---|---|
committer | Pavlina Moravcova Varekova <pmoravco@redhat.com> | 2018-11-29 13:01:29 +0100 |
commit | ad8c12c5d962c136232d6309d3324a4e57b32877 (patch) | |
tree | a4707df7f7893a228ebbe2e7562d80ec912a0b88 /tests/rpmverify.at | |
parent | 4ebce1eed2d2e9b7220dda750a04451a0a08441d (diff) | |
download | rpm-ad8c12c5d962c136232d6309d3324a4e57b32877.tar.gz |
Distinguish empty and no capabilities in RPM verification
The original file capability verification in rpm incorrectly assumed
empty capabilities equals no capabilities, now we differentiate
between the two and report it in verification. Related to #585.
Diffstat (limited to 'tests/rpmverify.at')
-rw-r--r-- | tests/rpmverify.at | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/tests/rpmverify.at b/tests/rpmverify.at index f85c9b7a5..52ee2abfb 100644 --- a/tests/rpmverify.at +++ b/tests/rpmverify.at @@ -586,3 +586,40 @@ fox ], []) AT_CLEANUP + +AT_SETUP([verify empty/no capabilities 1]) +AT_KEYWORDS([verify]) +AT_SKIP_IF([$CAP_DISABLED]) +AT_CHECK([ +RPMDB_CLEAR +RPMDB_INIT + +runroot rpm -U --nocaps --ignoreos \ + /data/RPMS/capstest-1.0-1.noarch.rpm + +runroot rpm -Va --nouser --nogroup +], +[1], +[........P /a/emptyCaps1 +........P /a/emptyCaps2 +], +[]) +AT_CLEANUP + + +AT_SETUP([verify empty/no capabilities 2]) +AT_KEYWORDS([verify]) +AT_SKIP_IF([$CAP_DISABLED]) +AT_CHECK([ +RPMDB_CLEAR +RPMDB_INIT + +runroot rpm -U --nocaps --nodeps --noscripts --ignorearch --ignoreos \ + /data/RPMS/hello-1.0-1.ppc64.rpm + +runroot rpm -Va --nouser --nogroup --nodeps | grep "/bin/hello" +], +[1], +[], +[]) +AT_CLEANUP
\ No newline at end of file |