Implement command-line REPL smoke test

This commit is contained in:
Ilya Chernikov
2019-06-25 15:14:51 +02:00
parent 3c1c9ca523
commit 1b8cd9b731
2 changed files with 126 additions and 1 deletions
@@ -36,7 +36,7 @@ class LauncherScriptTest : TestCaseWithTmpdir() {
) {
val executableFileName = if (SystemInfo.isWindows) "$executableName.bat" else executableName
val launcherFile = File(PathUtil.kotlinPathsForDistDirectory.homePath, "bin/$executableFileName")
assertTrue("Launcher script not found, run 'ant dist': ${launcherFile.absolutePath}", launcherFile.exists())
assertTrue("Launcher script not found, run dist task: ${launcherFile.absolutePath}", launcherFile.exists())
val cmd = GeneralCommandLine(launcherFile.absolutePath, *args)
workDirectory?.let(cmd::withWorkDirectory)