|
2090 | 2090 |
|
2091 | 2091 | <!-- ==================== End of Test Profile System ==================== --> |
2092 | 2092 |
|
| 2093 | + <!-- |
| 2094 | + Category-based smoke test target (proof of concept). |
| 2095 | +
|
| 2096 | + Runs org.apache.tomcat.categories.SmokeSuite, which uses JUnit @Category |
| 2097 | + to select tests annotated with @Category(SmokeTest.class). This is an |
| 2098 | + alternative to the property-based smoke profile and produces identical |
| 2099 | + test coverage while keeping the test list compile-checked in SmokeSuite.java. |
| 2100 | +
|
| 2101 | + Usage: ant test-smoke-category |
| 2102 | + --> |
| 2103 | + <target name="test-smoke-category" |
| 2104 | + description="Runs smoke tests via JUnit @Category (see SmokeSuite.java)" |
| 2105 | + depends="test-compile,deploy"> |
| 2106 | + <mkdir dir="${test.reports}" /> |
| 2107 | + <junit printsummary="${junit.printsummary}" fork="yes" dir="." showoutput="${junit.showoutput}" |
| 2108 | + errorproperty="test.result.error" |
| 2109 | + failureproperty="test.result.failure" |
| 2110 | + haltonfailure="${test.haltonfailure}"> |
| 2111 | + <jvmarg value="${test.jvmarg.egd}"/> |
| 2112 | + <jvmarg value="-Dfile.encoding=UTF-8"/> |
| 2113 | + <jvmarg value="${test.xmx}"/> |
| 2114 | + <jvmarg value="${runtests.librarypath}"/> |
| 2115 | + <jvmarg value="${test.formatter}"/> |
| 2116 | + <jvmarg value="-Djava.net.preferIPv4Stack=${java.net.preferIPv4Stack}"/> |
| 2117 | + <jvmarg value="${opens.javalang}"/> |
| 2118 | + <jvmarg value="${opens.javaio}"/> |
| 2119 | + <jvmarg value="${opens.sunrmi}"/> |
| 2120 | + <jvmarg value="${opens.javautil}"/> |
| 2121 | + <jvmarg value="${opens.javautilconcurrent}"/> |
| 2122 | + <jvmarg value="${native.nativeaccess}"/> |
| 2123 | + <jvmarg value="${openssl.ffm.1}"/> |
| 2124 | + <jvmarg value="${openssl.ffm.2}"/> |
| 2125 | + <jvmarg value="${openssl.ffm.3}"/> |
| 2126 | + <classpath refid="tomcat.test.classpath" /> |
| 2127 | + <sysproperty key="tomcat.test.temp" value="${test.temp}" /> |
| 2128 | + <sysproperty key="tomcat.test.basedir" value="${test.basedir}" /> |
| 2129 | + <sysproperty key="tomcat.test.tomcatbuild" value="${tomcat.build}" /> |
| 2130 | + <sysproperty key="tomcat.test.protocol" value="org.apache.coyote.http11.Http11NioProtocol" /> |
| 2131 | + <sysproperty key="tomcat.test.accesslog" value="${test.accesslog}" /> |
| 2132 | + <sysproperty key="tomcat.test.reports" value="${test.reports}" /> |
| 2133 | + <sysproperty key="tomcat.test.openssl.path" value="${test.openssl.path}" /> |
| 2134 | + <sysproperty key="tomcat.test.httpd.path" value="${test.httpd.path}" /> |
| 2135 | + <sysproperty key="tomcat.test.openssl.unimplemented" value="${test.openssl.unimplemented}" /> |
| 2136 | + <sysproperty key="tomcat.test.relaxTiming" value="${test.relaxTiming}" /> |
| 2137 | + <sysproperty key="tomcat.test.sslImplementation" value="${test.sslImplementation}" /> |
| 2138 | + <sysproperty key="tomcat.test.http2.loopCount" value="${test.http2.loopCount}" /> |
| 2139 | + <formatter type="${junit.formatter.type}" |
| 2140 | + usefile="${junit.formatter.usefile}" |
| 2141 | + extension=".NIO${junit.formatter.extension}" /> |
| 2142 | + <test todir="${test.reports}" name="org.apache.tomcat.categories.SmokeSuite" /> |
| 2143 | + </junit> |
| 2144 | + <antcall target="test-status"/> |
| 2145 | + </target> |
| 2146 | + |
2093 | 2147 | <target name="test" description="Runs the JUnit test cases" |
2094 | 2148 | depends="-test-name-default,test-nio,coverage-report,test-status" /> |
2095 | 2149 |
|
|
0 commit comments