From 9a6cf7ee6f14d252a9161dda1730e4de368149fd Mon Sep 17 00:00:00 2001 From: Gregory Haynes Date: Thu, 7 May 2015 21:43:18 +0000 Subject: [PATCH] Add debian build test case Weve had some regressions recently with the changes in the debian element. Lets tests that we can build debian images. Change-Id: I048e7a32ecb4088ec1b1e3b1efdf146187b093db --- elements/debian/test-elements/build-succeeds/README.rst | 1 + elements/debian/test-elements/build-succeeds/element-deps | 1 + tests/install_test_deps.sh | 4 ++-- 3 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 elements/debian/test-elements/build-succeeds/README.rst create mode 100644 elements/debian/test-elements/build-succeeds/element-deps diff --git a/elements/debian/test-elements/build-succeeds/README.rst b/elements/debian/test-elements/build-succeeds/README.rst new file mode 100644 index 000000000..8ef6b15b2 --- /dev/null +++ b/elements/debian/test-elements/build-succeeds/README.rst @@ -0,0 +1 @@ +Test that we can successfully build a debian image. diff --git a/elements/debian/test-elements/build-succeeds/element-deps b/elements/debian/test-elements/build-succeeds/element-deps new file mode 100644 index 000000000..df967b96a --- /dev/null +++ b/elements/debian/test-elements/build-succeeds/element-deps @@ -0,0 +1 @@ +base diff --git a/tests/install_test_deps.sh b/tests/install_test_deps.sh index ac665068a..26a906356 100755 --- a/tests/install_test_deps.sh +++ b/tests/install_test_deps.sh @@ -4,5 +4,5 @@ set -eux set -o pipefail sudo apt-get update || true -sudo apt-get install -y qemu-utils kpartx || \ - sudo yum -y install qemu-img kpartx +sudo apt-get install -y qemu-utils kpartx debootstrap || \ + sudo yum -y install qemu-img kpartx debootstrap