diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2011-04-01 15:42:47 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2011-04-01 15:42:47 +0300 |
commit | a3dc8a920947093adbb70941e750511f0dcf707e (patch) | |
tree | 77edd74db8cf21754dbae84edee323b8e523bfbb /tests | |
parent | 0bc3ae3b7118e88ca35f4a30da03c45d79cd297d (diff) | |
download | librpm-tizen-a3dc8a920947093adbb70941e750511f0dcf707e.tar.gz librpm-tizen-a3dc8a920947093adbb70941e750511f0dcf707e.tar.bz2 librpm-tizen-a3dc8a920947093adbb70941e750511f0dcf707e.zip |
Make all query tests run under fakechroot
Diffstat (limited to 'tests')
-rw-r--r-- | tests/rpmquery.at | 94 |
1 files changed, 47 insertions, 47 deletions
diff --git a/tests/rpmquery.at b/tests/rpmquery.at index b7b800ac3..08fbeefcc 100644 --- a/tests/rpmquery.at +++ b/tests/rpmquery.at @@ -22,9 +22,9 @@ AT_BANNER([RPM queries]) AT_SETUP([rpm --qf -p *.i386.rpm]) AT_KEYWORDS([query]) AT_CHECK([ -run rpm \ +runroot rpm \ -q --qf "%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}\n" \ - -p "${abs_srcdir}"/data/RPMS/hello-1.0-1.i386.rpm + -p /data/RPMS/hello-1.0-1.i386.rpm ], [0], [hello-1.0-1.i386 @@ -36,9 +36,9 @@ AT_CLEANUP AT_SETUP([rpm --qf -p *.src.rpm]) AT_KEYWORDS([query]) AT_CHECK([ -run rpm \ +runroot rpm \ -q --qf "%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}\n" \ - -p "${abs_srcdir}"/data/SRPMS/hello-1.0-1.src.rpm + -p /data/SRPMS/hello-1.0-1.src.rpm ], [0], [hello-1.0-1.i386 @@ -50,9 +50,9 @@ AT_CLEANUP AT_SETUP([rpm -ql -p *.src.rpm]) AT_KEYWORDS([query]) AT_CHECK([ -run rpm \ +runroot rpm \ -ql \ - -p "${abs_srcdir}"/data/SRPMS/hello-1.0-1.src.rpm + -p /data/SRPMS/hello-1.0-1.src.rpm ], [0], [hello-1.0.tar.gz @@ -65,8 +65,8 @@ AT_CLEANUP AT_SETUP([rpmspec -q]) AT_KEYWORDS([query]) AT_CHECK([ -run rpmspec \ - -q --qf "%{name}" "${abs_srcdir}"/data/SPECS/hello.spec +runroot rpmspec \ + -q --qf "%{name}" /data/SPECS/hello.spec ], [0], [hello], @@ -77,9 +77,9 @@ AT_CLEANUP AT_SETUP([rpm -ql -p *.i386.rpm]) AT_KEYWORDS([query]) AT_CHECK([ -rpm \ +runroot rpm \ -ql \ - -p "${abs_srcdir}"/data/RPMS/hello-1.0-1.i386.rpm + -p /data/RPMS/hello-1.0-1.i386.rpm ], [0], [/usr/local/bin/hello @@ -94,12 +94,12 @@ AT_CLEANUP AT_SETUP([rpm -qp <manifest>]) AT_KEYWORDS([query]) AT_CHECK([ -cat << EOF > query.mft -"${abs_srcdir}"/data/RPMS/hello-1.0-1.i386.rpm -"${abs_srcdir}"/data/RPMS/hello-1.0-1.ppc64.rpm -"${abs_srcdir}"/data/RPMS/foo-1.0-1.noarch.rpm +cat << EOF > ${RPMTEST}/query.mft +/data/RPMS/hello-1.0-1.i386.rpm +/data/RPMS/hello-1.0-1.ppc64.rpm +/data/RPMS/foo-1.0-1.noarch.rpm EOF -run rpm -qp --qf "%{nvr}\n" query.mft +runroot rpm -qp --qf "%{nvr}\n" /query.mft ], [0], [hello-1.0-1 @@ -115,9 +115,9 @@ AT_CLEANUP AT_SETUP([rpm -q --scripts -p *.i386.rpm]) AT_KEYWORDS([query]) AT_CHECK([ -run rpm \ +runroot rpm \ -q --scripts \ - -p "${abs_srcdir}"/data/RPMS/hello-1.0-1.i386.rpm + -p /data/RPMS/hello-1.0-1.i386.rpm ], [0], [preinstall program: /bin/sh @@ -178,9 +178,9 @@ AT_CLEANUP AT_SETUP([integer array query]) AT_KEYWORDS([query]) AT_CHECK([ -run rpm \ +runroot rpm \ --queryformat="[[%{filemodes}\n]]" \ - -qp "${abs_srcdir}"/data/RPMS/hello-1.0-1.i386.rpm + -qp /data/RPMS/hello-1.0-1.i386.rpm ], [0], [33257 @@ -194,9 +194,9 @@ AT_CLEANUP AT_SETUP([formatted filesbypkg query]) AT_KEYWORDS([query]) AT_CHECK([ -run rpm \ +runroot rpm \ --queryformat="[[%-10{=NAME} %{FILENAMES}\n]]" \ - -qp "${abs_srcdir}"/data/RPMS/hello-1.0-1.i386.rpm + -qp /data/RPMS/hello-1.0-1.i386.rpm ], [0], [hello /usr/local/bin/hello @@ -210,9 +210,9 @@ AT_CLEANUP AT_SETUP([hex formatted integer array extension query]) AT_KEYWORDS([query]) AT_CHECK([ -run rpm \ +runroot rpm \ --queryformat="[[%5{longfilesizes:hex}\n]]" \ - -qp "${abs_srcdir}"/data/RPMS/hello-1.0-1.i386.rpm + -qp /data/RPMS/hello-1.0-1.i386.rpm ], [0], [ b40 @@ -226,9 +226,9 @@ AT_CLEANUP AT_SETUP([base64 extension query]) AT_KEYWORDS([query]) AT_CHECK([ -run rpm \ +runroot rpm \ --queryformat="%{pkgid:base64}" \ - -qp "${abs_srcdir}"/data/RPMS/foo-1.0-1.noarch.rpm + -qp /data/RPMS/foo-1.0-1.noarch.rpm ], [0], [qt8W635v5FKy1pILrW+0uw== @@ -240,9 +240,9 @@ AT_CLEANUP AT_SETUP([integer array perms format query]) AT_KEYWORDS([query]) AT_CHECK([ -run rpm \ +runroot rpm \ --queryformat="[[%{filemodes:perms}\n]]" \ - -qp "${abs_srcdir}"/data/RPMS/hello-1.0-1.i386.rpm + -qp /data/RPMS/hello-1.0-1.i386.rpm ], [0], [-rwxr-x--x @@ -256,9 +256,9 @@ AT_CLEANUP AT_SETUP([string array query]) AT_KEYWORDS([query]) AT_CHECK([ -run rpm \ +runroot rpm \ --queryformat="[[%{basenames} ]]" \ - -qp "${abs_srcdir}"/data/RPMS/hello-1.0-1.i386.rpm + -qp /data/RPMS/hello-1.0-1.i386.rpm ], [0], [hello hello-1.0 FAQ ], @@ -269,9 +269,9 @@ AT_CLEANUP AT_SETUP([empty string array query]) AT_KEYWORDS([query]) AT_CHECK([ -run rpm \ +runroot rpm \ --queryformat="[[%{basenames}]]" \ - -qp "${abs_srcdir}"/data/RPMS/foo-1.0-1.noarch.rpm + -qp /data/RPMS/foo-1.0-1.noarch.rpm ], [0], [], @@ -282,9 +282,9 @@ AT_CLEANUP AT_SETUP([empty string array extension array format]) AT_KEYWORDS([query]) AT_CHECK([ -run rpm \ +runroot rpm \ --queryformat="[[%{filenames}]]" \ - -qp "${abs_srcdir}"/data/RPMS/foo-1.0-1.noarch.rpm + -qp /data/RPMS/foo-1.0-1.noarch.rpm ], [0], [], @@ -295,9 +295,9 @@ AT_CLEANUP AT_SETUP([empty string array extension query]) AT_KEYWORDS([query]) AT_CHECK([ -run rpm \ +runroot rpm \ --queryformat="%{filenames}" \ - -qp "${abs_srcdir}"/data/RPMS/foo-1.0-1.noarch.rpm + -qp /data/RPMS/foo-1.0-1.noarch.rpm ], [0], [(none)], @@ -308,9 +308,9 @@ AT_CLEANUP AT_SETUP([different sizes arrays query]) AT_KEYWORDS([query]) AT_CHECK([ -run rpm \ +runroot rpm \ --queryformat="[[%{basenames} %{changelogname}]]" \ - -qp "${abs_srcdir}"/data/RPMS/hello-1.0-1.i386.rpm + -qp /data/RPMS/hello-1.0-1.i386.rpm ], [0], [], @@ -322,9 +322,9 @@ AT_CLEANUP AT_SETUP([non-existent string tag]) AT_KEYWORDS([query]) AT_CHECK([ -run rpm \ +runroot rpm \ --queryformat="%{vendor}" \ - -qp "${abs_srcdir}"/data/RPMS/foo-1.0-1.noarch.rpm + -qp /data/RPMS/foo-1.0-1.noarch.rpm ], [0], [(none)], @@ -335,9 +335,9 @@ AT_CLEANUP AT_SETUP([non-existent integer tag query]) AT_KEYWORDS([query]) AT_CHECK([ -run rpm \ +runroot rpm \ --queryformat="%{installcolor}" \ - -qp "${abs_srcdir}"/data/RPMS/foo-1.0-1.noarch.rpm + -qp /data/RPMS/foo-1.0-1.noarch.rpm ], [0], [(none)], @@ -348,9 +348,9 @@ AT_CLEANUP AT_SETUP([conditional queryformat]) AT_KEYWORDS([query]) AT_CHECK([ -run rpm \ +runroot rpm \ --queryformat="%|name?{%{name}}:{no}| %|installtime?{%{installtime}}:{(not installed)}|" \ - -qp "${abs_srcdir}"/data/RPMS/foo-1.0-1.noarch.rpm + -qp /data/RPMS/foo-1.0-1.noarch.rpm ], [0], [foo (not installed)], @@ -361,9 +361,9 @@ AT_CLEANUP AT_SETUP([invalid tag query]) AT_KEYWORDS([query]) AT_CHECK([ -run rpm \ +runroot rpm \ --queryformat="%{notag}" \ - -qp "${abs_srcdir}"/data/RPMS/foo-1.0-1.noarch.rpm + -qp /data/RPMS/foo-1.0-1.noarch.rpm ], [0], [], @@ -375,9 +375,9 @@ AT_CLEANUP AT_SETUP([invalid data for format query]) AT_KEYWORDS([query]) AT_CHECK([ -run rpm \ +runroot rpm \ --queryformat="%{name:depflags}" \ - -qp "${abs_srcdir}"/data/RPMS/foo-1.0-1.noarch.rpm + -qp /data/RPMS/foo-1.0-1.noarch.rpm ], [0], [(not a number)], |