[libvirt] [PATCH 03/11] tests: add virfilecachetest

Jiri Denemark jdenemar at redhat.com
Mon Jul 17 14:28:09 UTC 2017


On Mon, Jul 10, 2017 at 14:46:42 +0200, Pavel Hrdina wrote:
> Implements 3 test cases that covers how the cache is used.
> 
> We have to mock unlink() function because the caching code unlinks
> files that are no longer valid and we don't want to do it in our tests.
> 
> Signed-off-by: Pavel Hrdina <phrdina at redhat.com>
> ---
>  tests/Makefile.am                                  |  12 ++
>  ...a15b1658aa16923e46497dd8deeb6be287ddb0ca0.cache |   1 +
>  ...ae4bc3a28e75bc3e262757001e8b953580f5e75ef.cache |   1 +
>  tests/virfilecachetest.c                           | 238 +++++++++++++++++++++
>  4 files changed, 252 insertions(+)
>  create mode 100644 tests/virfilecachedata/5f3154560c130108b282a2aa15b1658aa16923e46497dd8deeb6be287ddb0ca0.cache
>  create mode 120000 tests/virfilecachedata/9ca150bf3119b75dcac8e8bae4bc3a28e75bc3e262757001e8b953580f5e75ef.cache
>  create mode 100644 tests/virfilecachetest.c

virfilecachemock.c is missing, otherwise the patch looks OK.

Jirka




More information about the libvir-list mailing list