|
44 | 44 | <pathelement location="lib/byte-buddy-1.5.0.jar" /> <!-- only needed for tests compile and run --> |
45 | 45 | <pathelement location="lib/byte-buddy-agent-1.5.0.jar" /> <!-- only needed for tests compile and run --> |
46 | 46 | <pathelement location="lib/objenesis-2.4.jar" /> <!-- only needed for tests compile and run --> |
47 | | - <pathelement location="lib/jdom2-2.0.6.jar" /> |
| 47 | + <pathelement location="lib/jdom2-2.0.6.1.jar" /> |
48 | 48 | <pathelement location="lib/jlfgr-1_0.jar" /> |
49 | 49 | <pathelement location="lib/jcip-annotations-1.0.jar" /> <!-- only needed for compile --> |
50 | 50 | <pathelement location="lib/jsr305.jar" /> <!-- only needed for compile --> |
|
183 | 183 | </fail> |
184 | 184 | </target> |
185 | 185 |
|
| 186 | + <target name="singletest" depends="compile, tests" description="build and run one test file (edited in build.xml)"> |
| 187 | + <mkdir dir="${testreporttarget}"/> |
| 188 | + <junit haltonerror="false" haltonfailure="false" showoutput="yes" printsummary="yes" fork="yes" dir="." timeout="3600000" errorProperty="test.failed" failureProperty="test.failed"> |
| 189 | + <classpath refid="project.class.path" /> |
| 190 | + <sysproperty key="java.security.policy" value="lib/security.policy"/> |
| 191 | + <sysproperty key="java.library.path" path=".:lib/"/> |
| 192 | + <formatter type="xml"/> |
| 193 | + <test name="org.openlcb.implementations.LocationServiceUtilsTest"/> |
| 194 | +<!-- |
| 195 | + <test name="org.openlcb.ProducerConsumerEventReportMessageTest"/> |
| 196 | + <test name="org.openlcb.can.MessageBuilderTest"/> |
| 197 | + <test name="org.openlcb.DatagramAcknowledgedMessageTest"/> |
| 198 | + --> |
| 199 | + </junit> |
| 200 | + <fail> |
| 201 | + <condition> |
| 202 | + <istrue value="${test.failed}" /> |
| 203 | + </condition> |
| 204 | + </fail> |
| 205 | + </target> |
| 206 | + |
| 207 | + <target name="singledemo" depends="compile, tests" description="build and run one demo file (edited in build.xml)"> |
| 208 | + <java fork="yes" classname="org.openlcb.cdi.swing.CdiPanelDemo"> |
| 209 | + <classpath refid="project.class.path" /> |
| 210 | + <sysproperty key="java.security.policy" value="lib/security.policy"/> |
| 211 | + <sysproperty key="java.library.path" path=".:lib/"/> |
| 212 | + </java> |
| 213 | + </target> |
| 214 | + |
186 | 215 | <target name="run-coverage" depends="compile, tests" description="build and run test suite, generating coverage report."> |
187 | 216 | <mkdir dir="${testreporttarget}"/> |
188 | 217 | <jacoco:coverage destfile="jacoco.exec" excludes="org.slf4j.*"> |
|
0 commit comments