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