blob: d3a5d5ac2955252a51618ede190043eeebee0367 [file] [log] [blame]
Ceki Gulcu88c4c452009-12-03 19:16:42 +01001<project name="integration" default="testAll" basedir=".">
2
3 <!--
4 This build file is usually run indirectly via Maven.
5
6 When running this build file through Ant directly, you must
7 define the currentVersion property on the command line, e.g.:
8
9 ant -DcurrentVersion=1.5.4-SNAPSHOT
10 -->
11
12 <echo message="compile classpath: ${compile_classpath}" />
13 <echo message="runtime classpath: ${runtime_classpath}" />
14 <echo message="test classpath: ${test_classpath}" />
15 <echo message="plugin classpath: ${plugin_classpath}" />
16
Ceki Gulcud1d27b82010-04-06 13:57:15 +020017
18 <path id="path142Binding">
19 <pathelement location="target/test-classes/" />
20 <pathelement location="../slf4j-api/target/slf4j-api-${currentVersion}.jar" />
21 <pathelement location="./lib/slf4j-simple-1.4.2.jar" />
22 </path >
23
24 <path id="path150Binding">
Ceki Gulcu88c4c452009-12-03 19:16:42 +010025 <pathelement location="target/test-classes/" />
26 <pathelement location="../slf4j-api/target/slf4j-api-${currentVersion}.jar" />
27 <pathelement location="./lib/slf4j-simple-1.5.0.jar" />
28 </path >
29
Ceki Gulcu581b20f2010-04-05 00:11:16 +020030 <path id="path1511API">
31 <pathelement location="target/test-classes/" />
32 <pathelement location="./lib/slf4j-api-1.5.11.jar" />
33 <pathelement location="../slf4j-simple/target/slf4j-simple-${currentVersion}.jar" />
34 </path >
35
36 <path id="path1511Binding">
37 <pathelement location="target/test-classes/" />
38 <pathelement location="../slf4j-api/target/slf4j-api-${currentVersion}.jar" />
39 <pathelement location="./lib/slf4j-simple-1.5.11.jar" />
40 </path >
41
Ceki Gulcud1d27b82010-04-06 13:57:15 +020042 <!--<path id="pathIncompatible">
Ceki Gulcu88c4c452009-12-03 19:16:42 +010043 <pathelement location="target/test-classes/" />
44 <pathelement location="../slf4j-api/target/slf4j-api-${currentVersion}.jar" />
45 <pathelement location="./lib/slf4j-simple-INCOMPATIBLE.jar" />
46 </path >
Ceki Gulcud1d27b82010-04-06 13:57:15 +020047 -->
48
Ceki Gulcu88c4c452009-12-03 19:16:42 +010049 <path id="pathCurrent">
Ceki Gulcu88c4c452009-12-03 19:16:42 +010050 <pathelement location="target/test-classes/" />
51 <pathelement location="../slf4j-api/target/slf4j-api-${currentVersion}.jar" />
52 <pathelement location="../slf4j-simple/target/slf4j-simple-${currentVersion}.jar" />
53 </path >
54
55
Ceki Gulcue5eb0b02012-06-11 16:16:40 +020056 <path id="incompatibleMultiBinding">
Ceki Gulcu581b20f2010-04-05 00:11:16 +020057 <pathelement location="target/test-classes/" />
58 <pathelement location="../slf4j-api/target/slf4j-api-${currentVersion}.jar" />
59 <pathelement location="./lib/slf4j-simple-1.5.0.jar" />
60 <pathelement location="./lib/slf4j-nop-1.5.6.jar" />
61 </path >
62
Ceki Gulcue5eb0b02012-06-11 16:16:40 +020063 <path id="multiBinding">
64 <pathelement location="target/test-classes/" />
65 <pathelement location="../slf4j-api/target/slf4j-api-${currentVersion}.jar" />
66 <pathelement location="../slf4j-simple/target/slf4j-simple-${currentVersion}.jar" />
67 <pathelement location="../slf4j-nop/target/slf4j-nop-${currentVersion}.jar" />
68 </path >
Ceki Gulcu581b20f2010-04-05 00:11:16 +020069
Ceki Gulcu255def22012-09-06 23:46:19 +020070 <path id="binding166">
Ceki Gulcu581b20f2010-04-05 00:11:16 +020071 <pathelement location="target/test-classes/" />
72 <pathelement location="../slf4j-api/target/slf4j-api-${currentVersion}.jar" />
Ceki Gulcu255def22012-09-06 23:46:19 +020073 <pathelement location="./lib/slf4j-simple-1.6.6.jar" />
Ceki Gulcu581b20f2010-04-05 00:11:16 +020074 </path >
75
76 <path id="binding2099">
77 <pathelement location="target/test-classes/" />
78 <pathelement location="../slf4j-api/target/slf4j-api-${currentVersion}.jar" />
79 <pathelement location="./lib/slf4j-simple-2.0.99.jar" />
80 </path >
81
82
Ceki Gulcu255def22012-09-06 23:46:19 +020083 <path id="api166">
Ceki Gulcu581b20f2010-04-05 00:11:16 +020084 <pathelement location="target/test-classes/" />
85 <pathelement location="../slf4j-simple/target/slf4j-simple-${currentVersion}.jar" />
Ceki Gulcu255def22012-09-06 23:46:19 +020086 <pathelement location="./lib/slf4j-api-1.6.6.jar" />
Ceki Gulcu581b20f2010-04-05 00:11:16 +020087 </path >
88
Ceki Gulcu581b20f2010-04-05 00:11:16 +020089
Ceki Gulcu88c4c452009-12-03 19:16:42 +010090 <!-- this is really very ugly, but it's the only way to circumvent
91 http://jira.codehaus.org/browse/MANTRUN-95
92 -->
93 <taskdef name="junit" classpath="${plugin_classpath};${compile_classpath}"
94 classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTask" />
95
96 <target name="init">
97 <mkdir dir="target/unit-reports" />
98 </target>
99
100 <target name="testAll" depends="init,
Ceki Gulcud1d27b82010-04-06 13:57:15 +0200101 testMissingSingletonMethod,
102 testMismatch,
Ceki Gulcu581b20f2010-04-05 00:11:16 +0200103 testMatch,
104 testMultiBinding,
Ceki Gulcue5eb0b02012-06-11 16:16:40 +0200105 testIncompatibleMultiBinding,
Ceki Gulcu581b20f2010-04-05 00:11:16 +0200106 testFuture_16Series">
Ceki Gulcu88c4c452009-12-03 19:16:42 +0100107 </target>
108
Ceki Gulcu581b20f2010-04-05 00:11:16 +0200109
Ceki Gulcud1d27b82010-04-06 13:57:15 +0200110 <target name="testMissingSingletonMethod">
111
112 <junit printsummary="yes" fork="no" haltonfailure="yes">
113 <classpath refid="path142Binding" />
Ceki Gulcu88c4c452009-12-03 19:16:42 +0100114 <formatter type="plain" />
Ceki Gulcu581b20f2010-04-05 00:11:16 +0200115 <test fork="yes" todir="target/unit-reports"
Ceki Gulcud1d27b82010-04-06 13:57:15 +0200116 outfile="TEST-142BININDING"
117 name="org.slf4j.MissingSingletonMethodAssertionTest" />
Ceki Gulcu88c4c452009-12-03 19:16:42 +0100118 </junit>
Ceki Gulcu581b20f2010-04-05 00:11:16 +0200119
Ceki Gulcud1d27b82010-04-06 13:57:15 +0200120 <junit printsummary="yes" fork="no" haltonfailure="yes">
121 <classpath refid="path150Binding" />
122 <formatter type="plain" />
123 <test fork="yes" todir="target/unit-reports"
124 outfile="TEST-150BINDING"
125 name="org.slf4j.MissingSingletonMethodAssertionTest" />
126 </junit>
127
128 </target>
129
130 <target name="testMismatch">
Ceki Gulcu581b20f2010-04-05 00:11:16 +0200131
132 <junit printsummary="yes" fork="no" haltonfailure="yes">
133 <classpath refid="path1511API" />
134 <formatter type="plain" />
135 <test fork="yes" todir="target/unit-reports"
136 outfile="TEST-MISMATCH-1511API"
137 name="org.slf4j.VersionMismatchAssertionTest" />
138 </junit>
139
140
141 <junit printsummary="yes" fork="no" haltonfailure="yes">
142 <classpath refid="path1511Binding" />
143 <formatter type="plain" />
144 <test fork="yes" todir="target/unit-reports"
145 outfile="TEST-MISMATCH-1511Binding"
146 name="org.slf4j.VersionMismatchAssertionTest" />
147 </junit>
148
Ceki Gulcu88c4c452009-12-03 19:16:42 +0100149 </target>
Ceki Gulcu88c4c452009-12-03 19:16:42 +0100150
151 <target name="testMatch">
152 <junit printsummary="yes" fork="no" haltonfailure="yes">
153 <classpath refid="pathCurrent" />
154 <formatter type="plain" />
Ceki Gulcu581b20f2010-04-05 00:11:16 +0200155 <test fork="yes" todir="target/unit-reports"
156 outfile="TEST-Match"
157 name="org.slf4j.CompatibilityAssertionTest" />
Ceki Gulcu88c4c452009-12-03 19:16:42 +0100158 </junit>
159 </target>
160
Ceki Gulcue5eb0b02012-06-11 16:16:40 +0200161 <target name="testIncompatibleMultiBinding">
Ceki Gulcu88c4c452009-12-03 19:16:42 +0100162 <junit printsummary="yes" fork="no" haltonfailure="yes">
Ceki Gulcue5eb0b02012-06-11 16:16:40 +0200163 <classpath refid="incompatibleMultiBinding" />
Ceki Gulcu88c4c452009-12-03 19:16:42 +0100164 <formatter type="plain" />
Ceki Gulcu581b20f2010-04-05 00:11:16 +0200165 <test fork="yes" todir="target/unit-reports"
Ceki Gulcue5eb0b02012-06-11 16:16:40 +0200166 outfile="TEST-IncompatibleMultiBinding"
167 name="org.slf4j.IncompatibleMultiBindingAssertionTest" />
Ceki Gulcu88c4c452009-12-03 19:16:42 +0100168 </junit>
169 </target>
Ceki Gulcu581b20f2010-04-05 00:11:16 +0200170
Ceki Gulcue5eb0b02012-06-11 16:16:40 +0200171 <target name="testMultiBinding">
172 <junit printsummary="yes" fork="no" haltonfailure="yes">
173 <classpath refid="multiBinding" />
174 <formatter type="plain" />
175 <test fork="yes" todir="target/unit-reports"
176 outfile="TEST-MultiBinding"
177 name="org.slf4j.MultiBindingAssertionTest" />
178 </junit>
179 </target>
180
Ceki Gulcu581b20f2010-04-05 00:11:16 +0200181 <target name="testFuture_16Series">
182 <junit printsummary="yes" fork="no" haltonfailure="yes">
Ceki Gulcu255def22012-09-06 23:46:19 +0200183 <classpath refid="binding166" />
Ceki Gulcu581b20f2010-04-05 00:11:16 +0200184 <formatter type="plain" />
185 <test fork="yes" todir="target/unit-reports"
Ceki Gulcu255def22012-09-06 23:46:19 +0200186 outfile="TEST-binding166"
Ceki Gulcu581b20f2010-04-05 00:11:16 +0200187 name="org.slf4j.CompatibilityAssertionTest" />
188 </junit>
189
Ceki Gulcu918d1442010-05-08 12:26:23 +0200190
Ceki Gulcu581b20f2010-04-05 00:11:16 +0200191 <junit printsummary="yes" fork="no" haltonfailure="yes">
Ceki Gulcu255def22012-09-06 23:46:19 +0200192 <classpath refid="api166" />
Ceki Gulcu581b20f2010-04-05 00:11:16 +0200193 <formatter type="plain" />
194 <test fork="yes" todir="target/unit-reports"
Ceki Gulcu255def22012-09-06 23:46:19 +0200195 outfile="TEST-api166"
Ceki Gulcu581b20f2010-04-05 00:11:16 +0200196 name="org.slf4j.CompatibilityAssertionTest" />
197 </junit>
198
Ceki Gulcu581b20f2010-04-05 00:11:16 +0200199 </target>
Ceki Gulcuecfb1b52008-10-03 15:44:19 +0000200</project>