Commit Graph

9 Commits

Author SHA1 Message Date
Michal Domonkos adafe8d047 Replace AT_CHECK and AT_CLEANUP with RPMTEST_*
We're going to do some stuff before and after these macros in the next
commits/PRs so better do this beforehand.
2023-07-05 13:41:03 +03:00
Panu Matilainen 755359b5f0 Merge config filetype change tests sharing built content into common groups 2020-06-15 11:59:40 +02:00
Panu Matilainen a2c346b3cd Remove now redundant TOPDIR removals from tests
No longer needed as each test gets its own environment.
Lots of similar cleanup possible, but one thing at a time...
2020-06-12 13:18:56 +03:00
Panu Matilainen b13a81d02a Merge RPMDB_CLEAR into RPMDB_INIT, they're never used separately
If we need to init, we need an empty database. Having these separate
is a historical artifact from the early days of the test-suite.
2020-06-12 13:18:56 +03:00
Michal Marek 5b8b2bdd32 tests: Do not pass real pathnames to fakechroot commands
Fakechroot returns -ENOENT for such paths:

$ FAKECHROOT_BASE=$PWD/tests/testing fakechroot ls /not_an.rpm
/not_an.rpm
$ FAKECHROOT_BASE=$PWD/tests/testing fakechroot ls $PWD/not_an.rpm
ls: cannot access /home/mmarek/GIT/rpm/not_an.rpm: No such file or directory

Signed-off-by: Michal Marek <mmarek@suse.com>
2016-08-29 16:21:15 +02:00
Panu Matilainen 0936fbc7bb Axe the if-what jungle in rpmfiDecideFateIndex()
- Unless the file does not exist on disk, we cannot determine the
  correct action for config files and symlinks before we actually
  check them. Those are also the only types that *can* result in
  FA_ALTNAME/FA_SAVE action, anything else we can just create.
  Besides making the logic a whole lot easier to follow, it also
  fixes our remaining test-case failures. Who would've thought?
- Might be worth noting that this requires the pile of fsm fixes
  from previous commits to work.
2012-08-23 14:37:52 +03:00
Panu Matilainen d7c3b4aaa0 Simplify the non-modified config file vs directory test
- Replacing a directory with something else is more complicated than
  other cases and deserves tests of its own. For simplicity in
  the config cases, remove the "and back" part of the test, and
  now this test actually succeeds.
2012-08-23 11:58:59 +03:00
Panu Matilainen c4f18ab2de Doh, gotta love it when test-suite expectations are wrong.
- Clearly if we have three cats we should be seeing three outputs as well...
2012-08-23 11:58:52 +03:00
Panu Matilainen f6cf0a13cd Add a third set of config tests for file type changes testing
- Several (expected) breakages here too, some backups missing, and
  some redundant backups taken
- This is by no means complete set of the possible changes but
  gotta start someplace...
2012-08-21 12:30:04 +03:00