build/tests: support declaring tests to be manually executed

This commit is contained in:
Svyatoslav Scherbina
2017-03-09 16:47:39 +07:00
committed by SvyatoslavScherbina
parent 725e367614
commit 304a9ebd8e
3 changed files with 9 additions and 1 deletions
+1
View File
@@ -1500,6 +1500,7 @@ task interop_echo_server(type: RunInteropKonanTest) {
if (isLinux()) { if (isLinux()) {
disabled = true disabled = true
} }
run = false
source = "interop/basics/echo_server.kt" source = "interop/basics/echo_server.kt"
interop = 'sockets' interop = 'sockets'
} }
@@ -2,7 +2,8 @@ import kotlinx.cinterop.*
import sockets.* import sockets.*
fun main(args: Array<String>) { fun main(args: Array<String>) {
if (args.size == 0) { if (args.size < 1) {
println("Usage: ./echo_server <port>")
return return
} }
@@ -25,6 +25,7 @@ abstract class KonanTest extends JavaExec {
List<String> arguments = null List<String> arguments = null
boolean enabled = true boolean enabled = true
boolean run = true
void setDisabled(boolean value) { void setDisabled(boolean value) {
this.enabled = !value this.enabled = !value
@@ -141,6 +142,11 @@ abstract class KonanTest extends JavaExec {
def exe = buildExePath() def exe = buildExePath()
compileTest(buildCompileList(), exe) compileTest(buildCompileList(), exe)
if (!run) {
println "to be executed manually: $exe"
return
}
println "execution :$exe" println "execution :$exe"
def out = null def out = null