libvirt/tests/xlconfigdata
Ian Campbell daeace5c5d libxl: Support cmdline= in xl config files
... and consolidate the cmdline/extra/root parsing to facilitate doing
so.

The logic is the same as xl's parse_cmdline from the current xen.git master
branch (e6f0e099d2c17de47fd86e817b1998db903cab61).

On the formatting side switch to producing cmdline= instead of extra=.

Update a few tests and add serveral more.
  - test-cmdline is added to test the exclusive use of cmdline.
  - test-fullvirt-direct-kernel-boot.cfg is updated due to the switch
    on the formatting side and now tests the exclusive use of cmdline=.
  - Tests are added for both paravirt and fullvirt where the .cfg uses
    extra= and (paravirt only) root=. These are format (xl->xml) only
    since the inverse will generate cmdline= hence is not a round trip
    (which was already true if using root=, which used to generate
    extra= on the way back).
  - Tests are added for both paravirt and fullvirt where the .cfg
    declares cmdline= as well as bogus extra= and (paravirt only) root=
    entries which should be ignored. Again these are format only tests
    since the inverse won't include the bogus lines.

The last two bullets here required splitting the DO_TEST macro into
two halves, as is done in the xmconfigtest.c case.

In order to introduce a use of VIR_WARN for logging I had to add
virerror.h and VIR_LOG_INIT.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
2016-01-21 10:48:44 -07:00
..
test-fullvirt-direct-kernel-boot-bogus-extra.cfg libxl: Support cmdline= in xl config files 2016-01-21 10:48:44 -07:00
test-fullvirt-direct-kernel-boot-bogus-extra.xml libxl: Support cmdline= in xl config files 2016-01-21 10:48:44 -07:00
test-fullvirt-direct-kernel-boot-extra.cfg libxl: Support cmdline= in xl config files 2016-01-21 10:48:44 -07:00
test-fullvirt-direct-kernel-boot-extra.xml libxl: Support cmdline= in xl config files 2016-01-21 10:48:44 -07:00
test-fullvirt-direct-kernel-boot.cfg libxl: Support cmdline= in xl config files 2016-01-21 10:48:44 -07:00
test-fullvirt-direct-kernel-boot.xml Xen: tests: use latest XEND_CONFIG_VERSION in xm/xl tests 2015-12-17 21:22:33 -07:00
test-fullvirt-multiusb.cfg Xen: tests: use latest XEND_CONFIG_VERSION in xm/xl tests 2015-12-17 21:22:33 -07:00
test-fullvirt-multiusb.xml Xen: tests: use latest XEND_CONFIG_VERSION in xm/xl tests 2015-12-17 21:22:33 -07:00
test-new-disk.cfg Xen: tests: use latest XEND_CONFIG_VERSION in xm/xl tests 2015-12-17 21:22:33 -07:00
test-new-disk.xml Xen: tests: use latest XEND_CONFIG_VERSION in xm/xl tests 2015-12-17 21:22:33 -07:00
test-paravirt-cmdline-bogus-extra-root.cfg libxl: Support cmdline= in xl config files 2016-01-21 10:48:44 -07:00
test-paravirt-cmdline-bogus-extra-root.xml libxl: Support cmdline= in xl config files 2016-01-21 10:48:44 -07:00
test-paravirt-cmdline-extra-root.cfg libxl: Support cmdline= in xl config files 2016-01-21 10:48:44 -07:00
test-paravirt-cmdline-extra-root.xml libxl: Support cmdline= in xl config files 2016-01-21 10:48:44 -07:00
test-paravirt-cmdline.cfg libxl: Support cmdline= in xl config files 2016-01-21 10:48:44 -07:00
test-paravirt-cmdline.xml libxl: Support cmdline= in xl config files 2016-01-21 10:48:44 -07:00
test-paravirt-maxvcpus.cfg Xen: support maxvcpus in xm and xl config 2015-12-18 17:52:00 -07:00
test-paravirt-maxvcpus.xml Xen: support maxvcpus in xm and xl config 2015-12-18 17:52:00 -07:00
test-spice-features.cfg Xen: tests: use latest XEND_CONFIG_VERSION in xm/xl tests 2015-12-17 21:22:33 -07:00
test-spice-features.xml Xen: tests: use latest XEND_CONFIG_VERSION in xm/xl tests 2015-12-17 21:22:33 -07:00
test-spice.cfg Xen: tests: use latest XEND_CONFIG_VERSION in xm/xl tests 2015-12-17 21:22:33 -07:00
test-spice.xml Xen: tests: use latest XEND_CONFIG_VERSION in xm/xl tests 2015-12-17 21:22:33 -07:00
test-vif-rate.cfg xenconfig: support vif bandwidth in xm and xl parser and formatter 2016-01-08 18:56:00 -07:00
test-vif-rate.xml xenconfig: support vif bandwidth in xm and xl parser and formatter 2016-01-08 18:56:00 -07:00