rpm-ostree/tests/common
Colin Walters 0d4d6be94f Implement file triggers (%transfiletriggerin) for layered pkgs
File triggers are a post-RHEL7 thing; more information at
http://rpm.org/user_doc/file_triggers.html

There are two notable users I've been testing this with;
`glib2` and `vagrant`.  The `vagrant` one is more immediately urgent,
since it makes `vagrant-libvirt` work, which I currently rely on
for my workstation dev.

I've tested things successfully with `vagrant`, and I did verify that we run the
`glib2` ones when doing `rpm-ostree ex container`.

Long term, more transaction file triggers are likely to live in
"base" packages like `glib2`.  We don't implement those yet, but
extending this to do that shouldn't be too hard.

There was *significant* what I'd call reverse engineering of the
implementation in librpm.  The file triggers code there is spread out
and abstracted in a few different places in the code.  I found
trying to understand what header values were involved to be quite
tricky.

There are some corner cases like multiple patterns that I *think*
this does correctly, but could use more validation.  The main
question I had was - is it required that the patterns for e.g.
`%transfiletriggerin` and `%transfiletriggerun` be identical?

Closes: https://github.com/projectatomic/rpm-ostree/issues/648

Closes: #869
Approved by: jlebon
2017-07-27 20:58:09 +00:00
..
libtest-core.sh tests: Use libtest-core.sh from ostree 2017-05-19 21:37:53 +00:00
libtest.c tests: add libtest.c for binary tests 2017-06-29 16:16:54 +00:00
libtest.h tests: add libtest.c for binary tests 2017-06-29 16:16:54 +00:00
libtest.sh Implement file triggers (%transfiletriggerin) for layered pkgs 2017-07-27 20:58:09 +00:00
libvm.sh vmcheck/test-basic.sh: adjust for new polkit policy 2017-07-27 17:10:41 +00:00