blob: b165c6bed22053f0ece4b78f66b52da975ee1f62 [file] [log] [blame]
Adam Lesinski2427dce2017-11-30 15:10:28 -08001LOCAL_PATH := $(call my-dir)
2
Adam Lesinski04465e72017-11-02 15:23:36 -07003include $(CLEAR_VARS)
4
Dan Willemsen5cc17002018-10-09 13:53:53 -07005aapt2_results := $(call intermediates-dir-for,PACKAGING,aapt2_run_host_unit_tests)/result.xml
6
Adam Lesinski2427dce2017-11-30 15:10:28 -08007# Target for running host unit tests on post/pre-submit.
Adam Lesinski04465e72017-11-02 15:23:36 -07008.PHONY: aapt2_run_host_unit_tests
Dan Willemsen5cc17002018-10-09 13:53:53 -07009aapt2_run_host_unit_tests: $(aapt2_results)
10
11$(call dist-for-goals,aapt2_run_host_unit_tests,$(aapt2_results):gtest/aapt2_host_unit_tests_result.xml)
12
13# Always run the tests again, even if they haven't changed
14$(aapt2_results): .KATI_IMPLICIT_OUTPUTS := $(aapt2_results)-nocache
15$(aapt2_results): $(HOST_OUT_NATIVE_TESTS)/aapt2_tests/aapt2_tests
16 -$(HOST_OUT_NATIVE_TESTS)/aapt2_tests/aapt2_tests --gtest_output=xml:$@ > /dev/null 2>&1
17
18aapt2_results :=
Adam Lesinski04465e72017-11-02 15:23:36 -070019
Adam Lesinski2427dce2017-11-30 15:10:28 -080020include $(call all-makefiles-under,$(LOCAL_PATH))