|
|
|
@ -5,29 +5,29 @@ load(
|
|
|
|
|
|
|
|
|
|
def tests(tests): |
|
|
|
|
for src in tests: |
|
|
|
|
name = src[len('tst/'):len(src)-len('.java')].replace('/', '_') |
|
|
|
|
name = src[len("tst/"):len(src) - len(".java")].replace("/", "_") |
|
|
|
|
labels = [] |
|
|
|
|
if name.startswith('org_eclipse_jgit_'): |
|
|
|
|
l = name[len('org.eclipse.jgit_'):] |
|
|
|
|
if l.startswith('internal_storage_'): |
|
|
|
|
l = l[len('internal.storage_'):] |
|
|
|
|
i = l.find('_') |
|
|
|
|
if name.startswith("org_eclipse_jgit_"): |
|
|
|
|
l = name[len("org.eclipse.jgit_"):] |
|
|
|
|
if l.startswith("internal_storage_"): |
|
|
|
|
l = l[len("internal.storage_"):] |
|
|
|
|
i = l.find("_") |
|
|
|
|
if i > 0: |
|
|
|
|
labels.append(l[:i]) |
|
|
|
|
else: |
|
|
|
|
labels.append(i) |
|
|
|
|
if 'lib' not in labels: |
|
|
|
|
labels.append('lib') |
|
|
|
|
if "lib" not in labels: |
|
|
|
|
labels.append("lib") |
|
|
|
|
|
|
|
|
|
additional_deps = [] |
|
|
|
|
if src.endswith("RootLocaleTest.java"): |
|
|
|
|
additional_deps = [ |
|
|
|
|
'//org.eclipse.jgit.pgm:pgm', |
|
|
|
|
'//org.eclipse.jgit.ui:ui', |
|
|
|
|
"//org.eclipse.jgit.pgm:pgm", |
|
|
|
|
"//org.eclipse.jgit.ui:ui", |
|
|
|
|
] |
|
|
|
|
if src.endswith("WalkEncryptionTest.java"): |
|
|
|
|
additional_deps = [ |
|
|
|
|
'//org.eclipse.jgit:insecure_cipher_factory', |
|
|
|
|
"//org.eclipse.jgit:insecure_cipher_factory", |
|
|
|
|
] |
|
|
|
|
|
|
|
|
|
junit_tests( |
|
|
|
@ -35,14 +35,14 @@ def tests(tests):
|
|
|
|
|
tags = labels, |
|
|
|
|
srcs = [src], |
|
|
|
|
deps = additional_deps + [ |
|
|
|
|
':helpers', |
|
|
|
|
':tst_rsrc', |
|
|
|
|
'//lib:javaewah', |
|
|
|
|
'//lib:junit', |
|
|
|
|
'//lib:slf4j-api', |
|
|
|
|
'//org.eclipse.jgit:jgit', |
|
|
|
|
'//org.eclipse.jgit.junit:junit', |
|
|
|
|
'//org.eclipse.jgit.lfs:jgit-lfs', |
|
|
|
|
":helpers", |
|
|
|
|
":tst_rsrc", |
|
|
|
|
"//lib:javaewah", |
|
|
|
|
"//lib:junit", |
|
|
|
|
"//lib:slf4j-api", |
|
|
|
|
"//org.eclipse.jgit:jgit", |
|
|
|
|
"//org.eclipse.jgit.junit:junit", |
|
|
|
|
"//org.eclipse.jgit.lfs:jgit-lfs", |
|
|
|
|
], |
|
|
|
|
jvm_flags = ["-Xmx256m", "-Dfile.encoding=UTF-8"], |
|
|
|
|
) |
|
|
|
|