1# Copyright (C) 2008 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
17# Reusable Sensor test classes and helpers
18
19include $(CLEAR_VARS)
20
21LOCAL_MODULE := cts-sensors-tests
22
23LOCAL_MODULE_TAGS := tests
24
25LOCAL_MODULE_PATH := $(TARGET_OUT_DATA_APPS)
26
27LOCAL_STATIC_JAVA_LIBRARIES := ctsdeviceutil
28
29LOCAL_JAVA_LIBRARIES := platform-test-annotations
30
31LOCAL_SDK_VERSION := current
32
33# TODO: sensors need to be refactored out into their own namespace: android.hardware.sensors.cts
34LOCAL_SRC_FILES := $(call all-java-files-under, src/android/hardware/cts/helpers)
35LOCAL_SRC_FILES += \
36    src/android/hardware/cts/SensorTestCase.java \
37    src/android/hardware/cts/SingleSensorTests.java \
38    src/android/hardware/cts/SensorIntegrationTests.java \
39    src/android/hardware/cts/SensorBatchingTests.java \
40    src/android/hardware/cts/SensorTest.java \
41    src/android/hardware/cts/SensorManagerStaticTest.java \
42    src/android/hardware/cts/SensorAdditionalInfoTest.java
43
44include $(BUILD_STATIC_JAVA_LIBRARY)
45
46
47# CtsHardwareTestCases package
48
49include $(CLEAR_VARS)
50
51LOCAL_MODULE_TAGS := tests
52
53LOCAL_MODULE_PATH := $(TARGET_OUT_DATA_APPS)
54
55# Tag this module as a cts test artifact
56LOCAL_COMPATIBILITY_SUITE := cts
57
58LOCAL_STATIC_JAVA_LIBRARIES := \
59    ctsdeviceutil \
60    compatibility-device-util \
61    ctstestrunner \
62    mockito-target \
63    android-ex-camera2
64
65LOCAL_SRC_FILES := $(call all-java-files-under, src) $(call all-renderscript-files-under, src)
66
67LOCAL_PACKAGE_NAME := CtsHardwareTestCases
68
69LOCAL_CTS_MODULE_CONFIG := $(LOCAL_PATH)/Old$(CTS_MODULE_TEST_CONFIG)
70
71LOCAL_SDK_VERSION := current
72
73LOCAL_JAVA_LIBRARIES := android.test.runner
74
75include $(BUILD_CTS_PACKAGE)
76