diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2008-12-03 14:17:25 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2008-12-03 14:17:25 +0200 |
commit | 34159ad112684156aac6e91364c7c7bce1f1df14 (patch) | |
tree | ff43efeffb74aa44895a67ab9fe6dcb7b1d0e8b7 /tests | |
parent | d54e0e899f02b3e492e7f8e73c10f9c3a8f53034 (diff) | |
download | librpm-tizen-34159ad112684156aac6e91364c7c7bce1f1df14.tar.gz librpm-tizen-34159ad112684156aac6e91364c7c7bce1f1df14.tar.bz2 librpm-tizen-34159ad112684156aac6e91364c7c7bce1f1df14.zip |
Add test to verify status of installed files
Diffstat (limited to 'tests')
-rw-r--r-- | tests/rpmdb.at | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/rpmdb.at b/tests/rpmdb.at index 2f784addb..d6ca58f7f 100644 --- a/tests/rpmdb.at +++ b/tests/rpmdb.at @@ -110,3 +110,25 @@ runroot rpm -i \ [ignore]) AT_CLEANUP + +# ------------------------------ +# Install and verify status +AT_SETUP([rpm -U and verify status]) +AT_KEYWORDS([install rpmdb query]) +AT_CHECK([ +RPMDB_CLEAR +rm -rf "${TOPDIR}" + +run rpmbuild --quiet -bb \ + --define "pkg status" \ + --define "filedata same_stuff" \ + ${RPMDATA}/SPECS/conflicttest.spec + +runroot rpm -U "${TOPDIR}"/RPMS/noarch/conflictstatus-1.0-1.noarch.rpm +runroot rpm -qls conflictstatus +], +[0], +[normal /usr/share/my.version +], +[]) +AT_CLEANUP |