summaryrefslogtreecommitdiff
path: root/automated
diff options
context:
space:
mode:
authorJosep Puigdemont <josep.puigdemont@linaro.org>2017-02-23 15:44:30 +0100
committerMilosz Wasilewski <milosz.wasilewski@linaro.org>2017-02-23 16:28:11 +0000
commitb0daa860db52a2b14b92ec793e30c422a9d24756 (patch)
tree826dca1ebdd39e88162ad4056d9c2574721cba5b /automated
parent33a0a1e9f2b6538c5b8e7412c9366ab0aa3faf14 (diff)
nginx-odp-dpdk.yaml: do not install kernel headers
Until now the test installed kernel headers from a hardcoded source. We should require the job calling his test to install the kernel headers, whether they come from a hw-pack, a private repo, or somewhere else. At the same time define configurable parameters for the test. Change-Id: I28dbaa55d71683c23b4d59b188fcebf5fd302a6e Signed-off-by: Josep Puigdemont <josep.puigdemont@linaro.org>
Diffstat (limited to 'automated')
-rw-r--r--automated/linux/nginx-server/nginx-odp-dpdk.yaml15
1 files changed, 7 insertions, 8 deletions
diff --git a/automated/linux/nginx-server/nginx-odp-dpdk.yaml b/automated/linux/nginx-server/nginx-odp-dpdk.yaml
index 35d1e3d..9f65e0b 100644
--- a/automated/linux/nginx-server/nginx-odp-dpdk.yaml
+++ b/automated/linux/nginx-server/nginx-odp-dpdk.yaml
@@ -1,3 +1,4 @@
+# NOTE: when calling this test, kernel-headers must have been installed
metadata:
name: httperf-nginx-ofp-odp-dpdk
format: Lava-Test-Shell Test Definition 1.0
@@ -21,6 +22,10 @@ install:
- sysstat
- wget
+params:
+ MAX_CORES: 0
+ VLAND_NAME: vlan_one
+
run:
steps:
- wget -O - http://deb.opendataplane.org/odp.key|sudo apt-key add -
@@ -28,15 +33,9 @@ run:
- echo "deb http://ftp.debian.org/debian jessie-backports main" > /etc/apt/sources.list.d/backports.list
- apt-get update
- apt-get -t jessie-backports install -y libssl1.0.0 libssl-dev
- - wget http://people.linaro.org/~anders.roxell/ubuntu-v4.4/linux-headers-4.4.0-31_4.4.0-31.50_all.deb
- - dpkg -i linux-headers-4.4.0-31_4.4.0-31.50_all.deb
- - wget http://people.linaro.org/~anders.roxell/x86_64-ofp-2/overlay.tar.gz
- - tar xzf overlay.tar.gz -C /
- - depmod -a
- sysctl -w vm.nr_hugepages=1024
- modprobe uio
- apt-get install -y dpdk-igb-uio-dkms dpdk pciutils
- - export CONFIG_TYPE=${CONFIG_TYPE:-odp-dpdk}
- - export MAX_CORES=${MAX_CORES:-0}
- - export VLAND_NAME=${VLAND_NAME:-vlan_one}
+ - export CONFIG_TYPE=odp-dpdk
+ - export MAX_CORES VLAND_NAME
- lava-test-case httperf-nginx-server --shell ./automated/linux/nginx-server/nginx-server.sh