testing/tests/download: test git special ref

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>
This commit is contained in:
Ricardo Martincoski 2018-05-11 23:58:32 -03:00 committed by Arnout Vandecappelle (Essensium/Mind)
parent 636fb8eba2
commit 81771cfcdc
7 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,2 @@
sha256 e78abd24049c6acac81a02fb8fa6dfa60db74a19772d41e28ad9d6b9b77c8054 git-special-ref-b72ff6078f62522a87f5cae5e9f34dedf5ec3885.tar.gz
sha256 b252b594be4679764e2e06cfea77a3e50638dd445af9b472b0f298c43b134518 file

View File

@ -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))

View File

@ -0,0 +1 @@
b72ff6078f62522a87f5cae5e9f34dedf5ec3885

View File

@ -76,6 +76,7 @@ class TestGitRefs(GitTestBase):
self.check_download("git-sha1-reachable-by-tag") self.check_download("git-sha1-reachable-by-tag")
self.check_download("git-sha1-tag-itself") self.check_download("git-sha1-tag-itself")
self.check_download("git-sha1-tag-points-to") 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-disabled")
self.check_download("git-submodule-enabled") self.check_download("git-submodule-enabled")
self.check_download("git-tag") self.check_download("git-tag")