1948161b65
- Existing Vagrantfile is symbolic link to the default Vagrantfile. - In order to run the multi-host vcl test, change Vagrantfile -> Vagrantfile.vcl_test - Fix socket_test.sh & vppcom bugs. Change-Id: I965b7f799135c86e989c08bf6c5909677ef38dea Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
26 lines
589 B
Bash
26 lines
589 B
Bash
#!/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/uri.am
|
|
$SUDOCMD make dpdk-install-dev 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
|
|
|