Add test case for scriptlet behavior
authorPanu Matilainen <pmatilai@redhat.com>
Wed, 21 Mar 2012 08:04:14 +0000 (10:04 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Wed, 21 Mar 2012 08:10:07 +0000 (10:10 +0200)
commitc411382194ab678cfe87b20dd2967a51f2bd412e
tree083afd0cdfc47c7dd3382042d21746319b01dec9
parent2f20f6e6b2cc6f26794678d1db16659c484a001c
Add test case for scriptlet behavior

- The test-root has a shell but rpm doesn't know about it, add a
  fakeshell metapackage that provides it. Should come in handy for
  other cases as well, up to now we've been limited to lua scripts only.
- Test that all the "normal" scripts get executed, in expected order
  and with expected arguments, on install, upgrade and erase.
- This would've saved the rather embarrassing breakage with commit
  274dbf557d1cac90f7c278f9b6d6af05997d92df at least, but better
  late than never as they say... It also serves to highlight and
  document  the arguably broken arguments to %pre- and %posttrans
  scripts (ie always 0)
tests/Makefile.am
tests/data/SPECS/fakeshell.spec [new file with mode: 0644]
tests/data/SPECS/scripts.spec [new file with mode: 0644]
tests/rpmscript.at [new file with mode: 0644]
tests/rpmtests.at