Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Nattress <nattress@gmail.com>2017-01-20 01:54:36 +0300
committerSimon Nattress <nattress@gmail.com>2017-01-20 01:57:19 +0300
commitd9459c0e691dbfba6f2f6fecc530c1e9ff9d5704 (patch)
treeeb8623fa83fdf4c56c10d85ba1df3645d9fda815
parente995e302400ddd80fb1586d4261034a6be4b2650 (diff)
Unix CoreCLR tests CI authoring
Author the CI netci.groovy changes along with a stubbed out `runtest.sh -coreclr top200` implementation so that the actual PR containing the test changes will run. This is needed to ensure we don’t break the build since netci.groovy changes aren’t picked up in a PR (CI takes netci.groovy from HEAD).
-rw-r--r--netci.groovy21
-rwxr-xr-xtests/runtest.sh5
2 files changed, 24 insertions, 2 deletions
diff --git a/netci.groovy b/netci.groovy
index 20bef1863..e6d1b990a 100644
--- a/netci.groovy
+++ b/netci.groovy
@@ -30,7 +30,10 @@ def osList = ['Ubuntu', 'OSX', 'Windows_NT']
def newJobName = Utilities.getFullJobName(project, lowercaseConfiguration + '_' + os.toLowerCase(), isPR)
def buildString = "";
def prJobDescription = "${os} ${configuration}";
-
+ if (configuration == 'Debug') {
+ prJobDescription += " and CoreCLR tests"
+ }
+
// Calculate the build commands
if (os == 'Windows_NT') {
buildString = "build.cmd ${lowercaseConfiguration}"
@@ -38,6 +41,7 @@ def osList = ['Ubuntu', 'OSX', 'Windows_NT']
}
else {
buildString = "./build.sh ${lowercaseConfiguration}"
+ testScriptString = "tests/runtest.sh -coreclr "
}
// Create a new job with the specified name. The brace opens a new closure
@@ -51,7 +55,6 @@ def osList = ['Ubuntu', 'OSX', 'Windows_NT']
if (configuration == 'Debug') {
if (isPR) {
- prJobDescription += " and CoreCLR tests"
// Run a small set of BVTs during PR validation
batchFile(testScriptString + "Top200")
}
@@ -63,6 +66,20 @@ def osList = ['Ubuntu', 'OSX', 'Windows_NT']
}
else {
shell(buildString)
+
+ if (configuration == 'Debug') {
+ if (isPR) {
+ prJobDescription += " and CoreCLR tests"
+ // Run a small set of BVTs during PR validation
+ shell(testScriptString + "top200")
+ }
+ else {
+ // Run the full set of known passing tests in the post-commit job
+
+ // Todo: Enable push test jobs once we establish a reasonable passing set of tests
+ // shell(testScriptString + "KnownGood")
+ }
+ }
}
}
}
diff --git a/tests/runtest.sh b/tests/runtest.sh
index c786b5c0c..2593515fb 100755
--- a/tests/runtest.sh
+++ b/tests/runtest.sh
@@ -105,6 +105,11 @@ while [ "$1" != "" ]; do
shift
CoreRT_CliBinDir=$1
;;
+ -coreclr)
+ shift
+ echo "Tests will run here. For now, early out."
+ exit 0
+ ;;
*)
;;
esac