Adam Lesinski | 2427dce | 2017-11-30 15:10:28 -0800 | [diff] [blame] | 1 | LOCAL_PATH := $(call my-dir) |
| 2 | |
Adam Lesinski | 04465e7 | 2017-11-02 15:23:36 -0700 | [diff] [blame] | 3 | include $(CLEAR_VARS) |
| 4 | |
Dan Willemsen | 5cc1700 | 2018-10-09 13:53:53 -0700 | [diff] [blame] | 5 | aapt2_results := $(call intermediates-dir-for,PACKAGING,aapt2_run_host_unit_tests)/result.xml |
| 6 | |
Adam Lesinski | 2427dce | 2017-11-30 15:10:28 -0800 | [diff] [blame] | 7 | # Target for running host unit tests on post/pre-submit. |
Adam Lesinski | 04465e7 | 2017-11-02 15:23:36 -0700 | [diff] [blame] | 8 | .PHONY: aapt2_run_host_unit_tests |
Dan Willemsen | 5cc1700 | 2018-10-09 13:53:53 -0700 | [diff] [blame] | 9 | aapt2_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 | |
| 18 | aapt2_results := |
Adam Lesinski | 04465e7 | 2017-11-02 15:23:36 -0700 | [diff] [blame] | 19 | |
Adam Lesinski | 2427dce | 2017-11-30 15:10:28 -0800 | [diff] [blame] | 20 | include $(call all-makefiles-under,$(LOCAL_PATH)) |