Commit Graph

4 Commits

Author SHA1 Message Date
Evan Huus 8f40e2cd8d tools: permit setting BIN_DIR in the environment
For out-of-tree builds you have to pass the location of your build to our tools
like the fuzz script, valgrind script etc. Modify them so that the value can be
set in the environment rather than requiring a shell script flag.

Set the environment variable in the vagrant provision step, so that the scripts
Just Work (TM) in the VM.

Change-Id: If8ce6b278176085ba6dd994137b82fc989b80124
Reviewed-on: https://code.wireshark.org/review/9168
Reviewed-by: Evan Huus <eapache@gmail.com>
2015-06-26 06:52:58 +00:00
Evan Huus f613b92fd2 Tell vagrant that it's a dev environment
Put WIRESHARK_RUN_FROM_BUILD_DIRECTORY in the shell profile so that wireshark
knows it's running from a build directory (which it otherwise sometimes doesn't
for out-of-tree cmake). This fixes lua and other things in the vagrant build.

Change-Id: I69775612d0f9161ce9b30c32122aee52a1106cbc
Reviewed-on: https://code.wireshark.org/review/9148
Reviewed-by: Evan Huus <eapache@gmail.com>
2015-06-25 20:04:45 +00:00
Evan Huus 47abcfc747 Vagrant setup fixes
- add license headers to the scripts
- don't mount `.` into the VM manually, vagrant already puts it in /vagrant/
  for us, just use that.
- build with -j3, slightly more efficient even with two cores

Change-Id: I43580ade7ae2635696072b39e4f18a401a030a85
Reviewed-on: https://code.wireshark.org/review/9127
Reviewed-by: Evan Huus <eapache@gmail.com>
2015-06-25 15:24:06 +00:00
Evan Huus 5aaaa550fd Add basic Vagrant configuration
For non-linux developers this should somewhat simplify development with e.g.
valgrind and other useful tools.

Change-Id: I973ab7412ad9a61f0892c25c079ea3424208abd1
Reviewed-on: https://code.wireshark.org/review/9117
Reviewed-by: Evan Huus <eapache@gmail.com>
2015-06-25 02:53:40 +00:00