@@ -287,18 +287,26 @@ docker ps
287287echo ' Clean up result root...'
288288rm -rf " ${RESULT_ROOT:? } /*"
289289
290+ # If IT_TEST is set, integration-test profile is used to run the tests and
291+ # MAVEN_PROFILE_NAME parameter is ignored
292+
293+ # If the IT_TEST(test_filter) is set to "**/It*" (i.e. all tests are chosen)
294+ # and maven profile is chosen to any of toolkits-srg or fmw-image-cert or
295+ # all tests are run with chosen profile, else all the tests are run
296+ # with integration-tests profile with certain exclusion.
297+
290298echo " Run tests..."
291299
292300if [ " ${test_filter} " != " **/It*" ]; then
293- echo " Running mvn -Dit.test=${test_filter} -Dwdt.download.url=${wdt_download_url} -Dwit.download.url=${wit_download_url} -Dwle.download.url=${wle_download_url} -DPARALLEL_CLASSES=${parallel_run} -DNUMBER_OF_THREADS=${threads} -pl integration-tests -P ${maven_profile_name} verify"
294- time mvn -Dit.test=" ${test_filter} " -Dwdt.download.url=" ${wdt_download_url} " -Dwit.download.url=" ${wit_download_url} " -Dwle.download.url=" ${wle_download_url} " -DPARALLEL_CLASSES=" ${parallel_run} " -DNUMBER_OF_THREADS=" ${threads} " -pl integration-tests -P ${maven_profile_name} verify 2>&1 | tee " ${RESULT_ROOT} /kindtest.log" || captureLogs
301+ echo " Running mvn -Dit.test=${test_filter} -Dwdt.download.url=${wdt_download_url} -Dwit.download.url=${wit_download_url} -Dwle.download.url=${wle_download_url} -DPARALLEL_CLASSES=${parallel_run} -DNUMBER_OF_THREADS=${threads} -pl integration-tests -P integration-tests verify"
302+ time mvn -Dit.test=" ${test_filter} " -Dwdt.download.url=" ${wdt_download_url} " -Dwit.download.url=" ${wit_download_url} " -Dwle.download.url=" ${wle_download_url} " -DPARALLEL_CLASSES=" ${parallel_run} " -DNUMBER_OF_THREADS=" ${threads} " -pl integration-tests -P integration-tests verify 2>&1 | tee " ${RESULT_ROOT} /kindtest.log" || captureLogs
295303else
296304 if [ " ${maven_profile_name} " = " toolkits-srg" ] || [ " ${maven_profile_name} " = " fmw-image-cert" ] || [ " ${maven_profile_name} " = " kind-sequential" ]; then
297305 echo " Running mvn -Dwdt.download.url=${wdt_download_url} -Dwit.download.url=${wit_download_url} -Dwle.download.url=${wle_download_url} -DPARALLEL_CLASSES=${parallel_run} -DNUMBER_OF_THREADS=${threads} -pl integration-tests -P ${maven_profile_name} verify"
298306 time mvn -Dwdt.download.url=" ${wdt_download_url} " -Dwit.download.url=" ${wit_download_url} " -Dwle.download.url=" ${wle_download_url} " -DPARALLEL_CLASSES=" ${parallel_run} " -DNUMBER_OF_THREADS=" ${threads} " -pl integration-tests -P ${maven_profile_name} verify 2>&1 | tee " ${RESULT_ROOT} /kindtest.log" || captureLogs
299307 else
300- echo " Running mvn -Dit.test=!ItOperatorWlsUpgrade, !ItDedicatedMode, !ItT3Channel, !ItOperatorFmwUpgrade, !ItOCILoadBalancer, !ItMiiSampleFmwMain, !ItIstioCrossClusters*, !ItMultiDomainModels, !ItOpenshiftIstioMiiDomain -Dwdt.download.url=${wdt_download_url} -Dwit.download.url=${wit_download_url} -Dwle.download.url=${wle_download_url} -DPARALLEL_CLASSES=${parallel_run} -DNUMBER_OF_THREADS=${threads} -pl integration-tests -P ${maven_profile_name} verify"
301- time mvn -Dit.test=" !ItOperatorWlsUpgrade, !ItFmwDomainInPVUsingWDT, !ItFmwDynamicDomainInPV, !ItDedicatedMode, !ItT3Channel, !ItOperatorFmwUpgrade, !ItOCILoadBalancer, !ItMiiSampleFmwMain, !ItIstioCrossClusters*, !ItResilience, !ItMultiDomainModels, !ItOpenshiftIstioMiiDomain" -Dwdt.download.url=" ${wdt_download_url} " -Dwit.download.url=" ${wit_download_url} " -Dwle.download.url=" ${wle_download_url} " -DPARALLEL_CLASSES=" ${parallel_run} " -DNUMBER_OF_THREADS=" ${threads} " -pl integration-tests -P ${maven_profile_name} verify 2>&1 | tee " ${RESULT_ROOT} /kindtest.log" || captureLogs
308+ echo " Running mvn -Dit.test=!ItOperatorWlsUpgrade, !ItDedicatedMode, !ItT3Channel, !ItOperatorFmwUpgrade, !ItOCILoadBalancer, !ItMiiSampleFmwMain, !ItIstioCrossClusters*, !ItMultiDomainModels, !ItOpenshiftIstioMiiDomain -Dwdt.download.url=${wdt_download_url} -Dwit.download.url=${wit_download_url} -Dwle.download.url=${wle_download_url} -DPARALLEL_CLASSES=${parallel_run} -DNUMBER_OF_THREADS=${threads} -pl integration-tests -P integration-tests verify"
309+ time mvn -Dit.test=" !ItOperatorWlsUpgrade, !ItFmwDomainInPVUsingWDT, !ItFmwDynamicDomainInPV, !ItDedicatedMode, !ItT3Channel, !ItOperatorFmwUpgrade, !ItOCILoadBalancer, !ItMiiSampleFmwMain, !ItIstioCrossClusters*, !ItResilience, !ItMultiDomainModels, !ItOpenshiftIstioMiiDomain" -Dwdt.download.url=" ${wdt_download_url} " -Dwit.download.url=" ${wit_download_url} " -Dwle.download.url=" ${wle_download_url} " -DPARALLEL_CLASSES=" ${parallel_run} " -DNUMBER_OF_THREADS=" ${threads} " -pl integration-tests -P integration-tests verify 2>&1 | tee " ${RESULT_ROOT} /kindtest.log" || captureLogs
302310 fi
303311fi
304312
0 commit comments