summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorDevin Carlen <devin.carlen@gmail.com>2010-07-28 00:32:17 +0000
committerDevin Carlen <devin.carlen@gmail.com>2010-07-28 00:32:17 +0000
commit96a643709211df2196f5cbc0a193a0d0ec4e0f06 (patch)
tree35eddf221f9364af4b7e10f7bf4e023123ea9c34 /Makefile
parent40dfe6316fae4b14f9fa694653341349a86d55ab (diff)
parent4041902703576d955b2d4b9fd78b6961c0c03377 (diff)
Merged trunk
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile31
1 files changed, 31 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 000000000..cd7e233e1
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,31 @@
+venv=.nova-venv
+with_venv=tools/with_venv.sh
+
+build:
+ # Nothing to do
+
+default_test_type:= $(shell if [ -e $(venv) ]; then echo venv; else echo system; fi)
+
+test: test-$(default_test_type)
+
+test-venv: $(venv)
+ $(with_venv) python run_tests.py
+
+test-system:
+ python run_tests.py
+
+clean:
+ rm -rf _trial_temp
+ rm -rf keys
+ rm -rf instances
+ rm -rf networks
+ rm -f run_tests.err.log
+
+clean-all: clean
+ rm -rf $(venv)
+
+$(venv):
+ @echo "You need to install the Nova virtualenv before you can run this."
+ @echo ""
+ @echo "Please run tools/install_venv.py"
+ @exit 1