forked from osmocom/wireshark
vagrant: Mount synced folder under home
Change-Id: Ib533f762f110d45d3daae6b5ccb6e3d243f60058 Reviewed-on: https://code.wireshark.org/review/29361 Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
parent
4d6c253ca9
commit
65a95123ce
|
@ -15,11 +15,14 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
|
|||
# Permit X11 forwarding so running the graphical Wireshark works
|
||||
config.ssh.forward_x11 = true
|
||||
|
||||
# Mounting to /vagrant (the default) won't work for building a
|
||||
# Debian package. Let's be consistent for all boxes.
|
||||
config.vm.synced_folder ".", "/vagrant", disabled: true
|
||||
config.vm.synced_folder ".", "/home/vagrant/wireshark", type: "virtualbox"
|
||||
|
||||
# Install and build the various things (including wireshark!)
|
||||
config.vm.define "ubuntu", autostart: false do |deb|
|
||||
deb.vm.box = "ubuntu/xenial64"
|
||||
# XXX: Mounting to /vagrant (the default) won't work for building a
|
||||
# Debian package.
|
||||
|
||||
deb.vm.provision "shell" do |s|
|
||||
s.path = 'tools/debian-setup.sh'
|
||||
|
|
|
@ -14,6 +14,6 @@ grep -q WIRESHARK_RUN_FROM_BUILD_DIRECTORY ~/.profile || echo "export WIRESHARK_
|
|||
grep -q WIRESHARK_BIN_DIR ~/.profile || echo "export WIRESHARK_BIN_DIR=~/build/run" >> ~/.profile
|
||||
mkdir -p build
|
||||
cd build
|
||||
cmake -DENABLE_CCACHE=ON /vagrant/
|
||||
cmake -DENABLE_CCACHE=ON ../wireshark
|
||||
make -j6
|
||||
make test
|
||||
|
|
Loading…
Reference in New Issue