Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Pursehouse2018-08-31 04:08:29 +0000
committerDavid Pursehouse2018-08-31 04:14:28 +0000
commita074203fa9a0fb5336fbf469abd52bd5246daf24 (patch)
tree0c220489fe779255b57d9f32dbdd9266e545528a /org.eclipse.jgit.test
parentb0332d01330848fc21fbdb63727deb250fc6aad3 (diff)
parentb270e4b740a3b974bd5029fae224edc8ec088025 (diff)
downloadjgit-a074203fa9a0fb5336fbf469abd52bd5246daf24.tar.gz
jgit-a074203fa9a0fb5336fbf469abd52bd5246daf24.tar.xz
jgit-a074203fa9a0fb5336fbf469abd52bd5246daf24.zip
Merge branch 'stable-4.8' into stable-4.9
* stable-4.8: Bazel: Use hyphen instead of underscore in external repository names Bazel: Format all build files with buildifier 0.15.0 ChangeIdUtilTest: Remove unused notestCommitDashV Change-Id: I17436237cd66ca1c2800ad5ab0142f4a2bc07328 Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
Diffstat (limited to 'org.eclipse.jgit.test')
-rw-r--r--org.eclipse.jgit.test/tests.bzl96
1 files changed, 48 insertions, 48 deletions
diff --git a/org.eclipse.jgit.test/tests.bzl b/org.eclipse.jgit.test/tests.bzl
index 637fe0c9c3..c75ab76767 100644
--- a/org.eclipse.jgit.test/tests.bzl
+++ b/org.eclipse.jgit.test/tests.bzl
@@ -4,53 +4,53 @@ load(
)
def tests(tests):
- for src in tests:
- 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 i > 0:
- labels.append(l[:i])
- else:
- labels.append(i)
- if 'lib' not in labels:
- labels.append('lib')
+ for src in tests:
+ 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 i > 0:
+ labels.append(l[:i])
+ else:
+ labels.append(i)
+ 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',
- ]
- if src.endswith("WalkEncryptionTest.java"):
- additional_deps = [
- '//org.eclipse.jgit:insecure_cipher_factory',
- ]
- if src.endswith("OpenSshConfigTest.java"):
- additional_deps = [
- '//lib:jsch',
- ]
- if src.endswith("JschConfigSessionFactoryTest.java"):
- additional_deps = [
- '//lib:jsch',
- ]
+ additional_deps = []
+ if src.endswith("RootLocaleTest.java"):
+ additional_deps = [
+ "//org.eclipse.jgit.pgm:pgm",
+ "//org.eclipse.jgit.ui:ui",
+ ]
+ if src.endswith("WalkEncryptionTest.java"):
+ additional_deps = [
+ "//org.eclipse.jgit:insecure_cipher_factory",
+ ]
+ if src.endswith("OpenSshConfigTest.java"):
+ additional_deps = [
+ "//lib:jsch",
+ ]
+ if src.endswith("JschConfigSessionFactoryTest.java"):
+ additional_deps = [
+ "//lib:jsch",
+ ]
- junit_tests(
- name = name,
- 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',
- ],
- jvm_flags = ["-Xmx256m", "-Dfile.encoding=UTF-8"],
- )
+ junit_tests(
+ name = name,
+ 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",
+ ],
+ jvm_flags = ["-Xmx256m", "-Dfile.encoding=UTF-8"],
+ )

Back to the top