[Native][tests] Dump the list of all available tests during compilation

^KT-50316
This commit is contained in:
Dmitriy Dolovov
2022-02-10 17:15:51 +03:00
parent 703aea1362
commit 56510fbc6c
7 changed files with 96 additions and 32 deletions
@@ -386,6 +386,7 @@ class K2Native : CLICompiler<K2NativeCompilerArguments>() {
putIfNotNull(RUNTIME_LOGS, arguments.runtimeLogs)
putIfNotNull(BUNDLE_ID, parseBundleId(arguments, outputKind, configuration))
put(MEANINGFUL_BRIDGE_NAMES, arguments.meaningfulBridgeNames)
arguments.testDumpOutputPath?.let { put(TEST_DUMP_OUTPUT_PATH, it) }
put(PARTIAL_LINKAGE, arguments.partialLinkage)
}
}
@@ -361,6 +361,13 @@ class K2NativeCompilerArguments : CommonCompilerArguments() {
@Argument(value = "-Xmeaningful-bridge-names", description = "(Unstable) Produce meaningful names for reverse bridges. Useful only for compiler tests.")
var meaningfulBridgeNames: Boolean = false
@Argument(
value = "-Xdump-tests-to",
valueDescription = "<path>",
description = "Path to a file to dump the list of all available tests"
)
var testDumpOutputPath: String? = null
@Argument(value = "-Xlazy-ir-for-caches", valueDescription = "{disable|enable}", description = "Use lazy IR for cached libraries")
var lazyIrForCaches: String? = null