Add a basic reinstall test to test-suite

- this currently fails due to commit e16695e932,
  on reinstall element header vs db header mismatch, adding this as
  a reminder to fix it...
This commit is contained in:
Panu Matilainen 2010-04-14 12:24:37 +03:00
parent 97a8544322
commit a0ed26b894
1 changed files with 17 additions and 0 deletions

View File

@ -65,6 +65,23 @@ runroot rpm -i \
AT_CLEANUP
# ------------------------------
# reinstall a noarch package (with no files)
AT_SETUP([rpm -U --replacepkgs])
AT_KEYWORDS([rpmdb install])
AT_CHECK([
RPMDB_CLEAR
RPMDB_INIT
tpkg="foo-1.0-1.noarch.rpm"
cp "${RPMDATA}/RPMS/${tpkg}" "${RPMTEST}"
runroot rpm -i "${tpkg}" && runroot rpm -U --replacepkgs "${tpkg}"
],
[0])
AT_CLEANUP
# ------------------------------
# install a package into a local rpmdb