~bgh/nova/qmanager-rbp-trunk

« back to all changes in this revision

Viewing changes to run_tests.sh

  • Committer: Tarmac
  • Author(s): Monty Taylor
  • Date: 2010-07-28 08:32:40 UTC
  • mfrom: (181.1.8 fixes-for-deb-packaging)
  • Revision ID: hudson@openstack.org-20100728083240-m8pa0khhoq5e2xbz
Tags: 0.9.0
Got the tree set for debian packaging.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash 
 
2
 
1
3
venv=.nova-venv
2
4
with_venv=tools/with_venv.sh
3
5
 
4
 
build:
5
 
        # Nothing to do
6
 
 
7
 
default_test_type:= $(shell if [ -e $(venv) ]; then echo venv; else echo system; fi)
8
 
 
9
 
test: test-$(default_test_type)
10
 
 
11
 
test-venv: $(venv)
12
 
        $(with_venv) python run_tests.py
13
 
 
14
 
test-system:
15
 
        python run_tests.py
16
 
 
17
 
clean:
18
 
        rm -rf _trial_temp
19
 
        rm -rf keys
20
 
        rm -rf instances
21
 
        rm -rf networks
22
 
        rm -f run_tests.err.log
23
 
 
24
 
clean-all: clean
25
 
        rm -rf $(venv)
26
 
 
27
 
MANIFEST.in:
28
 
        [ -d .bzr ] || (echo "Must be a bzr checkout" ; exit 1)
29
 
        bzr ls --kind=file -VR | while read f; do echo include "$$f"; done > $@
30
 
 
31
 
sdist: MANIFEST.in
32
 
        python setup.py sdist
33
 
 
34
 
$(venv):
35
 
        @echo "You need to install the Nova virtualenv before you can run this."
36
 
        @echo ""
37
 
        @echo "Please run tools/install_venv.py"
38
 
        @exit 1
39
 
 
40
 
.PHONY: MANIFEST.in
 
6
if [ -e ${venv} ]; then
 
7
  ${with_venv} python run_tests.py
 
8
else  
 
9
  echo "You need to install the Nova virtualenv before you can run this."
 
10
  echo ""
 
11
  echo "Please run tools/install_venv.py"
 
12
  exit 1
 
13
fi