vpp/extras/vagrant/vcl_test.sh
Damjan Marion 4a6cb83d33 rename vpp-dpdk-dev to vpp-ext-deps
We need to have new tenants in the development package.
This is first of series of patches which will allow us to have multiple
external libs and tools packaged for developer's convenience.

Change-Id: I884bd75fba96005bbf8cea92774682b2228e0e22
Signed-off-by: Damjan Marion <damarion@cisco.com>
2018-09-20 14:30:54 +02:00

26 lines
589 B
Bash
Executable File

#!/bin/bash
if [ -n "$1" ]; then
VPP_DIR=$1
else
VPP_DIR=`dirname $0`/../../
fi
if [ -n "$2" ]; then
SUDOCMD="sudo -H -u $2"
fi
echo 'Building VCL test apps'
cd $VPP_DIR
$SUDOCMD perl -pi -e 's/noinst_PROGRAMS/bin_PROGRAMS/g' $VPP_DIR/src/vcl.am
$SUDOCMD make install-ext-deps build-release
sudo sysctl -p$VPP_DIR/src/vpp/conf/80-vpp.conf
sudo modprobe uio_pci_generic
if [ "$2" = "vagrant" ] && [ -d "/home/vagrant" ] ; then
dot_bash_aliases="/home/$2/.bash_aliases"
echo "export WS_ROOT=$VPP_DIR" | $SUDOCMD tee $dot_bash_aliases
source $dot_bash_aliases
fi