summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2008-12-09 14:58:43 +0200
committerPanu Matilainen <pmatilai@redhat.com>2008-12-09 14:58:43 +0200
commit95b8a910893bba3ad66507975cd96f1c082004e3 (patch)
tree9a60de38d0429d5db610fa6c4b17ab3d9f387eb9 /tests
parentb838d10e0cf3d747ac0ce5b756688e6677dbc513 (diff)
downloadlibrpm-tizen-95b8a910893bba3ad66507975cd96f1c082004e3.tar.gz
librpm-tizen-95b8a910893bba3ad66507975cd96f1c082004e3.tar.bz2
librpm-tizen-95b8a910893bba3ad66507975cd96f1c082004e3.zip
Update testsuite expectations as per array format change, add another test
Diffstat (limited to 'tests')
-rw-r--r--tests/rpmquery.at17
1 files changed, 15 insertions, 2 deletions
diff --git a/tests/rpmquery.at b/tests/rpmquery.at
index 7b8fa20d6..af63b7b46 100644
--- a/tests/rpmquery.at
+++ b/tests/rpmquery.at
@@ -235,7 +235,20 @@ run rpm \
AT_CLEANUP
# ------------------------------
-AT_SETUP([empty string array extension array query])
+AT_SETUP([empty string array query])
+AT_KEYWORDS([query])
+AT_CHECK([
+run rpm \
+ --queryformat="[[%{basenames}]]" \
+ -qp "${abs_srcdir}"/data/RPMS/foo-1.0-1.noarch.rpm
+],
+[0],
+[],
+[])
+AT_CLEANUP
+
+# ------------------------------
+AT_SETUP([empty string array extension array format])
AT_KEYWORDS([query])
AT_CHECK([
run rpm \
@@ -243,7 +256,7 @@ run rpm \
-qp "${abs_srcdir}"/data/RPMS/foo-1.0-1.noarch.rpm
],
[0],
-[(none)],
+[],
[])
AT_CLEANUP