blob: dbe93c780e914d217e9a1e904b05940c09a852bd [file] [log] [blame]
Brian Muramatsu5df641c2011-12-28 15:46:57 -08001# Copyright (C) 2011 The Android Open Source Project
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15LOCAL_PATH := $(call my-dir)
16
Qiwen Zhao8ea2bec2015-03-30 10:51:01 -070017# Test XMLs, native executables, and packages will be placed in this
18# directory before creating the final CTS distribution.
19CTS_TESTCASES_OUT := $(HOST_OUT)/cts-testcases
20
21# Scanners of source files for tests which are then inputed into
22# the XML generator to produce test XMLs.
23CTS_NATIVE_TEST_SCANNER := $(HOST_OUT_EXECUTABLES)/cts-native-scanner
24CTS_JAVA_TEST_SCANNER := $(HOST_OUT_EXECUTABLES)/cts-java-scanner
25CTS_JAVA_TEST_SCANNER_DOCLET := $(HOST_OUT_JAVA_LIBRARIES)/cts-java-scanner-doclet.jar
26
27# Generator of test XMLs from scanner output.
28CTS_XML_GENERATOR := $(HOST_OUT_EXECUTABLES)/cts-xml-generator
29
30# File indicating which tests should be blacklisted due to problems.
31CTS_EXPECTATIONS := cts/tests/expectations/knownfailures.txt
32
33# File indicating which tests should be blacklisted due to unsupported abi.
34CTS_UNSUPPORTED_ABIS := cts/tests/expectations/unsupportedabis.txt
35
36# Holds the target architecture to build for.
37CTS_TARGET_ARCH := $(TARGET_ARCH)
38
Brian Muramatsu5df641c2011-12-28 15:46:57 -080039# Functions to get the paths of the build outputs.
40
41define cts-get-lib-paths
42 $(foreach lib,$(1),$(HOST_OUT_JAVA_LIBRARIES)/$(lib).jar)
43endef
44
Brett Chabot87f44512012-11-16 16:00:02 -080045define cts-get-ui-lib-paths
46 $(foreach lib,$(1),$(CTS_TESTCASES_OUT)/$(lib).jar)
47endef
48
Brian Muramatsu5df641c2011-12-28 15:46:57 -080049define cts-get-native-paths
Christopher Ferris286aca52014-10-15 18:08:41 -070050 $(foreach exe,$(1),$(call intermediates-dir-for,EXECUTABLES,$(exe),,,$(3))/$(exe)$(2))
Brian Muramatsu5df641c2011-12-28 15:46:57 -080051endef
52
53define cts-get-package-paths
54 $(foreach pkg,$(1),$(CTS_TESTCASES_OUT)/$(pkg).apk)
55endef
56
57define cts-get-test-xmls
58 $(foreach name,$(1),$(CTS_TESTCASES_OUT)/$(name).xml)
59endef
Svetoslav12c82d42013-12-20 12:34:52 -080060
61define cts-get-executable-paths
62 $(foreach executable,$(1),$(CTS_TESTCASES_OUT)/$(executable))
63endef
Jarkko Pöyry59a8dbb2014-10-13 22:01:15 -070064
65define cts-get-deqp-test-xmls
66 $(foreach api,$(1),$(CTS_TESTCASES_OUT)/com.drawelements.deqp.$(api).xml)
67endef