2 ##############################################################################
3 # Copyright (c) 2018 The Linux Foundation and others.
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 ##############################################################################
12 OS_ID=$(grep '^ID=' /etc/os-release | cut -f2- -d= | sed -e 's/\"//g')
14 if ! [ -z ${DOCKER_TEST} ] ; then
15 mount -o remount /dev/shm -o size=2G || true
16 echo "/dev/shm remounted"
19 ##container server node detection
20 grep search /etc/resolv.conf || true
22 if [ "${OS_ID}" == "ubuntu" ]; then
23 dpkg-query -W -f='${binary:Package}\t${Version}\n' || true
24 echo "************************************************************************"
27 echo "************************************************************************"
28 echo "Contents of /var/cache/vpp/python/virtualenv/lib/python2.7/site-packages:"
29 ls -lth /var/cache/vpp/python/virtualenv/lib/python2.7/site-packages || true
30 echo "************************************************************************"
31 echo "Contents of br Downloads:"
32 ls -lth /w/Downloads || true
33 echo "************************************************************************"
34 echo "Contents of /w/dpdk for test folks:"
35 echo "************************************************************************"
36 ls -lth /w/dpdk || true
37 elif [ "${OS_ID}" == "centos" ]; then
38 yum list installed || true
40 elif [ "${OS_ID}" == "opensuse" ]; then
41 yum list installed || true
45 ##This will remove any previously installed dpdk for old branch builds
47 if [ "${GERRIT_BRANCH}" != "master" ]; then
48 if [ "${OS_ID}" == "ubuntu" ]; then
49 apt-get -y remove vpp-dpdk-dev || true
50 apt-get -y remove vpp-dpdk-dkms || true
51 apt-get -y remove vpp-ext-deps || true
52 elif [ "${OS_ID}" == "centos" ]; then
53 yum -y erase vpp-dpdk-devel || true
54 yum -y erase vpp-ext-deps || true
56 elif [ "${OS_ID}" == "opensuse" ]; then
57 yum -y erase vpp-dpdk-devel || true
58 yum -y erase vpp-ext-deps || true