]> git.ipfire.org Git - thirdparty/libvirt.git/commit
meson: tests: add file access test setup
authorPavel Hrdina <phrdina@redhat.com>
Tue, 28 Jul 2020 12:29:32 +0000 (14:29 +0200)
committerPavel Hrdina <phrdina@redhat.com>
Mon, 3 Aug 2020 07:27:06 +0000 (09:27 +0200)
commit9d406981165221e6f1a40e6cf3f7e3653855c872
tree93b2e70707500e0d60ecb0f39cee860afd7b7d9a
parent59cafec0a43809d540a8202b769a8de428287d5e
meson: tests: add file access test setup

We need to modify check-file-access.py to be usable as wrapper for
libvirt tests. This way we can run the tests using this command:

    meson test --setup access

which will run all tests using check-file-access.py as a wrapper.

With autotools all file access are written into single file for all
tests and compared once the whole test suite is done.

With Meson we will compare the file access after every single test
because it is used as wrapper now. That requires writing the file
access into separate files for every single test as they are executed
in parallel.

Since the wrapper is used for all tests in Meson including tests outside
of tests directory we have to check for presence of the output file.
We should also cleanup after ourselves.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Neal Gompa <ngompa13@gmail.com>
Makefile.am
scripts/check-file-access.py
tests/Makefile.am
tests/meson.build
tests/virtestmock.c