177848d63SMatthias Sohnload( 264cbea8aSThomas Wolf "@com_googlesource_gerrit_bazlets//tools:genrule2.bzl", 364cbea8aSThomas Wolf "genrule2", 464cbea8aSThomas Wolf) 564cbea8aSThomas Wolfload( 677848d63SMatthias Sohn "@com_googlesource_gerrit_bazlets//tools:junit.bzl", 777848d63SMatthias Sohn "junit_tests", 877848d63SMatthias Sohn) 977848d63SMatthias Sohn 1077848d63SMatthias Sohnjunit_tests( 1177848d63SMatthias Sohn name = "bc", 1277848d63SMatthias Sohn srcs = glob(["tst/**/*.java"]), 13*c82818e0SDavid Ostrovsky resource_jars = [":tst_rsrc"], 1477848d63SMatthias Sohn tags = ["bc"], 1577848d63SMatthias Sohn deps = [ 1664cbea8aSThomas Wolf "//lib:bcpg", 1764cbea8aSThomas Wolf "//lib:bcprov", 1877848d63SMatthias Sohn "//lib:junit", 1977848d63SMatthias Sohn "//org.eclipse.jgit.gpg.bc:gpg-bc", 20f8eefdb0SDavid Ostrovsky "//org.eclipse.jgit:jgit", 2177848d63SMatthias Sohn ], 2277848d63SMatthias Sohn) 2364cbea8aSThomas Wolf 2464cbea8aSThomas Wolfgenrule2( 25*c82818e0SDavid Ostrovsky name = "tst_rsrc", 2664cbea8aSThomas Wolf srcs = glob(["tst-rsrc/**"]), 2764cbea8aSThomas Wolf outs = ["tst_rsrc.jar"], 28*c82818e0SDavid Ostrovsky cmd = "tar cf - $(SRCS) | tar -C $$TMP --strip-components=2 -xf - && cd $$TMP && zip -qr $$ROOT/$@ .", 2964cbea8aSThomas Wolf) 30