summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2008-12-03 14:17:25 +0200
committerPanu Matilainen <pmatilai@redhat.com>2008-12-03 14:17:25 +0200
commit34159ad112684156aac6e91364c7c7bce1f1df14 (patch)
treeff43efeffb74aa44895a67ab9fe6dcb7b1d0e8b7 /tests
parentd54e0e899f02b3e492e7f8e73c10f9c3a8f53034 (diff)
downloadlibrpm-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.at22
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