diff options
author | Matt Lee <matthewhlee@google.com> | 2023-03-02 14:23:51 -0800 |
---|---|---|
committer | Matt Lee <matthewhlee@google.com> | 2023-03-02 14:23:51 -0800 |
commit | ee181be03f0da2d752b6b31d4c698026b41c7f44 (patch) | |
tree | 1afd9af5b30999f16df84fce9e989cd4cc3b3b16 /java/kotlin_test.go | |
parent | 616151ebbfbae6bb1f9cab420e5f3cfb27d71a21 (diff) | |
parent | ab123c3736ddaae9eb1230fb2310cccac81625f0 (diff) |
Merge t-qpr-2023-03
Change-Id: I61ec429dddae7971efe2a62fd5f1c173a896ee15
Diffstat (limited to 'java/kotlin_test.go')
-rw-r--r-- | java/kotlin_test.go | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/java/kotlin_test.go b/java/kotlin_test.go index 435d78294..491ce2939 100644 --- a/java/kotlin_test.go +++ b/java/kotlin_test.go @@ -42,6 +42,11 @@ func TestKotlin(t *testing.T) { } `) + kotlinStdlib := ctx.ModuleForTests("kotlin-stdlib", "android_common"). + Output("turbine-combined/kotlin-stdlib.jar").Output + kotlinAnnotations := ctx.ModuleForTests("kotlin-annotations", "android_common"). + Output("turbine-combined/kotlin-annotations.jar").Output + fooKotlinc := ctx.ModuleForTests("foo", "android_common").Rule("kotlinc") fooJavac := ctx.ModuleForTests("foo", "android_common").Rule("javac") fooJar := ctx.ModuleForTests("foo", "android_common").Output("combined/foo.jar") @@ -69,6 +74,16 @@ func TestKotlin(t *testing.T) { fooJar.Inputs.Strings(), fooKotlincClasses.String()) } + if !inList(kotlinStdlib.String(), fooJar.Inputs.Strings()) { + t.Errorf("foo jar inputs %v does not contain %v", + fooJar.Inputs.Strings(), kotlinStdlib.String()) + } + + if !inList(kotlinAnnotations.String(), fooJar.Inputs.Strings()) { + t.Errorf("foo jar inputs %v does not contain %v", + fooJar.Inputs.Strings(), kotlinAnnotations.String()) + } + if !inList(fooKotlincHeaderClasses.String(), fooHeaderJar.Inputs.Strings()) { t.Errorf("foo header jar inputs %v does not contain %q", fooHeaderJar.Inputs.Strings(), fooKotlincHeaderClasses.String()) |