aboutsummaryrefslogtreecommitdiffstats
path: root/testing-drivers/testdata/defaultSuite.xml
blob: 6687b1de331da3e4f4858e315a204594962dc9d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>

<!DOCTYPE suite [
   <!ELEMENT suite (ajc-test+)>
   <!ATTLIST suite file CDATA #IMPLIED >
   <!ELEMENT ajc-test (compile*,inc-compile*,run*)>
   <!ATTLIST ajc-test title CDATA #REQUIRED >
   <!ATTLIST ajc-test dir CDATA #REQUIRED >
   <!ATTLIST ajc-test pr CDATA #IMPLIED >
   <!ATTLIST ajc-test keywords CDATA #IMPLIED >

   <!ELEMENT compile (file*,message*)>
   <!ATTLIST compile files CDATA #IMPLIED >
   <!ATTLIST compile options CDATA #IMPLIED >
   <!ATTLIST compile staging (true | false) #IMPLIED >

   <!ELEMENT inc-compile (message*)>
   <!ATTLIST inc-compile tag CDATA #REQUIRED >
   <!ATTLIST inc-compile changedFiles CDATA #IMPLIED >

   <!ELEMENT run (message*)>
   <!ATTLIST run class CDATA #REQUIRED >
   <!ATTLIST run skipTester CDATA #IMPLIED >
   <!ATTLIST run options CDATA #IMPLIED >

   <!ELEMENT file (#PCDATA)>
   <!ATTLIST file path CDATA #IMPLIED >
   <!ELEMENT message (#PCDATA)>
   <!ATTLIST message kind (error | warning | Xlint) #REQUIRED >
   <!ATTLIST message line CDATA #REQUIRED >
   <!ATTLIST message text CDATA #IMPLIED >
   <!ATTLIST message file CDATA #IMPLIED >
   ]>

<suite file="defaultSuite.xml">

    <ajc-test dir="incremental/java/static" 
            title="minimal incremental test"
         keywords="incremental" >
        <compile staging="true" files="Main.java,Target.java"/>
        <inc-compile tag="20" changedFiles="Main.java">
            <message kind="error" line="6" file="Main.java"/>
        </inc-compile>
        <inc-compile tag="30"/>
        <inc-compile tag="40"/>
    </ajc-test>

    <ajc-test dir="incremental/java/delete" 
            title="minimal incremental test with delete operation"
         keywords="incremental" >
        <compile staging="true" files="Main.java,Target.java,DeleteMe.java"/>
        <inc-compile tag="20">
            <message kind="error" line="7" file="Target.java" text="*DeleteMe.main*"/>
        </inc-compile>
        <inc-compile tag="30"/>
    </ajc-test>

</suite>