10f6ddb37SDavid Ostrovskyload( 20f6ddb37SDavid Ostrovsky "@com_googlesource_gerrit_bazlets//tools:junit.bzl", 30f6ddb37SDavid Ostrovsky "junit_tests", 40f6ddb37SDavid Ostrovsky) 5*22973d13SMatthias Sohnload("@rules_java//java:defs.bzl", "java_library") 60f6ddb37SDavid Ostrovsky 70f6ddb37SDavid Ostrovskyjunit_tests( 80f6ddb37SDavid Ostrovsky name = "pgm", 90f6ddb37SDavid Ostrovsky srcs = glob(["tst/**/*.java"]), 100f6ddb37SDavid Ostrovsky jvm_flags = [ 111e8b68cbSMatthias Sohn "-Xmx512m", 120f6ddb37SDavid Ostrovsky "-Dfile.encoding=UTF-8", 130f6ddb37SDavid Ostrovsky ], 140f6ddb37SDavid Ostrovsky tags = ["pgm"], 150f6ddb37SDavid Ostrovsky deps = [ 160f6ddb37SDavid Ostrovsky ":helpers", 17bc45947cSPepper Lebeck-Jobe "//lib:args4j", 180f6ddb37SDavid Ostrovsky "//lib:commons-compress", 190f6ddb37SDavid Ostrovsky "//lib:javaewah", 200f6ddb37SDavid Ostrovsky "//lib:junit", 210f6ddb37SDavid Ostrovsky "//lib:slf4j-api", 220f6ddb37SDavid Ostrovsky "//lib:slf4j-simple", 230f6ddb37SDavid Ostrovsky "//lib:xz", 240f6ddb37SDavid Ostrovsky "//org.eclipse.jgit.archive:jgit-archive", 250f6ddb37SDavid Ostrovsky "//org.eclipse.jgit:jgit", 260f6ddb37SDavid Ostrovsky "//org.eclipse.jgit.junit:junit", 270f6ddb37SDavid Ostrovsky "//org.eclipse.jgit.pgm:pgm", 280f6ddb37SDavid Ostrovsky ], 290f6ddb37SDavid Ostrovsky) 300f6ddb37SDavid Ostrovsky 310f6ddb37SDavid Ostrovskyjava_library( 320f6ddb37SDavid Ostrovsky name = "helpers", 330f6ddb37SDavid Ostrovsky testonly = 1, 340f6ddb37SDavid Ostrovsky srcs = glob(["src/**/*.java"]), 350f6ddb37SDavid Ostrovsky deps = [ 360f6ddb37SDavid Ostrovsky "//lib:args4j", 370f6ddb37SDavid Ostrovsky "//lib:junit", 380f6ddb37SDavid Ostrovsky "//org.eclipse.jgit:jgit", 390f6ddb37SDavid Ostrovsky "//org.eclipse.jgit.junit:junit", 400f6ddb37SDavid Ostrovsky "//org.eclipse.jgit.pgm:pgm", 410f6ddb37SDavid Ostrovsky ], 420f6ddb37SDavid Ostrovsky) 43