diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2012-08-07 10:21:36 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2012-08-07 10:28:59 +0300 |
commit | 72621fcf32a6fa4fdda16f6b6729e7c6fe0943ea (patch) | |
tree | c5ea35b14a4bc36ed456b2d797ebefe2c96472a2 /tests | |
parent | 4fbb58c7e6ee7d1bb565b27e4f81dcf2fee93995 (diff) | |
download | rpm-72621fcf32a6fa4fdda16f6b6729e7c6fe0943ea.tar.gz rpm-72621fcf32a6fa4fdda16f6b6729e7c6fe0943ea.tar.bz2 rpm-72621fcf32a6fa4fdda16f6b6729e7c6fe0943ea.zip |
Add tests for invalid --relocate detection and --badreloc functionality
Diffstat (limited to 'tests')
-rw-r--r-- | tests/rpmi.at | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/tests/rpmi.at b/tests/rpmi.at index 71c2bef9a..5ff90bc25 100644 --- a/tests/rpmi.at +++ b/tests/rpmi.at @@ -206,3 +206,36 @@ runroot rpm -q versiontest AT_CLEANUP # TODO: the same with epoch vs no epoch + +AT_SETUP([rpm -U with invalid --relocate]) +AT_KEYWORDS([install relocate]) +AT_CHECK([ +RPMDB_CLEAR +RPMDB_INIT + +runroot rpmbuild --quiet -bb /data/SPECS/hello-script.spec + +runroot rpm -U --test --ignoreos --relocate /usr=/opt \ + "${TOPDIR}"/RPMS/noarch/hello-script-1.0-1.noarch.rpm +], +[1], +[], +[ path /usr in package hello-script-1.0-1.noarch is not relocatable +]) +AT_CLEANUP + +AT_SETUP([rpm -U --badreloc with invalid --relocate]) +AT_KEYWORDS([install relocate]) +AT_CHECK([ +RPMDB_CLEAR +RPMDB_INIT + +runroot rpmbuild --quiet -bb /data/SPECS/hello-script.spec + +runroot rpm -U --test --ignoreos --badreloc --relocate /usr=/opt \ + "${TOPDIR}"/RPMS/noarch/hello-script-1.0-1.noarch.rpm +], +[0], +[], +[]) +AT_CLEANUP |