##// END OF EJS Templates
contrib/vagrant: use Vagrant for running tests on virtual machine...
anatoly techtonik -
r21874:8da01b6e default
parent child Browse files
Show More
@@ -0,0 +1,4 b''
1 Run Mercurial tests with Vagrant:
2
3 $ vagrant up
4 $ vagrant ssh -c ./run-tests.sh
@@ -0,0 +1,14 b''
1 # -*- mode: ruby -*-
2
3 Vagrant.configure('2') do |config|
4 # Debian 7.4 32-bit i386 without configuration management software
5 config.vm.box = "puppetlabs/debian-7.4-32-nocm"
6 #config.vm.box = "pnd/debian-wheezy32-basebox"
7 config.vm.hostname = "tests"
8
9 config.vm.define "tests" do |conf|
10 conf.vm.provision :file, source: "run-tests.sh", destination:"run-tests.sh"
11 conf.vm.provision :shell, path: "provision.sh"
12 conf.vm.synced_folder "../..", "/hgshared"
13 end
14 end
@@ -0,0 +1,10 b''
1 #!/bin/sh
2 # This scripts is used to install dependencies for
3 # testing Mercurial. Mainly used by Vagrant (see
4 # Vagrantfile for details).
5
6 export DEBIAN_FRONTEND=noninteractive
7 apt-get update
8 apt-get install -y -q python-dev unzip
9 # run-tests.sh is added by Vagrantfile
10 chmod +x run-tests.sh
@@ -0,0 +1,13 b''
1 #!/bin/sh
2 # This scripts is used to setup temp directory in memory
3 # for running Mercurial tests in vritual machine managed
4 # by Vagrant (see Vagrantfile for details).
5
6 cd /hgshared
7 make local
8 cd tests
9 mkdir /tmp/ram
10 sudo mount -t tmpfs -o size=100M tmpfs /tmp/ram
11 export TMPDIR=/tmp/ram
12 ./run-tests.py -l --time
13
@@ -25,6 +25,7 b' tests/*.err'
25 tests/htmlcov
25 tests/htmlcov
26 build
26 build
27 contrib/hgsh/hgsh
27 contrib/hgsh/hgsh
28 contrib/vagrant/.vagrant
28 dist
29 dist
29 packages
30 packages
30 doc/common.txt
31 doc/common.txt
General Comments 0
You need to be logged in to leave comments. Login now