Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ab97424f authored by Amy's avatar Amy Committed by Amy Zhang
Browse files

Add helloWorld test for core/tests/HdmiCec

Test: adb local test passed
Change-Id: I52bc93960237ee54ae99ed50e753cda9bb9ad9c5

ag/4032617
parent c540562c
Loading
Loading
Loading
Loading
+30 −0
Original line number Diff line number Diff line
# Copyright (C) 2018 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

# Include all test java files
LOCAL_SRC_FILES := $(call all-java-files-under, src)

LOCAL_MODULE_TAGS := tests
LOCAL_PACKAGE_NAME := HdmiCecTests

LOCAL_SDK_VERSION := current
LOCAL_STATIC_JAVA_LIBRARIES := android-support-test
LOCAL_CERTIFICATE := platform
LOCAL_COMPATIBILITY_SUITE := device-tests

include $(BUILD_PACKAGE)
+23 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2018 The Android Open Source Project
     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
     You may obtain a copy of the License at
          http://www.apache.org/licenses/LICENSE-2.0
     Unless required by applicable law or agreed to in writing, software
     distributed under the License is distributed on an "AS IS" BASIS,
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     See the License for the specific language governing permissions and
     limitations under the License.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="android.test.example.helloworld"
    android:sharedUserId="android.uid.system" >
    <uses-sdk android:minSdkVersion="21" android:targetSdkVersion="21" />
    <application>
        <uses-library android:name="android.test.runner" />
    </application>
    <instrumentation android:name="android.support.test.runner.AndroidJUnitRunner"
        android:targetPackage="android.test.example.helloworld"
        android:label="Hello World Test"/>
</manifest>
+28 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2018 The Android Open Source Project
     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
     You may obtain a copy of the License at
          http://www.apache.org/licenses/LICENSE-2.0
     Unless required by applicable law or agreed to in writing, software
     distributed under the License is distributed on an "AS IS" BASIS,
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     See the License for the specific language governing permissions and
     limitations under the License.
-->
<configuration description="Runs sample instrumentation test.">
    <option name="test-suite-tag" value="apct"/>
    <option name="test-suite-tag" value="apct-instrumentation"/>
    <target_preparer class="com.android.tradefed.targetprep.TestFilePushSetup"/>
    <target_preparer class="com.android.tradefed.targetprep.TestAppInstallSetup">
        <option name="test-file-name" value="HelloWorldTests.apk"/>
    </target_preparer>
    <target_preparer class="com.android.tradefed.targetprep.PushFilePreparer"/>
    <target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer"/>
    <option name="test-suite-tag" value="apct"/>
    <option name="test-tag" value="SampleInstrumentationTest"/>
    <test class="com.android.tradefed.testtype.AndroidJUnitTest">
        <option name="package" value="android.test.example.helloworld"/>
        <option name="runner" value="android.support.test.runner.AndroidJUnitRunner"/>
    </test>
</configuration>
+26 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2017 The Android Open Source Project
     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
     You may obtain a copy of the License at
          http://www.apache.org/licenses/LICENSE-2.0
     Unless required by applicable law or agreed to in writing, software
     distributed under the License is distributed on an "AS IS" BASIS,
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     See the License for the specific language governing permissions and
     limitations under the License.
-->
<configuration description="Runs only the HalloWelt test.">
    <target_preparer class="com.android.tradefed.targetprep.TestFilePushSetup" />
    <target_preparer class="com.android.tradefed.targetprep.TestAppInstallSetup">
        <option name="test-file-name" value="HelloWorldTests.apk" />
    </target_preparer>
    <option name="test-suite-tag" value="apct" />
    <option name="test-tag" value="SampleInstrumentationTest" />
    <test class="com.android.tradefed.testtype.AndroidJUnitTest" >
        <option name="package" value="android.test.example.helloworld" />
        <option name="runner" value="android.support.test.runner.AndroidJUnitRunner" />
        <option name="class" value="android.test.example.helloworld.HelloWorldTest" />
        <option name="method" value="testHalloWelt" />
    </test>
</configuration>
+3 −0
Original line number Diff line number Diff line
amyjojo@google.com
nchalko@google.com
shubang@google.com
 No newline at end of file
Loading