From 5a1d5ddc84fdfca1f2bbfa0bd52976d338882e42 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Wed, 8 Sep 2010 13:52:30 +0300 Subject: [PATCH] Add test for manifest query in testsuite --- tests/rpmquery.at | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/tests/rpmquery.at b/tests/rpmquery.at index 4de56c5..77668eb 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 ]) +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" -- 2.7.4