Add tests for the most common nvra query combinations
authorPanu Matilainen <pmatilai@redhat.com>
Wed, 8 Jun 2011 11:53:36 +0000 (14:53 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Wed, 8 Jun 2011 12:28:06 +0000 (15:28 +0300)
tests/rpmquery.at

index 74643da..021b166 100644 (file)
@@ -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])