Mercurial > hg > cc > cirrus_home
comparison src/nutch-cc/build.xml @ 192:4275eb6484da
maybe triggers jdb on tests with -DdebugTest=true on command line
author | Henry S. Thompson <ht@inf.ed.ac.uk> |
---|---|
date | Wed, 25 Sep 2024 13:51:15 +0100 |
parents | b5904d0bdfd4 |
children | 5f3c36e4fd6d |
comparison
equal
deleted
inserted
replaced
191:b5904d0bdfd4 | 192:4275eb6484da |
---|---|
479 </target> | 479 </target> |
480 | 480 |
481 <!-- ================================================================== --> | 481 <!-- ================================================================== --> |
482 <!-- Run unit tests --> | 482 <!-- Run unit tests --> |
483 <!-- ================================================================== --> | 483 <!-- ================================================================== --> |
484 <property name="debugTest" value="false"/> | |
485 | |
484 <target name="test" depends="test-core, test-plugins" description="--> run JUnit tests"/> | 486 <target name="test" depends="test-core, test-plugins" description="--> run JUnit tests"/> |
485 | 487 |
486 <target name="test-core" depends="compile-core-test, job" description="--> run core JUnit tests only"> | 488 <target name="test-core" depends="compile-core-test, job" description="--> run core JUnit tests only"> |
487 | 489 |
488 <delete dir="${test.build.data}"/> | 490 <delete dir="${test.build.data}"/> |
504 todir="${test.build.classes}"/> | 506 todir="${test.build.classes}"/> |
505 | 507 |
506 <copy file="${test.src.dir}/filter-all.txt" | 508 <copy file="${test.src.dir}/filter-all.txt" |
507 todir="${test.build.classes}"/> | 509 todir="${test.build.classes}"/> |
508 | 510 |
511 <condition property="debugJvmArgs" | |
512 value="-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=8787" | |
513 else="-ea"> | |
514 <istrue value="${debugTest}"/> | |
515 </condition> | |
509 <junit printsummary="yes" haltonfailure="no" fork="yes" | 516 <junit printsummary="yes" haltonfailure="no" fork="yes" |
510 forkmode="once" dir="${basedir}" | 517 forkmode="once" dir="${basedir}" |
511 errorProperty="tests.failed" failureProperty="tests.failed" | 518 errorProperty="tests.failed" failureProperty="tests.failed" |
512 maxmemory="1000m"> | 519 maxmemory="1000m"> |
520 <jvmarg value="${debugJvmArgs}"/> | |
513 <sysproperty key="test.build.data" value="${test.build.data}"/> | 521 <sysproperty key="test.build.data" value="${test.build.data}"/> |
514 <sysproperty key="test.src.dir" value="${test.src.dir}"/> | 522 <sysproperty key="test.src.dir" value="${test.src.dir}"/> |
515 <sysproperty key="javax.xml.parsers.DocumentBuilderFactory" value="com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl"/> | 523 <sysproperty key="javax.xml.parsers.DocumentBuilderFactory" value="com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl"/> |
516 <classpath refid="test.classpath"/> | 524 <classpath refid="test.classpath"/> |
517 <formatter type="${test.junit.output.format}" /> | 525 <formatter type="${test.junit.output.format}" /> |