summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2014-04-15 18:47:12 -0400
committerKonstantin Käfer <mail@kkaefer.com>2014-04-15 18:47:12 -0400
commit4f6d4e8abef99e14d9cbd3af9128ba2f2333138d (patch)
tree2163e4f37fdf5baa64070c351416b042b8ac7160 /Makefile
parent56393007f1b0b36b3f8c34bed48db6bea1da4f9f (diff)
downloadqtlocation-mapboxgl-4f6d4e8abef99e14d9cbd3af9128ba2f2333138d.tar.gz
first cut at headless rendering
refs #141
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 11 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index b47e84c8db..7faf0c739d 100644
--- a/Makefile
+++ b/Makefile
@@ -14,16 +14,23 @@ llmr: config.gypi llmr.gyp
##### Test cases ###############################################################
-# Runs the test cases
-test: config.gypi test/test.gyp
+build/test/Makefile: 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
+# Runs all test cases
run-tests: test
@for FILE in build/Release/test_*; do \
$${FILE}; \
done
+# Only runs headless test case
+run-headless-test: build/test/Makefile
+ make -C build/test BUILDTYPE=Debug V=$(V) headless
+ build/Debug/test_headless
+
##### Makefile builds ##########################################################
@@ -60,8 +67,9 @@ lproj: config.gypi linux/llmr-app.gyp
clean:
-rm -rf ./build/Release
+ -rm -rf ./build/Debug
distclean: clean
-rm -rf ./build
-.PHONY: llmr test linux
+.PHONY: llmr test linux build/test/Makefile