aboutsummaryrefslogtreecommitdiffstats
path: root/vagrant
diff options
context:
space:
mode:
authorMartin Pärtel <martin.partel@gmail.com>2017-03-14 00:09:20 +0000
committerMartin Pärtel <martin.partel@gmail.com>2017-03-14 00:09:20 +0000
commitef44d5b2b3ba4ff4f1c8d60f125f521be9cd0e78 (patch)
tree90c931c596a10004ff578cf57dd192c98353f193 /vagrant
parent3f10f219d18e42967c67349f6e5f4340769e524d (diff)
downloadbindfs-ef44d5b2b3ba4ff4f1c8d60f125f521be9cd0e78.tar.gz
Run tests on FreeBSD 10.3 and fix tests so they pass.
Fully fixes issue #51.
Diffstat (limited to 'vagrant')
-rw-r--r--vagrant/freebsd10_3/Vagrantfile31
-rwxr-xr-xvagrant/test.rb1
2 files changed, 32 insertions, 0 deletions
diff --git a/vagrant/freebsd10_3/Vagrantfile b/vagrant/freebsd10_3/Vagrantfile
new file mode 100644
index 0000000..87ba424
--- /dev/null
+++ b/vagrant/freebsd10_3/Vagrantfile
@@ -0,0 +1,31 @@
+# -*- mode: ruby -*-
+# vi: set ft=ruby :
+
+Vagrant.configure("2") do |config|
+ #config.vm.box = "freebsd/FreeBSD-11.0-STABLE" # doesn't set base_mac so can't use NAT networking :(
+ config.vm.box = "bento/freebsd-10.3"
+
+ config.vm.synced_folder ".", "/vagrant", disabled: true
+ config.vm.synced_folder "../../", "/bindfs",
+ type: "rsync",
+ rsync__auto: false,
+ rsync__exclude: ["vagrant"],
+ rsync__args: ["-av", "--delete-after"]
+
+ config.vm.provider "virtualbox" do |v|
+ v.name = "bindfs-freebsd10_3"
+ end
+
+ config.vm.provision "shell", inline: <<-SHELL
+ pkg update
+ pkg install -y fusefs-libs pkgconf ruby valgrind
+
+ kldload fuse.ko
+ echo 'fuse_load="YES"' >> /boot/loader.conf
+
+ sysctl vfs.usermount=1
+ echo vfs.usermount=1 >> /etc/sysctl.conf
+
+ pw groupmod operator -m vagrant # For access to /dev/fuse
+ SHELL
+end
diff --git a/vagrant/test.rb b/vagrant/test.rb
index 3d14776..eff2a82 100755
--- a/vagrant/test.rb
+++ b/vagrant/test.rb
@@ -39,6 +39,7 @@ unless specifically_selected_vms.empty?
end
puts "Running #{dirs.size} VMs in parallel: #{dirs.join(' ')}"
+puts "You can follow the progress of each VM by tailing vagrant/*/test.log"
puts "Note: if your terminal goes wonky after this command, type 'reset'"
mutex = Thread::Mutex.new # protects `$stdout` and `errors`
errors = []