]> xenbits.xensource.com Git - libvirt.git/commit
tests: add virfilecachetest
authorPavel Hrdina <phrdina@redhat.com>
Wed, 12 Apr 2017 13:58:29 +0000 (15:58 +0200)
committerPavel Hrdina <phrdina@redhat.com>
Wed, 26 Jul 2017 13:33:45 +0000 (15:33 +0200)
commit478f0c5b8575fcb121beeb6b805435fcea59a23c
treeacbdb95c60ac99714c2e2271ee464689279b85dc
parentac3eb2ab241aec0cfe30cc68f3e20c1e4b4c001b
tests: add virfilecachetest

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@redhat.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
tests/Makefile.am
tests/virfilecachedata/5f3154560c130108b282a2aa15b1658aa16923e46497dd8deeb6be287ddb0ca0.cache [new file with mode: 0644]
tests/virfilecachedata/9ca150bf3119b75dcac8e8bae4bc3a28e75bc3e262757001e8b953580f5e75ef.cache [new symlink]
tests/virfilecachemock.c [new file with mode: 0644]
tests/virfilecachetest.c [new file with mode: 0644]