|
1792 | 1792 | <property name="all-test-classes" refid="all-test-classes-path"/> |
1793 | 1793 | <testhelper testdelegate="testlist-system-keyspace-directory"/> |
1794 | 1794 | </target> |
| 1795 | + <target name="testclasslist-simulator" depends="maybe-build-test" description="Run tests given in file -Dtest.classlistfile (one-class-per-line, e.g. org/apache/cassandra/db/SomeTest.java)"> |
| 1796 | + <path id="all-test-classes-path"> |
| 1797 | + <fileset dir="${test.dir}/${test.classlistprefix}" includesfile="${test.classlistfile}"/> |
| 1798 | + </path> |
| 1799 | + <property name="all-test-classes" refid="all-test-classes-path"/> |
| 1800 | + <testhelper testdelegate="testlist-simulator"/> |
| 1801 | + </target> |
1795 | 1802 |
|
1796 | 1803 | <!-- Build a self-contained jar for e.g. remote execution; not currently used for running burn tests with this build script --> |
1797 | 1804 | <target name="burn-test-jar" depends="build-test, build" description="Create dtest-compatible jar, including all dependencies"> |
|
1857 | 1864 | </testmacro> |
1858 | 1865 | </target> |
1859 | 1866 |
|
1860 | | - <property name="simulator.asm.print" value="none"/> <!-- Supports: NONE, CLASS_SUMMARY, CLASS_DETAIL, METHOD_SUMMARY, METHOD_DETAIL, ASM; see org.apache.cassandra.simulator.asm.MethodLogger.Level --> |
| 1867 | + <property name="simulator.asm.print" value="none"/> <!-- Supports: NONE, CLASS_SUMMARY, CLASS_DETAIL, METHOD_SUMMARY, METHOD_DETAIL, ASM; see org.apache.cassandra.simulator.asm.MethodLogger.Level --> |
| 1868 | + <resources id="_simulator_jvmargs_items"> |
| 1869 | + <string>-Djdk.attach.allowAttachSelf=true</string> |
| 1870 | + <string>-Dlogback.configurationFile=test/conf/logback-simulator.xml</string> |
| 1871 | + <string>-Dcassandra.ring_delay_ms=10000</string> |
| 1872 | + <string>-Dcassandra.tolerate_sstable_size=true</string> |
| 1873 | + <string>-Dcassandra.skip_sync=true</string> |
| 1874 | + <string>-Dcassandra.debugrefcount=false</string> |
| 1875 | + <string>-Dcassandra.test.simulator.determinismcheck=strict</string> |
| 1876 | + <string>-Dcassandra.test.simulator.print_asm=${simulator.asm.print}</string> |
| 1877 | + <!-- Support Simulator Tests --> |
| 1878 | + <string>-javaagent:${test.lib}/jars/simulator-asm.jar</string> |
| 1879 | + <string>-Xbootclasspath/a:${test.lib}/jars/simulator-bootstrap.jar</string> |
| 1880 | + <string>-XX:ActiveProcessorCount=4</string> |
| 1881 | + <string>-XX:-TieredCompilation</string> |
| 1882 | + <string>-XX:-BackgroundCompilation</string> |
| 1883 | + <string>-XX:CICompilerCount=1</string> |
| 1884 | + <string>-XX:Tier4CompileThreshold=1000</string> |
| 1885 | + <string>-XX:ReservedCodeCacheSize=256M</string> |
| 1886 | + <!-- total memory must fit within the pod constraints, see comments in .jenkins/Jenkinsfile and dind's container resourceRequestMemory in .jenkins/k8s/jenkins-deployment.yaml --> |
| 1887 | + <string>-Xmx8G</string> |
| 1888 | + <!-- Harry tests kept failing due to direct memory failures and looks like its undersized... so upping to allow more stable runs --> |
| 1889 | + <string>-XX:MaxDirectMemorySize=8G</string> |
| 1890 | + </resources> |
| 1891 | + <pathconvert property="_simulator.jvmargs_concat" refid="_simulator_jvmargs_items" pathsep=" "/> |
| 1892 | + |
1861 | 1893 | <target name="test-simulator-dtest" depends="maybe-build-test" description="Execute simulator dtests"> |
1862 | 1894 | <testmacro inputdir="${test.simulator-test.src}" timeout="${test.simulation.timeout}" forkmode="perTest" showoutput="true" filter="**/test/${test.name}.java" maxmemory="8g"> |
1863 | | - <jvmarg value="-Dlogback.configurationFile=test/conf/logback-simulator.xml"/> |
1864 | | - <jvmarg value="-Dcassandra.ring_delay_ms=10000"/> |
1865 | | - <jvmarg value="-Dcassandra.tolerate_sstable_size=true"/> |
1866 | | - <jvmarg value="-Dcassandra.skip_sync=true" /> |
1867 | | - <jvmarg value="-Dcassandra.debugrefcount=false"/> |
1868 | | - <jvmarg value="-Dcassandra.test.simulator.determinismcheck=strict"/> |
1869 | | - <jvmarg value="-Dcassandra.test.simulator.print_asm=${simulator.asm.print}" /> |
1870 | | - <!-- Support Simulator Tests --> |
1871 | | - <jvmarg line="-javaagent:${test.lib}/jars/simulator-asm.jar"/> |
1872 | | - <jvmarg line="-Xbootclasspath/a:${test.lib}/jars/simulator-bootstrap.jar"/> |
1873 | | - <jvmarg line="-XX:ActiveProcessorCount=4"/> |
1874 | | - <jvmarg line="-XX:-TieredCompilation"/> |
1875 | | - <jvmarg line="-XX:-BackgroundCompilation"/> |
1876 | | - <jvmarg line="-XX:CICompilerCount=1"/> |
1877 | | - <jvmarg line="-XX:Tier4CompileThreshold=1000"/> |
1878 | | - <jvmarg line="-XX:ReservedCodeCacheSize=256M"/> |
1879 | | - <!-- total memory must fit within the pod constraints, see comments in .jenkins/Jenkinsfile and dind's container resourceRequestMemory in .jenkins/k8s/jenkins-deployment.yaml --> |
1880 | | - <jvmarg line="-Xmx8G"/> |
1881 | | - <!-- Harry tests kept failing due to direct memory failures and looks like its undersized... so upping to allow more stable runs --> |
1882 | | - <jvmarg line="-XX:MaxDirectMemorySize=8G"/> |
| 1895 | + <jvmarg line="${_simulator.jvmargs_concat}"/> |
1883 | 1896 | </testmacro> |
1884 | 1897 | </target> |
1885 | 1898 |
|
| 1899 | + <macrodef name="testlist-simulator"> |
| 1900 | + <attribute name="test.file.list" /> |
| 1901 | + <sequential> |
| 1902 | + <testmacrohelper inputdir="${test.simulator-test.src}" timeout="${test.timeout}" |
| 1903 | + forkmode="perTest" showoutput="true" |
| 1904 | + exclude="**/*.java" filelist="@{test.file.list}" |
| 1905 | + maxmemory="8g"> |
| 1906 | + <jvmarg line="${_simulator.jvmargs_concat}"/> |
| 1907 | + </testmacrohelper> |
| 1908 | + </sequential> |
| 1909 | + </macrodef> |
| 1910 | + |
1886 | 1911 | <!-- To run them you'll need to: |
1887 | 1912 | - `ant dtest-jar` on each version involved, including your current feature branch |
1888 | 1913 | - copy the build/dtest-*.jar for each version into your feature branch build folder |
|
0 commit comments