Add a file to the dependency test-case spec
authorPanu Matilainen <pmatilai@redhat.com>
Wed, 20 Mar 2013 09:49:35 +0000 (11:49 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Fri, 7 Jun 2013 07:31:06 +0000 (10:31 +0300)
- 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
tests/rpmverify.at

index 7f2228f..cb4cbbd 100644 (file)
@@ -14,5 +14,10 @@ BuildArch:   noarch
 %description
 %{summary}
 
+%install
+mkdir -p %{buildroot}/opt/
+echo FOO > %{buildroot}/opt/bar
+
 %files
 %defattr(-,root,root,-)
+/opt/bar
index 473ac49..39add69 100644 (file)
@@ -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: