From 3365987ee5bc8ec66676f838d7eeefce377a76b9 Mon Sep 17 00:00:00 2001 From: Soren Hansen Date: Tue, 27 Jul 2010 12:26:53 +0200 Subject: Automatically choose the correct type of test (virtualenv or system). --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index fa11cf335..cd7e233e1 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,11 @@ with_venv=tools/with_venv.sh build: # Nothing to do -test: $(venv) +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: -- cgit