summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2012-08-20 10:56:17 +0300
committerPanu Matilainen <pmatilai@redhat.com>2012-08-20 11:06:40 +0300
commitabe15e3a62c6428daa31bbaced4f1ab40dce6033 (patch)
tree5a5b7ffc34b1d9f4f6c61b4171f64bdd1d09e4d6 /tests
parentfe62087ac9210eced259c38364df8affef7a4685 (diff)
downloadlibrpm-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.at8
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]