summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew McDermott <andrew.mcdermott@linaro.org>2014-12-01 18:43:12 +0000
committerAndrew McDermott <andrew.mcdermott@linaro.org>2014-12-01 18:43:12 +0000
commit5ab83a2369cc89e37b67039c8106e0f3b5656523 (patch)
tree2a21e0b973b6bab4c13f80d9bc13ad9179ca65d7
parent4f66a374da9ec8dcb87a7c0f31221a5f780b22d9 (diff)
foo
-rw-r--r--add-openstack-deps.yaml32
-rwxr-xr-xin-chroot.sh11
-rw-r--r--lavatest.yaml4
3 files changed, 44 insertions, 3 deletions
diff --git a/add-openstack-deps.yaml b/add-openstack-deps.yaml
new file mode 100644
index 0000000..b576c05
--- /dev/null
+++ b/add-openstack-deps.yaml
@@ -0,0 +1,32 @@
+metadata:
+ name: add-openstack-deps
+ maintainer:
+ - Andrew McDermott <andrew.mcdermott@linaro.org>
+ format: "Lava-Test-Shell Test Definition 1.0"
+ version: 1.0
+ description: "Add Rally/Tempest dependencies to UEC image"
+ devices:
+ - mustang
+ environment:
+ - lava-test-shell
+
+run:
+ steps:
+ - "set -x"
+ - "id"
+ - 'DEBIAN_FRONTEND=noninteractive apt-get update -o Dpkg::Options::="--force-confnew" --force-yes'
+ - 'DEBIAN_FRONTEND=noninteractive apt-get install --yes wget nbd-client git'
+ - 'wget --progress=dot -e dotbytes=10M $LAVA_CLOUD_IMG_URL'
+ - 'modprobe nbd max_part=63'
+ - 'qemu-nbd -c /dev/nbd0 $LAVA_CLOUD_IMG_URL'
+ - 'mount /dev/nbd0p1 /mnt'
+ - 'git clone http://git.linaro.org/leg/openstack/ubuntu-arm64-chroot'
+ - '~/ubuntu-arm64-chroot/geronimo /mnt'
+ - 'umount /mnt'
+ - 'nbd-client -d /dev/nbd0'
+ - 'modprobe nbd max_part=63'
+
+params:
+ SIZE: '3G'
+ LAVA_SLEEP_FOR_ACCESS: 3600
+ LAVA_CLOUD_IMG_URL: 'http://people.linaro.org/~andrew.mcdermott/lava/images/trusty-server-cloudimg-arm64-disk1.img'
diff --git a/in-chroot.sh b/in-chroot.sh
new file mode 100755
index 0000000..1b197f3
--- /dev/null
+++ b/in-chroot.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+set -xu
+
+apt-get update
+apt-get install --yes git
+apt-get install --yes build-essential
+apt-get install --yes python-setuptools
+apt-get install --yes wget git
+apt-get install --yes libxml2-dev libxslt1-dev python-lxml libssl-dev libffi-dev python-dev
+apt-get build-dep python-novaclient python-glanceclient python-keystoneclient
diff --git a/lavatest.yaml b/lavatest.yaml
index bd5b4cf..12a0924 100644
--- a/lavatest.yaml
+++ b/lavatest.yaml
@@ -5,10 +5,8 @@ metadata:
format: "Lava-Test-Shell Test Definition 1.0"
version: 1.0
description: "Expand UEC image"
- os:
- - ubuntu
devices:
- - kvm
+ - kvm mustang
environment:
- lava-test-shell