summaryrefslogtreecommitdiff
path: root/tools/aapt2/Android.mk
diff options
context:
space:
mode:
authorAdam Lesinski <adamlesinski@google.com>2017-11-02 15:23:36 -0700
committerAdam Lesinski <adamlesinski@google.com>2017-11-02 15:33:26 -0700
commit04465e7f252eb1531c9387bbb4bc5170e685087d (patch)
treecc28831dc1b4ed80f4a30df8fd2d09d26f226599 /tools/aapt2/Android.mk
parent178e67835a954511a6567064f3081ecd7796f737 (diff)
AAPT2: Introduce command to run unit tests
This command will execute the aapt2_tests with a parameter to emit XML test results into the out/dist directory. Test: manual Change-Id: I10cf119bb47b7698ddd91b1adf7323e51d169970
Diffstat (limited to 'tools/aapt2/Android.mk')
-rw-r--r--tools/aapt2/Android.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/aapt2/Android.mk b/tools/aapt2/Android.mk
new file mode 100644
index 000000000000..e0c9d1c04498
--- /dev/null
+++ b/tools/aapt2/Android.mk
@@ -0,0 +1,7 @@
+include $(CLEAR_VARS)
+
+.PHONY: aapt2_run_host_unit_tests
+aapt2_run_host_unit_tests: PRIVATE_GTEST_OPTIONS := --gtest_output=xml:$(DIST_DIR)/gtest/aapt2_host_unit_tests_result.xml
+aapt2_run_host_unit_tests: $(HOST_OUT_NATIVE_TESTS)/aapt2_tests/aapt2_tests
+ -$(HOST_OUT_NATIVE_TESTS)/aapt2_tests/aapt2_tests $(PRIVATE_GTEST_OPTIONS) > /dev/null 2>&1
+