diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2011-05-26 14:01:34 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2011-05-26 14:18:09 +0300 |
commit | afe6aa0fd35e072289f5a04f71ddea58c6d34856 (patch) | |
tree | 99ca587480c54c588b6076d001fc9ef94b805d90 | |
parent | b40fe69c3b15d24f1c18a5a2b9805e2d8ac27870 (diff) | |
download | rpm-afe6aa0fd35e072289f5a04f71ddea58c6d34856.tar.gz rpm-afe6aa0fd35e072289f5a04f71ddea58c6d34856.tar.bz2 rpm-afe6aa0fd35e072289f5a04f71ddea58c6d34856.zip |
Add tests for multilib file state dependencies
- Testcase for the file state consideration implemented in commit
566a15c9c08aa593d05e2f55f1c171a48bc1b1bc
-rw-r--r-- | tests/rpmdeps.at | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/tests/rpmdeps.at b/tests/rpmdeps.at index af73f9971..5e828c273 100644 --- a/tests/rpmdeps.at +++ b/tests/rpmdeps.at @@ -187,3 +187,59 @@ runroot rpm -e deptest-two deptest-foo >= 2.0 is needed by (installed) deptest-one-1.0-1.noarch ]) AT_CLEANUP + +# ------------------------------ +AT_SETUP([erase to break colored file dependency]) +AT_KEYWORDS([install]) +AT_CHECK([ +RPMDB_CLEAR +RPMDB_INIT +rm -rf "${TOPDIR}" + +runroot rpmbuild --quiet -bb \ + --define "pkg hello" \ + --define "reqs /usr/bin/hello" \ + /data/SPECS/deptest.spec + +runroot rpm -U --ignoreos --ignorearch --nodeps \ + --define "_transaction_color 3" \ + --define "_prefer_color 2" \ + /data/RPMS/hello-2.0-1.i686.rpm \ + /data/RPMS/hello-2.0-1.x86_64.rpm \ + "${TOPDIR}"/RPMS/noarch/deptest-hello-1.0-1.noarch.rpm + +runroot rpm -e hello.x86_64 +], +[1], +[], +[error: Failed dependencies: + /usr/bin/hello is needed by (installed) deptest-hello-1.0-1.noarch +]) +AT_CLEANUP + +# ------------------------------ +AT_SETUP([erase on wrong-colored file dependency]) +AT_KEYWORDS([install]) +AT_CHECK([ +RPMDB_CLEAR +RPMDB_INIT +rm -rf "${TOPDIR}" + +runroot rpmbuild --quiet -bb \ + --define "pkg hello" \ + --define "reqs /usr/bin/hello" \ + /data/SPECS/deptest.spec + +runroot rpm -U --ignoreos --ignorearch --nodeps \ + --define "_transaction_color 3" \ + --define "_prefer_color 2" \ + /data/RPMS/hello-2.0-1.i686.rpm \ + /data/RPMS/hello-2.0-1.x86_64.rpm \ + "${TOPDIR}"/RPMS/noarch/deptest-hello-1.0-1.noarch.rpm + +runroot rpm -e hello.i686 +], +[0], +[], +[]) +AT_CLEANUP |