1# Copyright 2022 Google LLC. All rights reserved. 2# 3# Licensed under the Apache License, Version 2.0 (the License); 4# you may not use this file except in compliance with the License. 5# You may obtain a copy of the License at 6# 7# http://www.apache.org/licenses/LICENSE-2.0 8# 9# Unless required by applicable law or agreed to in writing, software 10# distributed under the License is distributed on an "AS IS" BASIS, 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12# See the License for the specific language governing permissions and 13# limitations under the License. 14 15load("//tests/analysis:for_test.bzl", "rules_for_test") 16load("//tests/analysis:jvm_library_test.bzl", "jvm_library_test") 17 18package(default_testonly = True) 19 20licenses(["notice"]) 21 22jvm_library_test( 23 name = "data_test", 24 expected = dict( 25 data = [ 26 "data.txt", 27 # libX.jar is always in data_runfiles as well - just append it. 28 "libdata.jar", 29 ], 30 ), 31 target_under_test = rules_for_test.kt_jvm_library( 32 name = "data", 33 srcs = [ 34 "Input.kt", 35 ], 36 data = [ 37 "data.txt", 38 ], 39 ), 40) 41