There is a few test suites available to developers for testing a given version of libvirt:
make check (libvirt 6.6.0 and older)
ninja test (libvirt 6.7.0 and newer)in a source tree after compilation has finished. It doesn't really make functional testing but checks that large portions of the code not interacting directly with virtualization functions properly.