summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2014-06-03 18:10:34 +0200
committerKonstantin Käfer <mail@kkaefer.com>2014-06-03 18:10:34 +0200
commite105e256bef603af2d3133e7cca9f083a1e599b2 (patch)
tree3611f0c007f4ea65f441ba21c567e31929f2670f /Makefile
parent7a4a833f39730d9676458e4ca5ee595329649aed (diff)
downloadqtlocation-mapboxgl-e105e256bef603af2d3133e7cca9f083a1e599b2.tar.gz
run tests with correct working dir
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 2 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index b6e034da85..d48f62a85e 100644
--- a/Makefile
+++ b/Makefile
@@ -33,14 +33,9 @@ run-tests: test
$${FILE}; \
done
-test/%:
+test/%: build/test/Makefile
$(MAKE) -C build/test BUILDTYPE=$(BUILDTYPE) V=$(V) $*
- build/$(BUILDTYPE)/test_$*
-
-# Only runs headless test case
-run-headless-test: build/test/Makefile
- $(MAKE) -C build/test BUILDTYPE=$(BUILDTYPE) V=$(V) headless
- build/$(BUILDTYPE)/test_headless
+ (cd build/$(BUILDTYPE) && ./test_$*)
##### Makefile builds ##########################################################