summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <thiago@mapbox.com>2016-10-04 17:26:08 +0300
committerThiago Marcos P. Santos <tmpsantos@gmail.com>2016-10-05 11:12:16 +0300
commit5829c0dbc6e7785cec5af12891ba2ead784d1a69 (patch)
treec01a0f92e093316b44a23e0aac27ae38c5b538ce /Makefile
parentdd604a7b3650617ab3fef81eef1a63fc28761396 (diff)
downloadqtlocation-mapboxgl-5829c0dbc6e7785cec5af12891ba2ead784d1a69.tar.gz
[build] Re-add benchmark tests to the buildsystem
Probably lost on the cmake migration
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 0f4cefa4b9..6d191d80f9 100644
--- a/Makefile
+++ b/Makefile
@@ -285,6 +285,10 @@ linux: glfw-app render offline
test: $(LINUX_BUILD)
$(NINJA) $(NINJA_ARGS) -j$(JOBS) -C $(LINUX_OUTPUT_PATH) mbgl-test
+.PHONY: benchmark
+benchmark: $(LINUX_BUILD)
+ $(NINJA) $(NINJA_ARGS) -j$(JOBS) -C $(LINUX_OUTPUT_PATH) mbgl-benchmark
+
ifneq (,$(shell which gdb))
GDB = gdb -batch -return-child-result -ex 'set print thread-events off' -ex 'run' -ex 'thread apply all bt' --args
endif
@@ -295,6 +299,12 @@ run-test: run-test-*
run-test-%: test
$(GDB) $(LINUX_OUTPUT_PATH)/mbgl-test --gtest_catch_exceptions=0 --gtest_filter=$*
+.PHONY: run-benchmark
+run-benchmark: run-benchmark-.
+
+run-benchmark-%: benchmark
+ $(GDB) $(LINUX_OUTPUT_PATH)/mbgl-benchmark --benchmark_filter=$*
+
.PHONY: render
render: $(LINUX_BUILD)
$(NINJA) $(NINJA_ARGS) -j$(JOBS) -C $(LINUX_OUTPUT_PATH) mbgl-render