summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2014-05-02 13:41:45 +0200
committerKonstantin Käfer <mail@kkaefer.com>2014-05-02 13:41:45 +0200
commit93e0c49faa2c657e87c55a881ea06ae9ef2f70f4 (patch)
treea59924414621e3b98960af16e0caf0b591f695ba /Makefile
parent70109542291d3698e7e41b456dc22fc153cbc3ce (diff)
downloadqtlocation-mapboxgl-93e0c49faa2c657e87c55a881ea06ae9ef2f70f4.tar.gz
add variant test
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index eb75256992..c16c3f87c3 100644
--- a/Makefile
+++ b/Makefile
@@ -18,14 +18,18 @@ build/test/Makefile: src common config.gypi test/test.gyp
deps/run_gyp test/test.gyp --depth=. -Goutput_dir=.. --generator-output=./build/test -f make
test: build/test/Makefile
- make -C build/test V=$(V) test
+ make -C build/test BUILDTYPE=$(BUILDTYPE) V=$(V) test
# Runs all test cases
run-tests: test
- @for FILE in build/Release/test_*; do \
+ @for FILE in build/$(BUILDTYPE)/test_*; do \
$${FILE}; \
done
+test/%:
+ 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=Debug V=$(V) headless