Updated integration tests cases, increased nightly iteration count (#263)
This commit is contained in:
parent
a59682be54
commit
fe9f2ba006
|
@ -10,7 +10,7 @@ pipeline {
|
||||||
string(
|
string(
|
||||||
name: 'PROPTEST_CASES',
|
name: 'PROPTEST_CASES',
|
||||||
description: 'Test cases to be executed',
|
description: 'Test cases to be executed',
|
||||||
defaultValue: params.PROPTEST_CASES ?: '500000'
|
defaultValue: params.PROPTEST_CASES ?: '1000000'
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@ pipeline {
|
||||||
/* Avoid cache poisoning by other jobs. */
|
/* Avoid cache poisoning by other jobs. */
|
||||||
GOCACHE = "${env.WORKSPACE_TMP}/go-build"
|
GOCACHE = "${env.WORKSPACE_TMP}/go-build"
|
||||||
GOPATH = "${env.WORKSPACE_TMP}/go"
|
GOPATH = "${env.WORKSPACE_TMP}/go"
|
||||||
PROPTEST_CASES = "${params.PROTEST_CASES}"
|
PROPTEST_CASES = "${params.PROPTEST_CASES}"
|
||||||
}
|
}
|
||||||
|
|
||||||
options {
|
options {
|
||||||
|
|
|
@ -45,9 +45,17 @@ pipeline {
|
||||||
for (int i = 0; i < iterations; i++) {
|
for (int i = 0; i < iterations; i++) {
|
||||||
echo "Running iteration ${i + 1} of ${iterations}"
|
echo "Running iteration ${i + 1} of ${iterations}"
|
||||||
|
|
||||||
def result = sh(script: 'cargo test ten_nodes_happy', returnStatus: true)
|
if (sh(script: 'cargo test ten_nodes_happy', returnStatus: true) != 0) {
|
||||||
|
error("Test failed on iteration ${i + 1}")
|
||||||
|
break
|
||||||
|
}
|
||||||
|
|
||||||
if (result != 0) {
|
if (sh(script: 'cargo test two_nodes_happy', returnStatus: true) != 0) {
|
||||||
|
error("Test failed on iteration ${i + 1}")
|
||||||
|
break
|
||||||
|
}
|
||||||
|
|
||||||
|
if (sh(script: 'cargo test ten_nodes_one_down', returnStatus: true) != 0) {
|
||||||
error("Test failed on iteration ${i + 1}")
|
error("Test failed on iteration ${i + 1}")
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
@ -56,6 +64,7 @@ pipeline {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
post {
|
post {
|
||||||
failure {
|
failure {
|
||||||
script {
|
script {
|
||||||
|
|
Loading…
Reference in New Issue