diskimage-builder/tests
Ian Wienand 76ae374413 functests: skip qcow2 generically but add specific test
We somewhat discussed skipping qcow2 generation previously in
I9372e195913798a851c96e62eee89029e067baa1.  As recent issues with PPC
testing have shown, we are not actually testing the "vm" element and
hence the bootloader path in the functional tests.

I don't think we need to test this on every element; it overlaps
somewhat with the testing done by the nodepool jobs which build full
images and boot them.  I also didn't want to introduce a separate run
for this.  Thus it seems valuable to at least have one element
enhanced to do this installation and conversion in our default tests
for basic sanity.

This disables qcow generation by default, as per the other change, but
allows an element to drop a file that will override the output
formats.  The Xenial element is modified to produce a qcow2 using
this, and also introduces a dependency on the "vm" element so it tries
to install the bootloader.

We now exit if the .qcow2 fails to build as well.

Change-Id: I1a6acefe52f8c696c39b2d592fdc7ae32a87e6fe
2017-03-23 13:49:24 +11:00
..
elements/fake-os tests/elements/fake-os: add '/tmp' as top level dir 2016-05-13 11:17:42 +10:00
install_test_deps.sh Refactor: block-device handling (partitioning) 2017-01-24 19:59:10 +00:00
README.rst Rework functional test runner 2016-02-19 13:50:09 +11:00
run_dib_library_tests.sh Rework functional test runner 2016-02-19 13:50:09 +11:00
run_functests.sh functests: skip qcow2 generically but add specific test 2017-03-23 13:49:24 +11:00
run_output_format_test.sh Add squashfs output image format 2016-12-19 07:21:39 +00:00

DIB Testing
===========

There are several interfaces for testing various parts of DIB

 * run_dib_library_tests.sh : run unit-tests for internal
     diskimage-builder library functions

 * run_functests.sh : run functional testing provided by elements

 * run_output_format_test.sh : run a test of image conversion
     (requires docker)