From 04f92944130acfd4941129eb6b980c5aab99308a Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Wed, 8 Jun 2011 14:53:36 +0300 Subject: [PATCH] Add tests for the most common nvra query combinations --- tests/rpmquery.at | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/tests/rpmquery.at b/tests/rpmquery.at index 74643da..021b166 100644 --- a/tests/rpmquery.at +++ b/tests/rpmquery.at @@ -133,7 +133,7 @@ AT_CLEANUP # install a package into a local rpmdb # * Shall only work with relocation # * Use --ignorearch because we don't know the arch -AT_SETUP([rpm -qil hello]) +AT_SETUP([rpm -q on installed package]) AT_KEYWORDS([rpmdb install query]) AT_CHECK([ @@ -146,12 +146,19 @@ runroot rpm \ ], [0]) +# check common NVRA combinations AT_CHECK([ runroot rpm \ - -q hello + -q hello hello-1.0 hello-1.0-1 \ + hello.ppc64 hello-1.0.ppc64 hello-1.0-1.ppc64 ], [0], [hello-1.0-1.ppc64 +hello-1.0-1.ppc64 +hello-1.0-1.ppc64 +hello-1.0-1.ppc64 +hello-1.0-1.ppc64 +hello-1.0-1.ppc64 ], [ignore]) -- 2.7.4