diff options
author | Kevin Cheng <kevcheng@google.com> | 2017-05-25 15:21:59 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2017-05-25 15:21:59 +0000 |
commit | dda27e2c92b1026505148bf64b195e64ebcf7516 (patch) | |
tree | e7fa5bdb271644d59ac0ad00889f214ebb526543 | |
parent | 1b330b52942c56aee3da7cff25694a0984970262 (diff) | |
parent | 96e3470eaa5633a0612adfd087dd1bc7e95b5765 (diff) | |
download | contrib-dda27e2c92b1026505148bf64b195e64ebcf7516.tar.gz |
Remove prod-tests dir.
am: 96e3470eaa
Change-Id: Iee4bd3c104512a22e33ca7716dc2c30876aaf4e0
-rw-r--r-- | Android.mk | 2 | ||||
-rw-r--r-- | res/config/example/example.xml | 28 | ||||
-rw-r--r-- | src/com/android/example_test/ExampleTest.java | 32 |
3 files changed, 61 insertions, 1 deletions
@@ -19,7 +19,7 @@ include $(CLEAR_VARS) # Only compile source java files in this lib. LOCAL_SRC_FILES := $(call all-java-files-under, src) -# LOCAL_JAVA_RESOURCE_DIRS := res +LOCAL_JAVA_RESOURCE_DIRS := res LOCAL_JAVACFLAGS += -g -Xlint diff --git a/res/config/example/example.xml b/res/config/example/example.xml new file mode 100644 index 0000000..14d3378 --- /dev/null +++ b/res/config/example/example.xml @@ -0,0 +1,28 @@ +<?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. +--> +<!-- TODO: Delete when real configs make it here. --> +<configuration description="Example test config."> + <!-- Some option for the whole configuration. --> + <option name="test-tag" value="example-test" /> + + <!-- Example test that will be ran. --> + <test class="com.android.tradefed.ExampleTest" /> + + <!-- Example target preparer used. --> + <target_preparer class="com.android.tradefed.targetprep.ExampleTargetPreparer" /> + +</configuration> + diff --git a/src/com/android/example_test/ExampleTest.java b/src/com/android/example_test/ExampleTest.java new file mode 100644 index 0000000..dd73be2 --- /dev/null +++ b/src/com/android/example_test/ExampleTest.java @@ -0,0 +1,32 @@ +/* + * 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. + */ +package com.android.tradefed; + +import com.android.tradefed.device.DeviceNotAvailableException; +import com.android.tradefed.log.LogUtil.CLog; +import com.android.tradefed.result.ITestInvocationListener; +import com.android.tradefed.testtype.IRemoteTest; + +/** + * Example test to seed Trade Federation Contrib project. + */ +// TODO: Delete when real tests make it here. +public class ExampleTest implements IRemoteTest { + @Override + public void run(ITestInvocationListener listener) throws DeviceNotAvailableException { + CLog.i("AOSP example test says Hello!"); + } +} |