From c82159810394bea01e504f2be0588afa04be4774 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Anders=20F=20Bj=C3=B6rklund?= Date: Tue, 12 Jun 2018 23:51:35 +0200 Subject: [PATCH] Add a Vagrantfile for testing on FreeBSD --- misc/freebsd/README | 12 ++++++++++++ misc/freebsd/Vagrantfile | 23 +++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 misc/freebsd/README create mode 100644 misc/freebsd/Vagrantfile 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 -- 2.47.2