]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Autogenerate augeas test case from default config files
authorDaniel P. Berrange <berrange@redhat.com>
Fri, 25 May 2012 10:14:15 +0000 (11:14 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Mon, 28 May 2012 10:07:12 +0000 (11:07 +0100)
commitde9758ae9b2cb0c7f9f8e15e4e69016f6e7fc2a8
treeff1de248411d3dc8099b4eeec46f7e084966923c
parent6c10c04c3944a2083b589b41e3f1b77c44165e03
Autogenerate augeas test case from default config files

When adding new config file parameters, the corresponding
additions to the augeas lens' are constantly forgotten.
Also there are augeas test cases, these don't catch the
error, since they too are never updated.

To address this, the augeas test cases need to be auto-generated
from the example config files.

* build-aux/augeas-gentest.pl: Helper to generate an
  augeas test file, substituting in elements from the
  example config files
* src/Makefile.am, daemon/Makefile.am: Switch to
  auto-generated augeas test cases
* daemon/test_libvirtd.aug, daemon/test_libvirtd.aug.in,
  src/locking/test_libvirt_sanlock.aug,
  src/locking/test_libvirt_sanlock.aug.in,
  src/lxc/test_libvirtd_lxc.aug,
  src/lxc/test_libvirtd_lxc.aug.in,
  src/qemu/test_libvirtd_qemu.aug,
  src/qemu/test_libvirtd_qemu.aug.in: Remove example
  config file data, replacing with a ::CONFIG:: placeholder

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
.gitignore
build-aux/augeas-gentest.pl [new file with mode: 0755]
daemon/Makefile.am
daemon/test_libvirtd.aug [deleted file]
daemon/test_libvirtd.aug.in [new file with mode: 0644]
src/Makefile.am
src/locking/test_libvirt_sanlock.aug.in [moved from src/locking/test_libvirt_sanlock.aug with 60% similarity]
src/lxc/test_libvirtd_lxc.aug [deleted file]
src/lxc/test_libvirtd_lxc.aug.in [new file with mode: 0644]
src/qemu/test_libvirtd_qemu.aug [deleted file]
src/qemu/test_libvirtd_qemu.aug.in [new file with mode: 0644]