testing/tests/download: test git special ref
authorRicardo Martincoski <ricardo.martincoski@datacom.ind.br>
Sat, 12 May 2018 02:58:32 +0000 (23:58 -0300)
committerArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Wed, 6 Feb 2019 10:13:20 +0000 (11:13 +0100)
Add a special ref to the static repo and check on the git refs test case
the download of a git package:
 - with the sha1 of a special ref as version;

Signed-off-by: Ricardo Martincoski <ricardo.martincoski@datacom.ind.br>
Cc: Arnout Vandecappelle <arnout@mind.be>
[Arnout: change to use the sha1 of a special ref instead of the name]
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
support/testing/tests/download/br2-external/git-refs/package/git-special-ref/git-special-ref.hash [new file with mode: 0644]
support/testing/tests/download/br2-external/git-refs/package/git-special-ref/git-special-ref.mk [new file with mode: 0644]
support/testing/tests/download/git-remote/repo.git/objects/17/c409592968d17600ff9912e96fdd461bb72e74 [new file with mode: 0644]
support/testing/tests/download/git-remote/repo.git/objects/53/122a7b0454b33c6d9e159c10657173db77899e [new file with mode: 0644]
support/testing/tests/download/git-remote/repo.git/objects/b7/2ff6078f62522a87f5cae5e9f34dedf5ec3885 [new file with mode: 0644]
support/testing/tests/download/git-remote/repo.git/refs/changes/01/1/2 [new file with mode: 0644]
support/testing/tests/download/test_git.py

diff --git a/support/testing/tests/download/br2-external/git-refs/package/git-special-ref/git-special-ref.hash b/support/testing/tests/download/br2-external/git-refs/package/git-special-ref/git-special-ref.hash
new file mode 100644 (file)
index 0000000..00e45b6
--- /dev/null
@@ -0,0 +1,2 @@
+sha256  e78abd24049c6acac81a02fb8fa6dfa60db74a19772d41e28ad9d6b9b77c8054  git-special-ref-b72ff6078f62522a87f5cae5e9f34dedf5ec3885.tar.gz
+sha256  b252b594be4679764e2e06cfea77a3e50638dd445af9b472b0f298c43b134518  file
diff --git a/support/testing/tests/download/br2-external/git-refs/package/git-special-ref/git-special-ref.mk b/support/testing/tests/download/br2-external/git-refs/package/git-special-ref/git-special-ref.mk
new file mode 100644 (file)
index 0000000..d3d0913
--- /dev/null
@@ -0,0 +1,11 @@
+################################################################################
+#
+# git-special-ref
+#
+################################################################################
+
+GIT_SPECIAL_REF_VERSION = b72ff6078f62522a87f5cae5e9f34dedf5ec3885
+GIT_SPECIAL_REF_SITE = git://localhost:$(GITREMOTE_PORT_NUMBER)/repo.git
+GIT_SPECIAL_REF_LICENSE_FILES = file
+
+$(eval $(generic-package))
diff --git a/support/testing/tests/download/git-remote/repo.git/objects/17/c409592968d17600ff9912e96fdd461bb72e74 b/support/testing/tests/download/git-remote/repo.git/objects/17/c409592968d17600ff9912e96fdd461bb72e74
new file mode 100644 (file)
index 0000000..8c19de6
Binary files /dev/null and b/support/testing/tests/download/git-remote/repo.git/objects/17/c409592968d17600ff9912e96fdd461bb72e74 differ
diff --git a/support/testing/tests/download/git-remote/repo.git/objects/53/122a7b0454b33c6d9e159c10657173db77899e b/support/testing/tests/download/git-remote/repo.git/objects/53/122a7b0454b33c6d9e159c10657173db77899e
new file mode 100644 (file)
index 0000000..d72d49e
Binary files /dev/null and b/support/testing/tests/download/git-remote/repo.git/objects/53/122a7b0454b33c6d9e159c10657173db77899e differ
diff --git a/support/testing/tests/download/git-remote/repo.git/objects/b7/2ff6078f62522a87f5cae5e9f34dedf5ec3885 b/support/testing/tests/download/git-remote/repo.git/objects/b7/2ff6078f62522a87f5cae5e9f34dedf5ec3885
new file mode 100644 (file)
index 0000000..6727b2e
--- /dev/null
@@ -0,0 +1,3 @@
+x\ 1­ÎAN\ 4!\10@Q×\9c\82\vô¤
+h \8c1^À\8d\9e\80¦\8a\91ÌÐL\18\x{;qáÞ¸}\8b\9f\9f{kujkèa\ e\11\8d!; \95\fùÈ\18<@)Dh\84|av\1e·-\18    NÝÒ\90}êdlÜ\90KæhVv\81£u©Ø¼\1a\11\8b\ e\91    X¥ÏùÑ\87~«9\rîú5\8dY÷Üï\97ª\9fÆ\ f\9eÚ/¾\9c[ª×SîíYã
+\81<\82\vz\ 1\v \ e=¦§üSNÝo\92\ e)J½×ó.¼ôR\96íëñ/¿ê\e\14âm¾
\ No newline at end of file
diff --git a/support/testing/tests/download/git-remote/repo.git/refs/changes/01/1/2 b/support/testing/tests/download/git-remote/repo.git/refs/changes/01/1/2
new file mode 100644 (file)
index 0000000..7066394
--- /dev/null
@@ -0,0 +1 @@
+b72ff6078f62522a87f5cae5e9f34dedf5ec3885
index 2455557298ee877f1e1267f3d3814a5f28ef9de2..40cf1afe058c87f272f9b2cebc00383950a925e2 100644 (file)
@@ -76,6 +76,7 @@ class TestGitRefs(GitTestBase):
         self.check_download("git-sha1-reachable-by-tag")
         self.check_download("git-sha1-tag-itself")
         self.check_download("git-sha1-tag-points-to")
+        self.check_download("git-special-ref")
         self.check_download("git-submodule-disabled")
         self.check_download("git-submodule-enabled")
         self.check_download("git-tag")