diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2017-11-10 10:39:42 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2017-11-10 10:43:16 +0200 |
commit | 734de804b5f3513ce4994cd8aeec892476725ab1 (patch) | |
tree | c40996aa61d6a799e0afe237cd87ab29929062e2 /tests/rpmverify.at | |
parent | c4fe194556cce908df12c6e3758a7b8c2a1ce48c (diff) | |
download | rpm-734de804b5f3513ce4994cd8aeec892476725ab1.tar.gz |
Add tests for file attribute filtering in query and verification
Both query and verify support filtering by attribute exclusion
(eg --noconfig) but only query supports filter by inclusion
(eg --configfiles) for now.
Diffstat (limited to 'tests/rpmverify.at')
-rw-r--r-- | tests/rpmverify.at | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/tests/rpmverify.at b/tests/rpmverify.at index 78f50fd33..7e6a1b0dc 100644 --- a/tests/rpmverify.at +++ b/tests/rpmverify.at @@ -168,6 +168,53 @@ missing d /usr/share/doc/hello-1.0/FAQ []) AT_CLEANUP +AT_SETUP([verify file attribute filtering]) +AT_KEYWORDS([query]) +AT_CHECK([ +runroot rpmbuild -bb --quiet \ + /data/SPECS/vattrtest.spec + +runroot rpm -U /build/RPMS/noarch/vattrtest-1.0-1.noarch.rpm +runroot_other touch /opt/vattrtest/g +runroot_other chmod 644 /opt/vattrtest/g + +cmd="rpm -Vv --nouser --nogroup" +for filter in --noconfig --noghost --noartifact; do + echo ${filter} + runroot ${cmd} ${filter} vattrtest +done +], +[ignore], +[--noconfig +......... /opt/vattrtest +......... a /opt/vattrtest/a +......... d /opt/vattrtest/d +......... g /opt/vattrtest/g +......... l /opt/vattrtest/l +......... m /opt/vattrtest/m +......... r /opt/vattrtest/r +--noghost +......... /opt/vattrtest +......... a /opt/vattrtest/a +......... c /opt/vattrtest/c +......... c /opt/vattrtest/cn +......... d /opt/vattrtest/d +......... l /opt/vattrtest/l +......... m /opt/vattrtest/m +......... r /opt/vattrtest/r +--noartifact +......... /opt/vattrtest +......... c /opt/vattrtest/c +......... c /opt/vattrtest/cn +......... d /opt/vattrtest/d +......... g /opt/vattrtest/g +......... l /opt/vattrtest/l +......... m /opt/vattrtest/m +......... r /opt/vattrtest/r +], +[]) +AT_CLEANUP + # Test verify script success & failure behavior # Ignoring stderr spew for now AT_SETUP([verifyscript failure]) |