Exclude tests with language version less than 1.3
This commit is contained in:
committed by
Pavel Punegov
parent
5165617f1c
commit
8092abc2b9
@@ -669,12 +669,6 @@ class RunExternalTestGroup extends RunStandaloneKonanTest {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
def languageVersion = findLinesWithPrefixesRemoved(text, "// LANGUAGE_VERSION: ")
|
|
||||||
if (languageVersion.size() != 0) {
|
|
||||||
flags.add("-language-version")
|
|
||||||
flags.add(languageVersion.first())
|
|
||||||
}
|
|
||||||
|
|
||||||
def experimentalSettings = findLinesWithPrefixesRemoved(text, "// !USE_EXPERIMENTAL: ")
|
def experimentalSettings = findLinesWithPrefixesRemoved(text, "// !USE_EXPERIMENTAL: ")
|
||||||
if (experimentalSettings.size() != 0) {
|
if (experimentalSettings.size() != 0) {
|
||||||
experimentalSettings.forEach { line ->
|
experimentalSettings.forEach { line ->
|
||||||
@@ -855,6 +849,12 @@ fun runTest() {
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
def version = findLinesWithPrefixesRemoved(text, '// LANGUAGE_VERSION: ')
|
||||||
|
if (version.size() != 0 && !version.contains("1.3")) {
|
||||||
|
// Support tests for 1.3 and exclude 1.2
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
def targetBackend = findLinesWithPrefixesRemoved(text, "// TARGET_BACKEND")
|
def targetBackend = findLinesWithPrefixesRemoved(text, "// TARGET_BACKEND")
|
||||||
if (targetBackend.size() != 0) {
|
if (targetBackend.size() != 0) {
|
||||||
// There is some target backend. Check if it is NATIVE or not.
|
// There is some target backend. Check if it is NATIVE or not.
|
||||||
|
|||||||
Reference in New Issue
Block a user