summaryrefslogtreecommitdiffstats
path: root/extras/vagrant/vcl_test.sh
diff options
context:
space:
mode:
authorDave Wallace <dwallacelf@gmail.com>2017-09-06 01:59:43 -0400
committerFlorin Coras <florin.coras@gmail.com>2017-09-08 05:42:13 +0000
commit3079a64e19e997e6735b633377285bb5718f4067 (patch)
treea86cc861837fa649e5a8e8f2f8da6342238557e8 /extras/vagrant/vcl_test.sh
parentab7b8d93cf1098970bc17fb4937376bb1ff33a21 (diff)
Fix socket_test.sh vagrant based multi-host tests.
Change-Id: I8ef75a0c702098030c6814c127d3443820122327 Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
Diffstat (limited to 'extras/vagrant/vcl_test.sh')
-rw-r--r--extras/vagrant/vcl_test.sh23
1 files changed, 23 insertions, 0 deletions
diff --git a/extras/vagrant/vcl_test.sh b/extras/vagrant/vcl_test.sh
new file mode 100644
index 00000000000..9fb924aeddb
--- /dev/null
+++ b/extras/vagrant/vcl_test.sh
@@ -0,0 +1,23 @@
+#!/bin/bash
+
+# Get Command Line arguements if present
+VPP_DIR=$1
+if [ "x$1" != "x" ]; then
+ VPP_DIR=$1
+else
+ VPP_DIR=`dirname $0`/../../
+fi
+
+if [ "x$2" != "x" ]; 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 build-release
+echo "export WS_ROOT=$VPP_DIR" | sudo -H -u vagrant tee /home/vagrant/.bash_aliases
+source /home/vagrant/.bash_aliases
+sudo cp $VPP_DIR/src/vpp/conf/80-vpp.conf /etc/sysctl.d
+sudo sysctl -p/etc/sysctl.d/80-vpp.conf
+sudo modprobe uio_pci_generic