diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2012-08-20 10:56:17 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2012-08-20 11:06:40 +0300 |
commit | abe15e3a62c6428daa31bbaced4f1ab40dce6033 (patch) | |
tree | 5a5b7ffc34b1d9f4f6c61b4171f64bdd1d09e4d6 /tests | |
parent | fe62087ac9210eced259c38364df8affef7a4685 (diff) | |
download | librpm-tizen-abe15e3a62c6428daa31bbaced4f1ab40dce6033.tar.gz librpm-tizen-abe15e3a62c6428daa31bbaced4f1ab40dce6033.tar.bz2 librpm-tizen-abe15e3a62c6428daa31bbaced4f1ab40dce6033.zip |
Test that the %config backup contents are what we expect
- Note we're only checking the contents where backups *should* be
created, not much point checking buggy behavior.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/rpmconfig.at | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/rpmconfig.at b/tests/rpmconfig.at index 4c314eebe..15bdbf494 100644 --- a/tests/rpmconfig.at +++ b/tests/rpmconfig.at @@ -119,11 +119,13 @@ echo "otherstuff" > "${RPMTEST}"/etc/my.conf cat "${cf}" runroot rpm -U "${TOPDIR}"/RPMS/noarch/configtest-2.0-1.noarch.rpm cat "${cf}" +cat "${cf}.rpmsave" ], [0], [foo-1.0 otherstuff foo-2.0 +otherstuff ], [warning: /etc/my.conf saved as /etc/my.conf.rpmsave] ) @@ -288,11 +290,13 @@ echo "otherstuff" > "${RPMTEST}"/etc/my.conf cat "${cf}" runroot rpm -U "${TOPDIR}"/RPMS/noarch/configtest-2.0-1.noarch.rpm cat "${cf}" +cat "${cf}.rpmnew" ], [0], [foo-1.0 otherstuff otherstuff +foo-2.0 ], [warning: /etc/my.conf created as /etc/my.conf.rpmnew] ) @@ -481,11 +485,13 @@ runroot rpm -U \ "${TOPDIR}"/RPMS/noarch/configtest-A-2.0-1.noarch.rpm \ "${TOPDIR}"/RPMS/noarch/configtest-B-2.0-1.noarch.rpm cat "${cf}" +cat "${cf}.rpmsave" ], [0], [foo-1.0 otherstuff foo-2.0 +otherstuff ], [warning: /etc/my.conf saved as /etc/my.conf.rpmsave] ) @@ -567,11 +573,13 @@ runroot rpm -U \ "${TOPDIR}"/RPMS/noarch/configtest-A-2.0-1.noarch.rpm \ "${TOPDIR}"/RPMS/noarch/configtest-B-2.0-1.noarch.rpm cat "${cf}" +cat "${cf}.rpmnew" ], [0], [foo-1.0 otherstuff otherstuff +foo-2.0 ], [warning: /etc/my.conf created as /etc/my.conf.rpmnew warning: /etc/my.conf created as /etc/my.conf.rpmnew] |