rpm-ostree/tests/common
Jonathan Lebon 5cb1fa5460 libtest: add build_rpm function
Having to prepare RPMs in advance separately from the tests that use
them severely limits our ability to test various cases and to iterate
quickly when creating tests.

Add a new `build_rpm` function which can basically build the RPM on the
fly and update the yum repo afterwards. It makes it trivial to test
things like package updates:

    build_rpm foo 1.0 1
    <stuff>
    build_rpm foo 1.0 2
    <stuff>

The RPMs are all created inside the temporary test directory and thus
cleaned up on exit.

I'm doing this in a separate commit because it's the most important diff
of the transition and might be easy to lose in the larger diff where we
move all the tests to make use of this.

Closes: #854
Approved by: cgwalters
2017-06-29 16:16:54 +00:00
..
compose vmcheck: add new test for override remove 2017-06-05 20:48:50 +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 libtest: add build_rpm function 2017-06-29 16:16:54 +00:00
libvm.sh libtest: add build_rpm function 2017-06-29 16:16:54 +00:00