From f1b79c3c89ca2ddf080c1af35039ca7e604e5b61 Mon Sep 17 00:00:00 2001 From: Matthias Sohn Date: Fri, 1 Jan 2016 23:54:15 +0100 Subject: buck: run http tests Running tests using buck reveals that HttpClientTests are broken and weren't executed by Maven since these test classes don't match the maven-surefire-plugin's default for test classes **/*Test.java. Will be fixed in a follow-up change. Change-Id: I82a01b5fd3f0a930bec2423a29a256601dadc248 Signed-off-by: Matthias Sohn --- org.eclipse.jgit.http.test/BUCK | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 org.eclipse.jgit.http.test/BUCK (limited to 'org.eclipse.jgit.http.test/BUCK') diff --git a/org.eclipse.jgit.http.test/BUCK b/org.eclipse.jgit.http.test/BUCK new file mode 100644 index 0000000000..d2ced7a247 --- /dev/null +++ b/org.eclipse.jgit.http.test/BUCK @@ -0,0 +1,40 @@ +TESTS = glob(['tst/**/*.java']) + +for t in TESTS: + n = t[len('tst/'):len(t)-len('.java')].replace('/', '.') + java_test( + name = n, + labels = ['http'], + srcs = [t], + deps = [ + ':helpers', + '//org.eclipse.jgit:jgit', + '//org.eclipse.jgit.http.apache:http-apache', + '//org.eclipse.jgit.http.server:jgit-servlet', + '//org.eclipse.jgit.junit:junit', + '//org.eclipse.jgit.junit.http:junit-http', + '//lib:hamcrest-core', + '//lib:hamcrest-library', + '//lib:junit', + '//lib:servlet-api', + '//lib/jetty:http', + '//lib/jetty:io', + '//lib/jetty:server', + '//lib/jetty:servlet', + '//lib/jetty:security', + '//lib/jetty:util', + ], + source_under_test = ['//org.eclipse.jgit.http.server:jgit-servlet'], + ) + +java_library( + name = 'helpers', + srcs = glob(['src/**/*.java']), + deps = [ + '//org.eclipse.jgit:jgit', + '//org.eclipse.jgit.http.server:jgit-servlet', + '//org.eclipse.jgit.junit:junit', + '//org.eclipse.jgit.junit.http:junit-http', + '//lib:junit', + ], +) -- cgit v1.2.3