summaryrefslogtreecommitdiff
path: root/tests/rpmquery.at
diff options
context:
space:
mode:
authorRalf Corsépius <corsepiu@fedoraproject.org>2007-08-24 07:36:24 +0200
committerRalf Corsépius <corsepiu@fedoraproject.org>2007-08-24 07:36:24 +0200
commitf77387df9ab84aae6d3fedb7ebfe0ed6ca1c0380 (patch)
treeb2e606b0cd80e769d0b173631da5d664624f06f6 /tests/rpmquery.at
parent749313a946f54fdcd9700b8da97758565355221e (diff)
downloadrpm-f77387df9ab84aae6d3fedb7ebfe0ed6ca1c0380.tar.gz
rpm-f77387df9ab84aae6d3fedb7ebfe0ed6ca1c0380.tar.bz2
rpm-f77387df9ab84aae6d3fedb7ebfe0ed6ca1c0380.zip
Add [rpm -q --scripts -p *.i386.rpm].
Diffstat (limited to 'tests/rpmquery.at')
-rw-r--r--tests/rpmquery.at20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/rpmquery.at b/tests/rpmquery.at
index c4ecd8c87..85c5b5dc3 100644
--- a/tests/rpmquery.at
+++ b/tests/rpmquery.at
@@ -77,6 +77,26 @@ AT_CLEANUP
# ------------------------------
+# Try to check "scripts"
+# * Gets rpmpopt-$(VERSION) involved
+AT_SETUP([rpm -q --scripts -p *.i386.rpm])
+AT_CHECK([
+rpm \
+ --rcfile=${RPMRC} \
+ -q --scripts \
+ -p "${abs_srcdir}"/data/RPMS/hello-1.0-1.i386.rpm
+],
+[0],
+[preinstall program: /bin/sh
+postinstall program: /bin/sh
+preuninstall program: /bin/sh
+postuninstall program: /bin/sh
+],
+[ignore])
+AT_CLEANUP
+
+
+# ------------------------------
# install a package into a local rpmdb
# * Shall only work with relocation
# * Use --ignorearch because we don't know the arch