blob: 34a1b112d8806da2fe86aa3ac39bf6c323cb8a70 [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
Bob Badourd4320ba2023-03-01 10:09:49 -080018$(call declare-1p-target,$(aapt2_results))
Bob Badoura61f3e42022-03-31 14:28:03 -070019
Dan Willemsen5cc17002018-10-09 13:53:53 -070020aapt2_results :=
Adam Lesinski04465e72017-11-02 15:23:36 -070021
Adam Lesinski2427dce2017-11-30 15:10:28 -080022include $(call all-makefiles-under,$(LOCAL_PATH))