summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2010-09-08 13:52:30 +0300
committerPanu Matilainen <pmatilai@redhat.com>2010-09-08 13:52:30 +0300
commit5a1d5ddc84fdfca1f2bbfa0bd52976d338882e42 (patch)
tree3b58ab7a018ae2e4cdee38771930425362d196f8 /tests
parent18d1d9fc7adc98bd5429a9e11e53195eec9b52a9 (diff)
downloadlibrpm-tizen-5a1d5ddc84fdfca1f2bbfa0bd52976d338882e42.tar.gz
librpm-tizen-5a1d5ddc84fdfca1f2bbfa0bd52976d338882e42.tar.bz2
librpm-tizen-5a1d5ddc84fdfca1f2bbfa0bd52976d338882e42.zip
Add test for manifest query in testsuite
Diffstat (limited to 'tests')
-rw-r--r--tests/rpmquery.at19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/rpmquery.at b/tests/rpmquery.at
index 4de56c5ea..77668eb65 100644
--- a/tests/rpmquery.at
+++ b/tests/rpmquery.at
@@ -89,6 +89,25 @@ rpm \
[ignore])
AT_CLEANUP
+# ------------------------------
+# Test query on manifest
+AT_SETUP([rpm -qp <manifest>])
+AT_KEYWORDS([query])
+AT_CHECK([
+cat << EOF > query.mft
+"${abs_srcdir}"/data/RPMS/hello-1.0-1.i386.rpm
+"${abs_srcdir}"/data/RPMS/hello-1.0-1.ppc64.rpm
+"${abs_srcdir}"/data/RPMS/foo-1.0-1.noarch.rpm
+EOF
+run rpm -qp --qf "%{nvr}\n" query.mft
+],
+[0],
+[hello-1.0-1
+hello-1.0-1
+foo-1.0-1
+],
+[])
+AT_CLEANUP
# ------------------------------
# Try to check "scripts"