aboutsummaryrefslogtreecommitdiffstats
path: root/tests/ajcTestsExamples.xml
blob: bacd407cf9a2b9d60b8d6bf6faa6cef895a92fdb (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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd">

<!-- 
	Test documentation examples.
	Results unverified except for compiler messages, 
	runtime exceptions, System.exit codes, and System.err
	messages (the latter not for all tests).

  To run the example classes using a forked 1.1 vm:
	
  java -Djavarun.fork=true \
       -Djavarun.java.home=d:\\jdk11 \
       -Djavarun.java=d:\\jdk11\\bin\\javaw \
       -Djavarun.bootclasspath=d:\\jdk11\\lib\\classes.zip \
       -jar ../aj-build/jars/testing-drivers-all.jar \
       ajcTestsExamples.xml \
       -ajctestSkipKeywords=knownLimitation-run11 \
       -logFail 

-->
<suite>
    <ajc-test dir="../docs/dist/doc/examples"
    	keywords="doc-examples"
		title="bean example">
        <compile argfiles="bean/files.lst"/>
        <run class="bean.Demo"
			errStreamIsError="false"/>
		<!-- ??: error security properties not found. using defaults. -->
    </ajc-test>   

    <ajc-test dir="../docs/dist/doc/examples"
    	keywords="doc-examples,knownLimitation-run11"
		title="introduction">
        <compile argfiles="introduction/files.lst"/>
        <run vm="1.2" class="introduction.Point"/>
        <run vm="1.2" class="introduction.CloneablePoint"/>
        <run vm="1.2" class="introduction.ComparablePoint"/>
        <run vm="1.2" class="introduction.HashablePoint"/>
    </ajc-test>   

    <ajc-test dir="../docs/dist/doc/examples"
    	keywords="doc-examples"
		title="observer example">
        <compile argfiles="observer/files.lst"/>
        <!-- GUI run class="observer.Demo"/ -->
    </ajc-test>   

    <ajc-test dir="../docs/dist/doc/examples"
    	keywords="doc-examples"
		title="spacewar example">
        <compile argfiles="spacewar/debug.lst"/>
        <compile argfiles="spacewar/demo.lst"/>
        <!-- GUI run class="spacewar.Game"/ -->
    </ajc-test>   

	<!--
  	TODO: change 1.2 API's in telecom to 1.1:
  	(Vector.[add|remove](..) to [add|remove]Element(..))
  	then remove the knownLimitation-run11 keywords
	-->			
    <ajc-test dir="../docs/dist/doc/examples"
    	keywords="doc-examples,knownLimitation-run11"
		title="telecom basic example">
        <compile argfiles="telecom/basic.lst"/>
        <run class="telecom.BasicSimulation"/>
    </ajc-test>   

    <ajc-test dir="../docs/dist/doc/examples"
    	keywords="doc-examples,knownLimitation-run11"
		title="telecom billing example">
        <compile argfiles="telecom/billing.lst"/>
        <run class="telecom.BillingSimulation"/>
    </ajc-test>   

    <ajc-test dir="../docs/dist/doc/examples"
    	keywords="doc-examples,knownLimitation-run11"
		title="telecom timing example">
        <compile argfiles="telecom/timing.lst"/>
        <run class="telecom.TimingSimulation"/>
    </ajc-test>   

    <ajc-test dir="../docs/dist/doc/examples"
    	keywords="doc-examples"
		title="thisJoinPoint example">
        <compile argfiles="tjp/files.lst"/>
        <run class="tjp.Demo"/>
    </ajc-test>   

    <ajc-test dir="../docs/dist/doc/examples"
    	keywords="doc-examples"
		title="tracing example - none">
        <compile argfiles="tracing/notrace.lst"/>
        <run class="tracing.ExampleMain"/>
    </ajc-test>   

    <ajc-test dir="../docs/dist/doc/examples"
    	keywords="doc-examples"
		title="tracing example - version 1">
        <compile argfiles="tracing/tracev1.lst"/>
        <run class="tracing.version1.TraceMyClasses"
			errStreamIsError="false"/>
    </ajc-test>   

    <ajc-test dir="../docs/dist/doc/examples"
    	keywords="doc-examples"
		title="tracing example - version 2">
        <compile argfiles="tracing/tracev2.lst"/>
        <run class="tracing.version2.TraceMyClasses"
			errStreamIsError="false"/>
    </ajc-test>   

    <ajc-test dir="../docs/dist/doc/examples"
    	keywords="doc-examples"
		title="tracing example - version 3">
        <compile argfiles="tracing/tracev3.lst"/>
        <run class="tracing.version3.TraceMyClasses"
			errStreamIsError="false"/>
    </ajc-test>   
</suite>