8266e14adc
We do not have any testing inside DIB for testing disk-image-create logic. Lets do some smoke testing for all our supported image formats. Also adding a run_functests.sh so we can extend this later without editing the jenkins job. Change-Id: Ie491e27f00bde54f73af6b47c9696ec04d973b14
22 lines
504 B
Bash
Executable File
22 lines
504 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -eux
|
|
set -o pipefail
|
|
|
|
source $(dirname $0)/test_functions.bash
|
|
|
|
test_formats="tar raw qcow2"
|
|
if [ -z "$(which qemu-img)" ]; then
|
|
echo "Warning: No qemu-img binary found, cowardly refusing to run tests."
|
|
exit 0
|
|
fi
|
|
|
|
for format in '' $test_formats; do
|
|
build_test_image $format
|
|
echo "Test passed for output formats '$format'."
|
|
done
|
|
|
|
combined_format=$(echo $test_formats | tr ' ' ',')
|
|
build_test_image $combined_format
|
|
echo "Test passed for output format '$combined_format'."
|