summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.lfs.test/BUCK
diff options
context:
space:
mode:
authorMatthias Sohn <matthias.sohn@sap.com>2015-07-17 16:22:56 +0200
committerSaša Živkov <sasa.zivkov@sap.com>2016-02-04 17:49:42 +0100
commit536db18cc62afab2d38aac5b2af73f575f40d8b6 (patch)
tree94dccd9b5a11010044efd27f126bd21a94d5a665 /org.eclipse.jgit.lfs.test/BUCK
parent2de33d7678ffe865e44fc5007ee5fc59afa03404 (diff)
downloadjgit-536db18cc62afab2d38aac5b2af73f575f40d8b6.tar.gz
jgit-536db18cc62afab2d38aac5b2af73f575f40d8b6.zip
Implement SHA-256 abstraction
The Large File Storage extension specified by GitHub [1] uses SHA-256 to compute the ID of large files stored by the extension. Hence implement a SHA-256 abstraction similar to the SHA-1 abstraction used by JGit. [1] https://git-lfs.github.com/ Bug: 470333 Change-Id: I3a95954543c8570d73929e55f4a884b55dbf1b7a Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.jgit.lfs.test/BUCK')
-rw-r--r--org.eclipse.jgit.lfs.test/BUCK31
1 files changed, 31 insertions, 0 deletions
diff --git a/org.eclipse.jgit.lfs.test/BUCK b/org.eclipse.jgit.lfs.test/BUCK
new file mode 100644
index 0000000000..d0fb96f9cd
--- /dev/null
+++ b/org.eclipse.jgit.lfs.test/BUCK
@@ -0,0 +1,31 @@
+TESTS = glob(['tst/**/*.java'])
+
+for t in TESTS:
+ n = t[len('tst/'):len(t)-len('.java')].replace('/', '.')
+ java_test(
+ name = n,
+ labels = ['lfs'],
+ srcs = [t],
+ deps = [
+ ':helpers',
+ '//org.eclipse.jgit.junit:junit',
+ '//org.eclipse.jgit.lfs:jgit-lfs',
+ '//org.eclipse.jgit:jgit',
+ '//lib:hamcrest-core',
+ '//lib:hamcrest-library',
+ '//lib:junit',
+ ],
+ source_under_test = ['//org.eclipse.jgit.lfs:jgit-lfs'],
+ )
+
+java_library(
+ name = 'helpers',
+ srcs = glob(['src/**/*.java']),
+ deps = [
+ '//org.eclipse.jgit:jgit',
+ '//org.eclipse.jgit.lfs:jgit-lfs',
+ '//org.eclipse.jgit.junit:junit',
+ '//lib:junit',
+ ],
+ visibility = ['PUBLIC']
+)