Home | History | Annotate | Download | only in runner
      1 # Copyright (C) 2009 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 
     15 LOCAL_PATH:= $(call my-dir)
     16 
     17 ifeq ($(BUILD_CTSCORE_PACKAGE),)
     18     $(error BUILD_CTSCORE_PACKAGE must be defined)
     19 endif
     20 
     21 include $(CLEAR_VARS)
     22 
     23 # include this package in the tests target for continuous testing
     24 LOCAL_MODULE_TAGS := tests
     25 
     26 LOCAL_PACKAGE_NAME := android.core.tests.runner
     27 
     28 LOCAL_STATIC_JAVA_LIBRARIES := cts-test-runner
     29 
     30 include $(BUILD_CTSCORE_PACKAGE)
     31 
     32 #==========================================================
     33 # Build the core runner.
     34 #==========================================================
     35 
     36 # Build library
     37 include $(CLEAR_VARS)
     38 
     39 LOCAL_MODULE_TAGS := optional
     40 LOCAL_SRC_FILES := $(call all-java-files-under,src)
     41 LOCAL_MODULE := cts-core-test-runner
     42 LOCAL_STATIC_JAVA_LIBRARIES := \
     43     compatibility-device-util \
     44     android-support-test \
     45     vogarexpect \
     46     testng
     47 
     48 LOCAL_JAVA_LIBRARIES := android.test.runner
     49 
     50 include $(BUILD_STATIC_JAVA_LIBRARY)
     51 
     52 #==========================================================
     53 # Build the run listener
     54 #==========================================================
     55 
     56 # Build library
     57 include $(CLEAR_VARS)
     58 
     59 LOCAL_MODULE_TAGS := optional
     60 LOCAL_SRC_FILES := $(call all-java-files-under,src/com/android/cts/runner)
     61 LOCAL_MODULE := cts-test-runner
     62 LOCAL_STATIC_JAVA_LIBRARIES := android-support-test
     63 LOCAL_SDK_VERSION := current
     64 
     65 include $(BUILD_STATIC_JAVA_LIBRARY)
     66