summaryrefslogtreecommitdiff
path: root/netci.groovy
diff options
context:
space:
mode:
authorRoman Artemev <rartemev@microsoft.com>2017-06-12 16:42:50 -0700
committerRoman Artemev <rartemev@microsoft.com>2017-06-27 11:16:35 -0700
commitdfa46929e97aa6e090ad06ea9192b1814291135e (patch)
treedd7288e433e013feac93ef358d1bc028d32a2d5c /netci.groovy
parent959dacc9f0b09eb9f8c418eabb1b9180ceb6f5ac (diff)
downloadcoreclr-dfa46929e97aa6e090ad06ea9192b1814291135e.tar.gz
coreclr-dfa46929e97aa6e090ad06ea9192b1814291135e.tar.bz2
coreclr-dfa46929e97aa6e090ad06ea9192b1814291135e.zip
Fix legacyjit CI testing
Diffstat (limited to 'netci.groovy')
-rwxr-xr-xnetci.groovy42
1 files changed, 40 insertions, 2 deletions
diff --git a/netci.groovy b/netci.groovy
index e9202bbca1..979d023bdb 100755
--- a/netci.groovy
+++ b/netci.groovy
@@ -143,7 +143,7 @@ class Constants {
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) {
@@ -363,6 +363,7 @@ def static getJobName(def configuration, def architecture, def os, def scenario,
}
break
case 'x86':
+ case 'x86lb':
baseName = architecture.toLowerCase() + '_' + configuration.toLowerCase() + '_' + os.toLowerCase()
break
default:
@@ -381,6 +382,7 @@ def static addNonPRTriggers(def job, def branch, def isPR, def architecture, def
switch (architecture) {
case 'x64':
case 'x86':
+ case 'x86lb':
if (architecture == 'x86' && os == 'Ubuntu') {
Utilities.addPeriodicTrigger(job, '@daily')
}
@@ -439,7 +441,7 @@ def static addNonPRTriggers(def job, def branch, def isPR, def architecture, def
}
}
// 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)
}
@@ -1345,6 +1347,26 @@ def static addTriggers(def job, def branch, def isPR, def architecture, def os,
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}");
@@ -1364,8 +1386,12 @@ def static calculateBuildCommands(def newJob, def scenario, def branch, def isPR
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}"
@@ -1523,6 +1549,9 @@ def static calculateBuildCommands(def newJob, def scenario, def branch, def isPR
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) {
@@ -1826,6 +1855,11 @@ combinedScenarios.each { scenario ->
return
}
break
+ case 'x86lb':
+ if (os != 'Windows_NT') {
+ return
+ }
+ break
case 'x64':
// Everything implemented
break
@@ -1866,6 +1900,10 @@ combinedScenarios.each { scenario ->
}
// 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
}