From: Anders F Björklund Date: Tue, 12 Jun 2018 21:51:35 +0000 (+0200) Subject: Add a Vagrantfile for testing on FreeBSD X-Git-Tag: v3.5~48 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c82159810394bea01e504f2be0588afa04be4774;p=thirdparty%2Fccache.git Add a Vagrantfile for testing on FreeBSD --- diff --git a/misc/freebsd/README b/misc/freebsd/README new file mode 100644 index 000000000..2faebe6cc --- /dev/null +++ b/misc/freebsd/README @@ -0,0 +1,12 @@ +How to use Vagrant to test ccache on FreeBSD +============================================ + +vagrant up +vagrant ssh + +vagrant@freebsd:~ % git clone https://github.com/ccache/ccache.git +vagrant@freebsd:~ % cd ccache +vagrant@freebsd:~/ccache % ./autogen.sh +vagrant@freebsd:~/ccache % ./configure +vagrant@freebsd:~/ccache % gmake +vagrant@freebsd:~/ccache % gmake test diff --git a/misc/freebsd/Vagrantfile b/misc/freebsd/Vagrantfile new file mode 100644 index 000000000..da126cdc2 --- /dev/null +++ b/misc/freebsd/Vagrantfile @@ -0,0 +1,23 @@ +# -*- mode: ruby -*- +# vi: set ft=ruby : + +Vagrant.configure("2") do |config| + config.vm.guest = :freebsd + config.vm.synced_folder ".", "/vagrant", id: "vagrant-root", disabled: true + config.vm.box = "freebsd/FreeBSD-12.0-CURRENT" + config.ssh.shell = "sh" + config.vm.base_mac = "080027D14C66" + + config.vm.provider :virtualbox do |vb| + vb.customize ["modifyvm", :id, "--memory", "1024"] + vb.customize ["modifyvm", :id, "--cpus", "1"] + vb.customize ["modifyvm", :id, "--hwvirtex", "on"] + vb.customize ["modifyvm", :id, "--audio", "none"] + vb.customize ["modifyvm", :id, "--nictype1", "virtio"] + vb.customize ["modifyvm", :id, "--nictype2", "virtio"] + end + + config.vm.provision "shell", inline: <<-SHELL + pkg install -y git gmake bash autoconf + SHELL +end