From bca32182ad43ddbcab36eefb467822f14fd77cef Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Thu, 27 Sep 2007 12:14:19 +0000 Subject: - move some test from superuser--media_info_dir.t into superuser--rpm.t - add a test --- t/data/SPECS/rpm-query-in-scriptlet.spec | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 t/data/SPECS/rpm-query-in-scriptlet.spec (limited to 't/data') diff --git a/t/data/SPECS/rpm-query-in-scriptlet.spec b/t/data/SPECS/rpm-query-in-scriptlet.spec new file mode 100644 index 00000000..dc331998 --- /dev/null +++ b/t/data/SPECS/rpm-query-in-scriptlet.spec @@ -0,0 +1,31 @@ +Summary: x +Name: rpm-query-in-scriptlet +Version: 1 +Release: 1 +License: x +Group: x +Url: x +BuildRoot: %{_tmppath}/%{name} + +%description +x + +%install +rm -rf %buildroot +echo > list +for i in sh rpm; do + bin=`which $i` + echo $bin >> list + ldd $bin | sed -e 's/^[ \t]*//' -e 's/.* => //' -e 's/ .*//' >> list +done +grep '/' list | (cd / ; cpio -pumd --dereference %buildroot) + +find %buildroot + +%post +echo "RPMLOCK_NOWAIT is '$RPMLOCK_NOWAIT'" +rpm -q foo +true + +%files +/* -- cgit v1.2.1