summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.pgm.test/BUCK
blob: a3859c9b49e407091dbb9d32f3161c3fc6655c0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
TESTS = glob(['tst/**/*.java'])

for t in TESTS:
  n = t[len('tst/'):len(t)-len('.java')].replace('/', '.')
  java_test(
    name = n,
    labels = ['pgm'],
    srcs = [t],
    deps = [
      ':helpers',
      '//org.eclipse.jgit:jgit',
      '//org.eclipse.jgit.archive:jgit-archive',
      '//org.eclipse.jgit.junit:junit',
      '//org.eclipse.jgit.pgm:pgm',
      '//lib:hamcrest-core',
      '//lib:hamcrest-library',
      '//lib:javaewah',
      '//lib:junit',
      '//lib:slf4j-api',
      '//lib:slf4j-simple',
      '//lib:commons-compress',
      '//lib:tukaani-xz',
    ],
    source_under_test = ['//org.eclipse.jgit.pgm:pgm'],
    vm_args = ['-Xmx256m', '-Dfile.encoding=UTF-8'],
  )

java_library(
  name = 'helpers',
  srcs = glob(['src/**/*.java']),
  deps = [
    '//org.eclipse.jgit:jgit',
    '//org.eclipse.jgit.pgm:pgm',
    '//org.eclipse.jgit.junit:junit',
    '//lib:args4j',
    '//lib:junit',
  ],
)