From 7ba0b8ff6f92a5658ac465d2057f0f28f4a61856 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Tue, 4 Apr 2017 14:06:21 +0300 Subject: Add a testcase for --xml output This currently fails due to regression originating from commit ead9cdd587bbf052722f0f8598e0983e565e3415 and 7f47cbbd7d1600ae280e48a655c9e870cf9361e0, which exist just because we didn't have this testcase... --- tests/rpmquery.at | 299 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 299 insertions(+) diff --git a/tests/rpmquery.at b/tests/rpmquery.at index bb3669d8b..a9975e2ad 100644 --- a/tests/rpmquery.at +++ b/tests/rpmquery.at @@ -399,3 +399,302 @@ runroot rpm \ [error: incorrect format: invalid field width ]) AT_CLEANUP + +AT_SETUP([xml format]) +AT_KEYWORDS([query]) +AT_CHECK([ +runroot rpm -qp --xml data/RPMS/hello-2.0-1.x86_64.rpm +], +[0], +[ + + C + + + 5411 + + + E3yh2LNcygKhhUujAcVDLg== + + + + 5cd9874c510b67b44483f9e382a1649ef7743bac + + + ef920781af3bf072ae9888eec3de1c589143101dff9cc0b561468d395fb766d9 + + + hello + + + 2.0 + + + 1 + + + hello -- hello, world rpm + + + Simple rpm demonstration. + + + 1227355200 + + + localhost + + + 7243 + + + GPL + + + Testing + + + linux + + + x86_64 + + + 7120 + 4096 + 48 + 36 + 39 + + + 33257 + 16877 + 33188 + 33188 + 33188 + + + 0 + 0 + 0 + 0 + 0 + + + 1489670606 + 1489670606 + 908894882 + 908895030 + 908884468 + + + c89fa87aeb1143969c0b6be9334b21d932f77f74e8f60120b5de316406369cf0 + + fac3b28492ecdc16da172a6f1a432ceed356ca4d9248157b2a962b395e37b3b0 + 678b87e217a415f05e43460e2c7b668245b412e2b4f18a75aa7399d9774ed0b4 + d63fdc6c986106f57230f217d36b2395d83ecf491d2b7187af714dc8db9629e9 + + + + + + + + + + 0 + 0 + 2 + 2 + 2 + + + root + root + root + root + root + + + root + root + root + root + root + + + hello-2.0-1.src.rpm + + + 4294967295 + 0 + 4294967295 + 4294967295 + 4294967295 + + + 8060 + + + hello + hello(x86-64) + + + 16384 + 16384 + 16777226 + 16777226 + 16777226 + 16384 + + + libc.so.6()(64bit) + libc.so.6(GLIBC_2.2.5)(64bit) + rpmlib(CompressedFileNames) + rpmlib(FileDigests) + rpmlib(PayloadFilesHavePrefix) + rtld(GNU_HASH) + + + + + 3.0.4-1 + 4.6.0-1 + 4.0-1 + + + + 4.13.90 + + + 1227355200 + 908884800 + + + Panu Matilainen <pmatilai@redhat.com> + Jeff Johnson <jbj@redhat.com> + + + - updated version + - create. + + + 1 + 1 + 1 + 1 + 1 + + + 1 + 2 + 3 + 4 + 5 + + + + + + + + + + /usr + + + 8 + 8 + + + 2.0-1 + 2.0-1 + + + 0 + 1 + 2 + 2 + 2 + + + hello + hello-2.0 + COPYING + FAQ + README + + + /usr/bin/ + /usr/share/doc/ + /usr/share/doc/hello-2.0/ + + + -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic + + + cpio + + + gzip + + + 9 + + + x86_64-redhat-linux-gnu + + + 2 + 0 + 0 + 0 + 0 + + + 0 + 1 + 2 + 2 + 2 + + + ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[[sha1]]=775fdcb927e4300adbe83cfacec3cfeb1f63fe17, stripped + directory + ASCII text + + + 0 + 0 + 0 + 0 + 0 + + + 3 + 0 + 0 + 0 + 0 + + + 1375731713 + 1375731712 + 1375731717 + + + 8 + + + utf-8 + + + 84a7338287bf19715c4eed0243f5cdb447eeb0ade37b2af718d4060aefca2f7c + + + 8 + + +], +[]) +AT_CLEANUP -- cgit v1.2.1