mirror of https://github.com/apache/cassandra
Jenkins tests to use testclasslist where possible (like CircleCI)
patch by Mick Semb Wever; reviewed by David Capwell for CASSANDRA-15651
This commit is contained in:
parent
c7a8730447
commit
fa403bb721
21
build.xml
21
build.xml
|
|
@ -1380,6 +1380,10 @@
|
|||
<attribute name="testlist.offset" />
|
||||
<sequential>
|
||||
<property name="cdc_yaml" value="${build.test.dir}/cassandra.cdc.yaml"/>
|
||||
<concat destfile="${cdc_yaml}">
|
||||
<fileset file="${test.conf}/cassandra.yaml"/>
|
||||
<fileset file="${test.conf}/cdc.yaml"/>
|
||||
</concat>
|
||||
<testmacrohelper inputdir="${test.unit.src}" filelist="@{test.file.list}" poffset="@{testlist.offset}"
|
||||
exclude="**/*.java" timeout="${test.timeout}" testtag="cdc">
|
||||
<jvmarg value="-Dlegacy-sstable-root=${test.data}/legacy-sstables"/>
|
||||
|
|
@ -1430,11 +1434,6 @@
|
|||
</testmacro>
|
||||
</target>
|
||||
<target name="test-compression" depends="build-test,stress-build" description="Execute unit tests with sstable compression enabled">
|
||||
<property name="compressed_yaml" value="${build.test.dir}/cassandra.compressed.yaml"/>
|
||||
<concat destfile="${compressed_yaml}">
|
||||
<fileset file="${test.conf}/cassandra.yaml"/>
|
||||
<fileset file="${test.conf}/commitlog_compression.yaml"/>
|
||||
</concat>
|
||||
<path id="all-test-classes-path">
|
||||
<fileset dir="${test.unit.src}" includes="**/${test.name}.java" />
|
||||
<fileset dir="${test.distributed.src}" includes="**/${test.name}.java" />
|
||||
|
|
@ -1444,11 +1443,6 @@
|
|||
</target>
|
||||
|
||||
<target name="test-cdc" depends="build-test" description="Execute unit tests with change-data-capture enabled">
|
||||
<property name="cdc_yaml" value="${build.test.dir}/cassandra.cdc.yaml"/>
|
||||
<concat destfile="${cdc_yaml}">
|
||||
<fileset file="${test.conf}/cassandra.yaml"/>
|
||||
<fileset file="${test.conf}/cdc.yaml"/>
|
||||
</concat>
|
||||
<path id="all-test-classes-path">
|
||||
<fileset dir="${test.unit.src}" includes="**/${test.name}.java" />
|
||||
</path>
|
||||
|
|
@ -1826,6 +1820,13 @@
|
|||
<property name="all-test-classes" refid="all-test-classes-path"/>
|
||||
<testparallel testdelegate="testlist-compression"/>
|
||||
</target>
|
||||
<target name="testclasslist-cdc" depends="build-test" description="Parallel-run tests given in file -Dtest.classlistfile (one-class-per-line, e.g. org/apache/cassandra/db/SomeTest.java)">
|
||||
<path id="all-test-classes-path">
|
||||
<fileset dir="${test.dir}/${test.classlistprefix}" includesfile="${test.classlistfile}"/>
|
||||
</path>
|
||||
<property name="all-test-classes" refid="all-test-classes-path"/>
|
||||
<testparallel testdelegate="testlist-cdc"/>
|
||||
</target>
|
||||
|
||||
<!-- In-JVM dtest targets -->
|
||||
<target name="list-jvm-dtests" depends="build-test">
|
||||
|
|
|
|||
Loading…
Reference in New Issue