d0140c171bdfca6234fd112f178571ecfe082728
[ci-management.git] / jjb / scripts / setup_vpp_ubuntu_docker_test.sh
1 #!/bin/bash
2 ##############################################################################
3 # Copyright (c) 2018 The Linux Foundation and others.
4 #
5 # All rights reserved. This program and the accompanying materials
6 # are made available under the terms of the Eclipse Public License v1.0
7 # which accompanies this distribution, and is available at
8 # http://www.eclipse.org/legal/epl-v10.html
9 ##############################################################################
10 set -e -o pipefail
11
12 OS_ID=$(grep '^ID=' /etc/os-release | cut -f2- -d= | sed -e 's/\"//g')
13
14 if ! [ -z ${DOCKER_TEST} ] ; then
15                 mount -o remount /dev/shm -o size=512M || true
16         echo "/dev/shm remounted"
17 fi
18
19 if [ "${OS_ID}" == "ubuntu" ]; then
20     dpkg-query -W -f='${binary:Package}\t${Version}\n'
21     pip list
22 elif [ "${OS_ID}" == "centos" ]; then
23     yum list installed
24     pip list
25 elif [ "${OS_ID}" == "opensuse" ]; then
26     pip list
27 fi
28 if [ "x${IS_CSIT_VPP_JOB}" == "xTrue" ]; then
29         (cd dpdk ; apt-get download vpp-dpdk-dkms > /dev/null 2>&1) || true
30     ls -l dpdk/*.deb || true
31     echo "csit vpp-dpdk-dkms package download"
32 fi