Implement script environment variables in backend, add simple test

This commit is contained in:
Ilya Chernikov
2018-04-25 13:06:58 +02:00
parent a9600e34bf
commit dff4be9e04
9 changed files with 158 additions and 43 deletions
@@ -29,6 +29,11 @@ public class CustomScriptCodegenTestGenerated extends AbstractCustomScriptCodege
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/customScript"), Pattern.compile("^(.+)\\.kts$"), TargetBackend.ANY, true);
}
@TestMetadata("simpleEnvVars.kts")
public void testSimpleEnvVars() throws Exception {
runTest("compiler/testData/codegen/customScript/simpleEnvVars.kts");
}
@TestMetadata("stringReceiver.kts")
public void testStringReceiver() throws Exception {
runTest("compiler/testData/codegen/customScript/stringReceiver.kts");