From ecf4171185b9e1005ccafe80751cbe85b3f13399 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Wed, 20 Mar 2013 11:49:35 +0200 Subject: [PATCH] Add a file to the dependency test-case spec - To be able to test file-dependencies it needs some files too... - Adjust dependency problem verify case to avoid looking at files (user+group will always be wrong in the test suite). So it actually serves as --nofiles testcase now too. (cherry picked from commit 35cf3112f12d30660614258183a6cbf2e0fbf953) --- tests/data/SPECS/deptest.spec | 5 +++++ tests/rpmverify.at | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/data/SPECS/deptest.spec b/tests/data/SPECS/deptest.spec index 7f2228f..cb4cbbd 100644 --- a/tests/data/SPECS/deptest.spec +++ b/tests/data/SPECS/deptest.spec @@ -14,5 +14,10 @@ BuildArch: noarch %description %{summary} +%install +mkdir -p %{buildroot}/opt/ +echo FOO > %{buildroot}/opt/bar + %files %defattr(-,root,root,-) +/opt/bar diff --git a/tests/rpmverify.at b/tests/rpmverify.at index 473ac49..39add69 100644 --- a/tests/rpmverify.at +++ b/tests/rpmverify.at @@ -17,7 +17,7 @@ runroot rpmbuild --quiet -bb \ /data/SPECS/deptest.spec runroot rpm -U --nodeps "${TOPDIR}"/RPMS/noarch/deptest-one-1.0-1.noarch.rpm -runroot rpm -Va +runroot rpm -Va --nofiles ], [1], [Unsatisfied dependencies for deptest-one-1.0-1.noarch: -- 2.7.4