1 Running CSIT locally in Vagrant
2 -------------------------------
7 Run all commands from command line.
9 1. Download and install virtualbox from `official page
10 <https://www.virtualbox.org/wiki/Downloads>`_.
11 To verify the installation, run VBoxManage:
15 "C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" --version
21 Tested version: 6.1.16r140961
23 2. Download and install latest vagrant `from official page
24 <https://www.vagrantup.com/downloads.html>`_.
25 To verify the installtion, run::
29 Tested version: Vagrant 2.2.15
31 3. Install vagrant plugins::
33 vagrant plugin install vagrant-vbguest
34 vagrant plugin install vagrant-cachier
36 If you are behind a proxy, install proxyconf plugin and update proxy
37 settings in Vagrantfile::
39 vagrant plugin install vagrant-proxyconf
41 Set up and run Vagrant virtualbox
42 ======================================
44 Before running following commands change working directory to Vagrant specific directory
45 (from within root CSIT directory) ::
49 This allows Vagrant to automatically find Vagrantfile and corresponding Vagrant environment.
51 Start the provisioning::
53 vagrant up --provider virtualbox
55 Your new VPP Device virtualbox machine will be created and configured.
56 Master branch of csit project will be cloned inside virtual machine into
58 /home/vagrant/csit folder.
60 Once the process is finished, you can login to the box using::
64 In case you need to completely rebuild the box and start from scratch,
68 vagrant up --provider virtualbox
72 ==============================
74 From within the box run the tests using::
76 cd /home/vagrant/csit/resources/libraries/bash/entry
77 ./bootstrap_vpp_device.sh csit-vpp-device-master-ubuntu2004-1n-vbox
79 To run only selected tests based on TAGS, export environment variables before
80 running the test suite::
82 export GERRIT_EVENT_TYPE="comment-added"
83 export GERRIT_EVENT_COMMENT_TEXT="devicetest memif"
85 # now it will run tests, selected based on tags
86 ./bootstrap_vpp_device.sh csit-vpp-device-master-ubuntu2004-1n-vbox