From abe15e3a62c6428daa31bbaced4f1ab40dce6033 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Mon, 20 Aug 2012 10:56:17 +0300 Subject: 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. --- tests/rpmconfig.at | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests') 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] -- cgit v1.2.3