aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2017-05-21 07:38:01 +0000
committerandroid-build-team Robot <android-build-team-robot@google.com>2017-05-21 07:38:01 +0000
commite34a14cad62b470a06cd68c2589d0eb4eb22b146 (patch)
tree69c8c2b94f33a1eca0ef9fda49abde641c75e7f4
parent91d31f9e6bcf1f09dd049ef17c967eaa2bc13033 (diff)
parent8e4ecd86a411df26b9214e84e23456c9d890d8f9 (diff)
downloadcontrib-e34a14cad62b470a06cd68c2589d0eb4eb22b146.tar.gz
release-request-91ef8626-1af7-4595-b2bd-2d85ee97e99f-for-git_oc-mr1-release-4029936 snap-temp-L27200000066301195
Change-Id: I3eab8d1fb1f8ca684391e50c8746ca3f2285eb71
-rw-r--r--Android.mk2
-rw-r--r--res/config/example/example.xml28
-rw-r--r--res/config/suite/framework-base-presubmit.xml7
-rw-r--r--src/com/android/example_test/ExampleTest.java32
4 files changed, 68 insertions, 1 deletions
diff --git a/Android.mk b/Android.mk
index 79446a1..744e0a0 100644
--- a/Android.mk
+++ b/Android.mk
@@ -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/res/config/suite/framework-base-presubmit.xml b/res/config/suite/framework-base-presubmit.xml
new file mode 100644
index 0000000..a5e45ee
--- /dev/null
+++ b/res/config/suite/framework-base-presubmit.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright 2017 Google Inc. All Rights Reserved. -->
+<configuration description="Android framework-base-presubmit test suite config.">
+ <test class="com.android.tradefed.testtype.suite.TfSuiteRunner">
+ <option name="run-suite-tag" value="framework-base-presubmit" />
+ </test>
+</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!");
+ }
+}