You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
919 B
36 lines
919 B
9 years ago
|
tests_dependencies = [
|
||
|
'//infer/lib/java/android:android',
|
||
|
'//dependencies/java/guava:guava',
|
||
|
'//dependencies/java/junit:hamcrest',
|
||
|
'//dependencies/java/jackson:jackson',
|
||
|
'//dependencies/java/jsr-305:jsr-305',
|
||
|
'//dependencies/java/junit:junit',
|
||
|
'//dependencies/java/opencsv:opencsv',
|
||
|
'//infer/tests/utils:utils',
|
||
|
]
|
||
|
|
||
|
objcpp_linters_test_sources = glob(['*.java'])
|
||
|
objcpp_linters_test_deps = []
|
||
|
for test_source in objcpp_linters_test_sources:
|
||
|
target_name = test_source.replace("/", "_")[:-len(".java")]
|
||
|
objcpp_linters_test_deps.append(target_name)
|
||
|
|
||
|
java_test(
|
||
|
name=target_name,
|
||
|
srcs=[test_source],
|
||
|
deps=tests_dependencies,
|
||
|
visibility=[
|
||
|
'PUBLIC',
|
||
|
],
|
||
|
source='7',
|
||
|
target='7',
|
||
|
)
|
||
|
|
||
|
java_test(
|
||
|
name='linters',
|
||
|
deps=[':' + x for x in objcpp_linters_test_deps],
|
||
|
visibility=[
|
||
|
'PUBLIC',
|
||
|
],
|
||
|
)
|