testing/tests/download: test git submodules

Add two submodules as static repos, add a branch to the main static repo
and check on the git refs test case the download of a git package:
 - repo with submodule but without support in the package;
 - repo with recursive submodules with support in the package.

Signed-off-by: Ricardo Martincoski <ricardo.martincoski@datacom.ind.br>
Cc: Arnout Vandecappelle <arnout@mind.be>
[Arnout: remove handling of inconsistent tarball hashes - that's an
 actual bug that should be fixed]
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
This commit is contained in:
Ricardo Martincoski 2018-05-11 23:58:30 -03:00 committed by Arnout Vandecappelle (Essensium/Mind)
parent a9219660d3
commit 9cc7a12bde
40 changed files with 46 additions and 0 deletions

View File

@ -0,0 +1,2 @@
sha256 f9d46ff8a1a344c6c31fa4211220f3085c446abd31626232540703158276f22c git-submodule-disabled-a9dbc1e23c45e8e1b88c0448763f54d714eb6f8f.tar.gz
sha256 ba8b6ddc4726bfb6a05045ebfd8c43263c968ad1bc601bd46a25bc055008eddc file

View File

@ -0,0 +1,11 @@
################################################################################
#
# git-submodule-disabled
#
################################################################################
GIT_SUBMODULE_DISABLED_VERSION = a9dbc1e23c45e8e1b88c0448763f54d714eb6f8f
GIT_SUBMODULE_DISABLED_SITE = git://localhost:$(GITREMOTE_PORT_NUMBER)/repo.git
GIT_SUBMODULE_DISABLED_LICENSE_FILES = file
$(eval $(generic-package))

View File

@ -0,0 +1 @@
sha256 139a34c3c844c844dee74b6746418cfa75fbcc4205794ac8c0b3cd7d55a76792 git-submodule-enabled-a9dbc1e23c45e8e1b88c0448763f54d714eb6f8f.tar.gz

View File

@ -0,0 +1,11 @@
################################################################################
#
# git-submodule-enabled
#
################################################################################
GIT_SUBMODULE_ENABLED_VERSION = a9dbc1e23c45e8e1b88c0448763f54d714eb6f8f
GIT_SUBMODULE_ENABLED_SITE = git://localhost:$(GITREMOTE_PORT_NUMBER)/repo.git
GIT_SUBMODULE_ENABLED_GIT_SUBMODULES = YES
$(eval $(generic-package))

View File

@ -0,0 +1 @@
objects/*/* binary

View File

@ -0,0 +1 @@
cb545facf77bbc5f24f95b6d503c338d10b7b717

View File

@ -0,0 +1,4 @@
[core]
repositoryformatversion = 0
filemode = true
bare = true

View File

@ -0,0 +1 @@
x­Î˝ Â0@ajOq $:;˛#„X€&8˙…q,S°=íW<=_rćjśv­ĆÖ&‡(˝“:Y§U"e“1a<31>0B#<23>•#9AĎv+.쩆gŞŤW_w†Cý`źżxš3ńŇűŹ 5N¨Ť4*D±é6ŃâźrWnL׺Rç^ű_fĹW`

View File

@ -0,0 +1 @@
1df823cb8a6d1866148ae50a8009762a9c4c777f

View File

@ -0,0 +1 @@
objects/*/* binary

View File

@ -0,0 +1 @@
32d61bae693af7879da63b89a60d3ae67f851e56

View File

@ -0,0 +1,4 @@
[core]
repositoryformatversion = 0
filemode = true
bare = true

View File

@ -0,0 +1 @@
x­Î½ Â0@ajOq $:;²#„X€&8ÿ…q,S°=íW<=_ræjœv­ÆÖ&‡(½“:Y§U"e“1a˜0B#ƒ•#9AÏv+.쩆<67>W_w†Cý`Ÿ¿xš3ñÒû<C3BB> 5N¨<4E>-t¨ŦÛDÊ ^¹1-B\y^cèJJ<4A>{í™o`Ì`+

View File

@ -0,0 +1,2 @@
x­Î=n!†aל ¬5,? i Ã`#‡ÅbqÛg£飴<C2A3>ô}z©ÕZ†Ô³=ŒÎ,5‡hUðä 1È~£µQŠu4É)ì¼~“SÙ<05>yñKHètô$½ó½Ul<55>À縵.ß
aOM¾be¥¶Ý<Ö_¼\+<>#µzÊëLXä3€Øu<C398>üOwb{ÆyRB¼—ëÊij9Oñóå/­â ãxl)

View File

@ -0,0 +1 @@
e83f6f805bd016b90acafc8702c52d778eb57310

View File

@ -0,0 +1 @@
2fa37f6885d7eb746df75eccaddbacf3ac82799d

View File

@ -70,3 +70,5 @@ class TestGitRefs(GitTestBase):
self.check_download("git-partial-sha1-reachable-by-branch")
self.check_download("git-sha1-branch-head")
self.check_download("git-sha1-reachable-by-branch")
self.check_download("git-submodule-disabled")
self.check_download("git-submodule-enabled")