summaryrefslogtreecommitdiffstats
path: root/testrunner/test_defs.xsd
diff options
context:
space:
mode:
authorPhil Dubach <phillipd@google.com>2009-05-21 16:35:22 -0700
committerPhil Dubach <phillipd@google.com>2009-05-22 14:56:35 -0700
commit7c343cef7e7cd56aafb7b8a602ceb6462a6bbb71 (patch)
treeb27fe53048f54895b48cb94075211bae8e278882 /testrunner/test_defs.xsd
parent0db48f76fb99cdc9d0ac1fafd41f82e51996de06 (diff)
downloadandroid_development-7c343cef7e7cd56aafb7b8a602ceb6462a6bbb71.tar.gz
android_development-7c343cef7e7cd56aafb7b8a602ceb6462a6bbb71.tar.bz2
android_development-7c343cef7e7cd56aafb7b8a602ceb6462a6bbb71.zip
Add XML Schema for runtest's test_defs.xml file
Diffstat (limited to 'testrunner/test_defs.xsd')
-rw-r--r--testrunner/test_defs.xsd36
1 files changed, 36 insertions, 0 deletions
diff --git a/testrunner/test_defs.xsd b/testrunner/test_defs.xsd
new file mode 100644
index 000000000..5387a2801
--- /dev/null
+++ b/testrunner/test_defs.xsd
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ targetNamespace="http://schemas.android.com/testrunner/test_defs/1.0"
+ xmlns="http://schemas.android.com/testrunner/test_defs/1.0"
+ elementFormDefault="qualified">
+
+ <xs:element name="test-definitions">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element name="test" type="javaTestType"/>
+ <xs:element name="test-native" type="nativeTestType"/>
+ </xs:choice>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:complexType name="javaTestType">
+ <xs:attribute name="name" type="xs:string" use="required"/>
+ <xs:attribute name="package" type="xs:string" use="required"/>
+ <xs:attribute name="build_path" type="xs:string" use="optional"/>
+ <xs:attribute name="class" type="xs:string" use="optional"/>
+ <xs:attribute name="runner" type="xs:string" use="optional"
+ default="android.test.InstrumentationTestRunner"/>
+ <xs:attribute name="coverage_target" type="xs:string" use="optional"/>
+ <xs:attribute name="continuous" type="xs:boolean" use="optional" default="false"/>
+ </xs:complexType>
+
+ <xs:complexType name="nativeTestType">
+ <xs:attribute name="name" type="xs:string" use="required"/>
+ <xs:attribute name="build_path" type="xs:string" use="required"/>
+ <xs:attribute name="extra_make_args" type="xs:string" use="optional"/>
+ <xs:attribute name="description" type="xs:string" use="optional"/>
+ <xs:attribute name="continuous" type="xs:boolean" use="optional" default="false"/>
+ </xs:complexType>
+</xs:schema>