build/tests: support declaring tests to be manually executed
This commit is contained in:
committed by
SvyatoslavScherbina
parent
725e367614
commit
304a9ebd8e
@@ -1500,6 +1500,7 @@ task interop_echo_server(type: RunInteropKonanTest) {
|
||||
if (isLinux()) {
|
||||
disabled = true
|
||||
}
|
||||
run = false
|
||||
source = "interop/basics/echo_server.kt"
|
||||
interop = 'sockets'
|
||||
}
|
||||
|
||||
@@ -2,7 +2,8 @@ import kotlinx.cinterop.*
|
||||
import sockets.*
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
if (args.size == 0) {
|
||||
if (args.size < 1) {
|
||||
println("Usage: ./echo_server <port>")
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
@@ -25,6 +25,7 @@ abstract class KonanTest extends JavaExec {
|
||||
List<String> arguments = null
|
||||
|
||||
boolean enabled = true
|
||||
boolean run = true
|
||||
|
||||
void setDisabled(boolean value) {
|
||||
this.enabled = !value
|
||||
@@ -141,6 +142,11 @@ abstract class KonanTest extends JavaExec {
|
||||
def exe = buildExePath()
|
||||
|
||||
compileTest(buildCompileList(), exe)
|
||||
|
||||
if (!run) {
|
||||
println "to be executed manually: $exe"
|
||||
return
|
||||
}
|
||||
println "execution :$exe"
|
||||
|
||||
def out = null
|
||||
|
||||
Reference in New Issue
Block a user