2017-11-30 15:10:28 -08:00
|
|
|
LOCAL_PATH := $(call my-dir)
|
|
|
|
|
2017-11-02 15:23:36 -07:00
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
2018-10-09 13:53:53 -07:00
|
|
|
aapt2_results := $(call intermediates-dir-for,PACKAGING,aapt2_run_host_unit_tests)/result.xml
|
|
|
|
|
2017-11-30 15:10:28 -08:00
|
|
|
# Target for running host unit tests on post/pre-submit.
|
2017-11-02 15:23:36 -07:00
|
|
|
.PHONY: aapt2_run_host_unit_tests
|
2018-10-09 13:53:53 -07:00
|
|
|
aapt2_run_host_unit_tests: $(aapt2_results)
|
|
|
|
|
|
|
|
$(call dist-for-goals,aapt2_run_host_unit_tests,$(aapt2_results):gtest/aapt2_host_unit_tests_result.xml)
|
|
|
|
|
|
|
|
# Always run the tests again, even if they haven't changed
|
|
|
|
$(aapt2_results): .KATI_IMPLICIT_OUTPUTS := $(aapt2_results)-nocache
|
|
|
|
$(aapt2_results): $(HOST_OUT_NATIVE_TESTS)/aapt2_tests/aapt2_tests
|
|
|
|
-$(HOST_OUT_NATIVE_TESTS)/aapt2_tests/aapt2_tests --gtest_output=xml:$@ > /dev/null 2>&1
|
|
|
|
|
|
|
|
aapt2_results :=
|
2017-11-02 15:23:36 -07:00
|
|
|
|
2017-11-30 15:10:28 -08:00
|
|
|
include $(call all-makefiles-under,$(LOCAL_PATH))
|