6 VPP_DIR=`dirname $0`/../../
10 SUDOCMD="sudo -H -u $2"
13 echo 'Building VCL test apps'
15 $SUDOCMD perl -pi -e 's/noinst_PROGRAMS/bin_PROGRAMS/g' $VPP_DIR/src/vcl.am
16 $SUDOCMD make dpdk-install-dev build-release
17 sudo sysctl -p$VPP_DIR/src/vpp/conf/80-vpp.conf
18 sudo modprobe uio_pci_generic
20 if [ "$2" = "vagrant" ] && [ -d "/home/vagrant" ] ; then
21 dot_bash_aliases="/home/$2/.bash_aliases"
22 echo "export WS_ROOT=$VPP_DIR" | $SUDOCMD tee $dot_bash_aliases
23 source $dot_bash_aliases