Utilities.getFullJobName(project, getBuildJobName(configuration, architecture, os, scenario), isPR)
def inputWindowTestsBuildName = Utilities.getFolderName(project) + '/' +
Utilities.getFullJobName(project, getBuildJobName(configuration, architecture, 'windows_nt', scenario), isPR)
+ // Enable Server GC for Ubuntu PR builds
+ def serverGCString = ""
+ if (os == 'Ubuntu' && isPR){
+ serverGCString = "--useServerGC"
+ }
def newJob = job(Utilities.getFullJobName(project, jobName, isPR)) {
// Add parameters for the inputs
--coreClrBinDir=\"\${WORKSPACE}/bin/Product/${osGroup}.${architecture}.${configuration}\" \\
--mscorlibDir=\"\${WORKSPACE}/bin/Product/${osGroup}.${architecture}.${configuration}\" \\
--coreFxBinDir=\"\${WORKSPACE}/bin/${osGroup}.AnyCPU.Release\" \\
- --coreFxNativeBinDir=\"\${WORKSPACE}/bin/${osGroup}.${architecture}.Release\"""")
+ --coreFxNativeBinDir=\"\${WORKSPACE}/bin/${osGroup}.${architecture}.Release\" \\
+ \${serverGCString}""")
}
}
echo ' --sequential : Run tests sequentially (default is to run in parallel).'
echo ' -v, --verbose : Show output from each test.'
echo ' -h|--help : Show usage information.'
+ echo ' --useServerGC : Enable server GC for this test run'
echo ''
}
coreFxBinDir=
coreFxNativeBinDir=
((disableEventLogging = 0))
+((serverGC = 0))
# Handle arguments
verbose=0
--sequential)
((maxProcesses = 1))
;;
+ --useServerGC)
+ ((serverGC = 1))
+ ;;
*)
echo "Unknown switch: $i"
print_usage
export COMPlus_EnableEventLog=1
fi
+export CORECLR_SERVER_GC="$serverGC"
+
if [ -z "$testRootDir" ]; then
echo "--testRootDir is required."
print_usage
exit $EXIT_CODE_TEST_FAILURE
fi
-exit $EXIT_CODE_SUCCESS
+exit $EXIT_CODE_SUCCESS
\ No newline at end of file