From: Panu Matilainen Date: Wed, 8 Jun 2011 11:53:36 +0000 (+0300) Subject: Add tests for the most common nvra query combinations X-Git-Tag: tznext/4.11.0.1.tizen20130304~1026 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=04f92944130acfd4941129eb6b980c5aab99308a;p=tools%2Flibrpm-tizen.git Add tests for the most common nvra query combinations --- 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])