summaryrefslogtreecommitdiff
path: root/Vagrantfile
diff options
context:
space:
mode:
authorDaniele Di Proietto <diproiettod@vmware.com>2015-08-07 19:40:37 +0100
committerJoe Stringer <joestringer@nicira.com>2015-08-07 12:58:42 -0700
commit548f9fe7d28b30e18d32d60746f250bda92b7b4d (patch)
tree1b3054ded1534f0624f23a0ff86bc7c46401fa20 /Vagrantfile
parentd7c5426b945a6abeb51e7c9d82fadddde11df404 (diff)
downloadopenvswitch-548f9fe7d28b30e18d32d60746f250bda92b7b4d.tar.gz
Vagrantfile: Add test_ovs_system_userspace provision.
Add 'test_ovs_system_userspace' provision. Command: # vagrant provision --provision-with=test_ovs_system_userspace will run "make check-system-userspace" in the vagrant launched VM. It may be more convenient to run this tests inside a vm rather than in the host, because they interact with system networking. Suggested-by: Joe Stringer <joestringer@nicira.com> Signed-off-by: Daniele Di Proietto <diproiettod@vmware.com> Acked-by: Joe Stringer <joestringer@nicira.com>
Diffstat (limited to 'Vagrantfile')
-rw-r--r--Vagrantfile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Vagrantfile b/Vagrantfile
index 03e8693a6..e8c104de7 100644
--- a/Vagrantfile
+++ b/Vagrantfile
@@ -47,6 +47,11 @@ systemctl start openvswitch
systemctl status openvswitch
SCRIPT
+$test_ovs_system_userspace = <<SCRIPT
+cd ~/build
+make check-system-userspace
+SCRIPT
+
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.define "fedora-20" do |fedora|
fedora.vm.box = "chef/fedora-20"
@@ -54,6 +59,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
fedora.vm.provision "configure_ovs", type: "shell", inline: $configure_ovs
fedora.vm.provision "build_ovs", type: "shell", inline: $build_ovs
fedora.vm.provision "test_ovs_kmod", type: "shell", inline: $test_kmod
+ fedora.vm.provision "test_ovs_system_userspace", type: "shell", inline: $test_ovs_system_userspace
fedora.vm.provision "install_rpm", type: "shell", inline: $install_rpm
end
end