def static configurationList = ['Debug', 'Checked', 'Release']
// This is the set of architectures
- def static architectureList = ['arm', 'arm64', 'x64', 'x86']
+ def static architectureList = ['arm', 'arm64', 'x64', 'x86', 'x86lb']
}
def static setMachineAffinity(def job, def os, def architecture, def options = null) {
}
break
case 'x86':
+ case 'x86lb':
baseName = architecture.toLowerCase() + '_' + configuration.toLowerCase() + '_' + os.toLowerCase()
break
default:
switch (architecture) {
case 'x64':
case 'x86':
+ case 'x86lb':
if (architecture == 'x86' && os == 'Ubuntu') {
Utilities.addPeriodicTrigger(job, '@daily')
}
}
}
// For x86, only add per-commit jobs for Windows
- else if (architecture == 'x86') {
+ else if (architecture == 'x86' || architecture == 'x86lb') {
if (os == 'Windows_NT') {
Utilities.addGithubPushTrigger(job)
}
break
}
break
+ // editor brace matching: }
+ case 'x86lb': // editor brace matching: {
+ assert (os == 'Windows_NT')
+ assert (scenario == 'default' || Constants.r2rJitStressScenarios.indexOf(scenario) !=1)
+
+ def arch = 'x86'
+ def jit = 'legacy_backend'
+ switch (scenario) {
+ case 'default':
+ if (configuration == 'Checked') {
+ Utilities.addGithubPRTriggerForBranch(job, branch, "${os} ${arch} ${jit} ${configuration} Build and Test",
+ "(?i).*test\\W+${os}\\W+${arch}\\W+${jit}\\W+${configuration}.*")
+ }
+ break
+ default:
+ println("Unknown scenario: ${os} ${arch} ${jit} ${scenario}");
+ assert false
+ break
+ }
+ break
// editor brace matching: }
default:
println("Unknown architecture: ${architecture}");
switch (architecture) {
case 'x64':
case 'x86':
+ case 'x86lb':
def arch = architecture
def buildOpts = ''
+ if (architecture == 'x86lb') {
+ arch = 'x86'
+ }
if (scenario == 'illink') {
buildCommands += "tests\\scripts\\build_illink.cmd clone ${arch}"
else if (architecture == 'x64' || architecture == 'x86') {
buildCommands += "tests\\runtest.cmd ${runtestArguments}"
}
+ else if (architecture == 'x86lb') {
+ buildCommands += "tests\\runtest.cmd ${runtestArguments} TestEnv %WORKSPACE%\\tests\\legacyjit_x86_testenv.cmd"
+ }
}
if (!enableCorefxTesting) {
return
}
break
+ case 'x86lb':
+ if (os != 'Windows_NT') {
+ return
+ }
+ break
case 'x64':
// Everything implemented
break
}
// Windows: Everything implemented
break
+ case 'x86lb':
+ // No stress modes for legacy jit.
+ // (There's no technical reason we couldn't allow these.)
+ return
default:
return
}