##// 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
@@ -1,62 +1,63 b''
1 1 syntax: glob
2 2
3 3 *.elc
4 4 *.tmp
5 5 *.orig
6 6 *.rej
7 7 *~
8 8 *.mergebackup
9 9 *.o
10 10 *.so
11 11 *.dll
12 12 *.exe
13 13 *.pyd
14 14 *.pyc
15 15 *.pyo
16 16 *$py.class
17 17 *.swp
18 18 *.prof
19 19 *.zip
20 20 \#*\#
21 21 .\#*
22 22 tests/.coverage*
23 23 tests/annotated
24 24 tests/*.err
25 25 tests/htmlcov
26 26 build
27 27 contrib/hgsh/hgsh
28 contrib/vagrant/.vagrant
28 29 dist
29 30 packages
30 31 doc/common.txt
31 32 doc/*.[0-9]
32 33 doc/*.[0-9].txt
33 34 doc/*.[0-9].gendoc.txt
34 35 doc/*.[0-9].{x,ht}ml
35 36 MANIFEST
36 37 MANIFEST.in
37 38 patches
38 39 mercurial/__version__.py
39 40 mercurial/hgpythonlib.h
40 41 mercurial.egg-info
41 42 .DS_Store
42 43 tags
43 44 cscope.*
44 45 i18n/hg.pot
45 46 locale/*/LC_MESSAGES/hg.mo
46 47 hgext/__index__.py
47 48
48 49 # files installed with a local --pure build
49 50 mercurial/base85.py
50 51 mercurial/bdiff.py
51 52 mercurial/diffhelpers.py
52 53 mercurial/mpatch.py
53 54 mercurial/osutil.py
54 55 mercurial/parsers.py
55 56
56 57 syntax: regexp
57 58 ^\.pc/
58 59 ^\.(pydev)?project
59 60
60 61 # hackable windows distribution additions
61 62 ^hg-python
62 63 ^hg.py$
General Comments 0
You need to be logged in to leave comments. Login now