blob: 4121d18bb4d4afade2e73ba109050574424c39b9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
#!/bin/bash
##############################################################################
# Copyright (c) 2018 The Linux Foundation and others.
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# which accompanies this distribution, and is available at
# http://www.eclipse.org/legal/epl-v10.html
##############################################################################
set -e -o pipefail
OS_ID=$(grep '^ID=' /etc/os-release | cut -f2- -d= | sed -e 's/\"//g')
if ! [ -z ${DOCKER_TEST} ] ; then
sudo mount -o remount /dev/shm -o size=512M || true
echo "/dev/shm remounted"
fi
##container server node detection
grep search /etc/resolv.conf || true
if [ "${OS_ID}" == "ubuntu" ]; then
dpkg-query -W -f='${binary:Package}\t${Version}\n' || true
echo "************************************************************************"
echo "pip list:"
pip list || true
echo "************************************************************************"
echo "Contents of /var/cache/vpp/python/virtualenv/lib/python2.7/site-packages:"
ls -lth /var/cache/vpp/python/virtualenv/lib/python2.7/site-packages || true
echo "************************************************************************"
echo "Contents of br Downloads:"
ls -lth /w/Downloads || true
echo "************************************************************************"
echo "Contents of /w/dpdk for test folks:"
echo "************************************************************************"
ls -lth /w/dpdk || true
elif [ "${OS_ID}" == "centos" ]; then
yum list installed || true
pip list || true
elif [ "${OS_ID}" == "opensuse" ]; then
yum list installed || true
pip list || true
fi
##This will remove any previously installed dpdk for old branch builds
if [ "${GERRIT_BRANCH}" != "master" ]; then
if [ "${OS_ID}" == "ubuntu" ]; then
sudo apt-get -y remove vpp-dpdk-dev || true
sudo apt-get -y remove vpp-dpdk-dkms || true
sudo apt-get -y remove vpp-ext-deps || true
elif [ "${OS_ID}" == "centos" ]; then
sudo yum -y erase vpp-dpdk-devel || true
sudo yum -y erase vpp-ext-deps || true
sudo yum clean all || true
elif [ "${OS_ID}" == "opensuse" ]; then
sudo yum -y erase vpp-dpdk-devel || true
sudo yum -y erase vpp-ext-deps || true
fi
fi
|