Bump buildroot to 2019.02
This commit is contained in:
@@ -0,0 +1 @@
|
||||
name: GIT_HASH
|
||||
@@ -0,0 +1,4 @@
|
||||
include $(sort $(wildcard $(BR2_EXTERNAL_GIT_HASH_PATH)/package/*/*.mk))
|
||||
|
||||
# Get the git server port number from the test infra
|
||||
GITREMOTE_PORT_NUMBER ?= 9418
|
||||
@@ -0,0 +1 @@
|
||||
sha256 0000000000000000000000000000000000000000000000000000000000000000 bad-a238b1dfcd825d47d834af3c5223417c8411d90d.tar.gz
|
||||
@@ -0,0 +1,10 @@
|
||||
################################################################################
|
||||
#
|
||||
# bad
|
||||
#
|
||||
################################################################################
|
||||
|
||||
BAD_VERSION = a238b1dfcd825d47d834af3c5223417c8411d90d
|
||||
BAD_SITE = git://localhost:$(GITREMOTE_PORT_NUMBER)/repo.git
|
||||
|
||||
$(eval $(generic-package))
|
||||
@@ -0,0 +1 @@
|
||||
sha256 d00ae598e9e770d607621a86766030b42eaa58156cb8d482b043969da7963c23 good-a238b1dfcd825d47d834af3c5223417c8411d90d.tar.gz
|
||||
@@ -0,0 +1,10 @@
|
||||
################################################################################
|
||||
#
|
||||
# good
|
||||
#
|
||||
################################################################################
|
||||
|
||||
GOOD_VERSION = a238b1dfcd825d47d834af3c5223417c8411d90d
|
||||
GOOD_SITE = git://localhost:$(GITREMOTE_PORT_NUMBER)/repo.git
|
||||
|
||||
$(eval $(generic-package))
|
||||
@@ -0,0 +1,10 @@
|
||||
################################################################################
|
||||
#
|
||||
# nohash
|
||||
#
|
||||
################################################################################
|
||||
|
||||
NOHASH_VERSION = a238b1dfcd825d47d834af3c5223417c8411d90d
|
||||
NOHASH_SITE = git://localhost:$(GITREMOTE_PORT_NUMBER)/repo.git
|
||||
|
||||
$(eval $(generic-package))
|
||||
@@ -0,0 +1 @@
|
||||
name: GIT_REFS
|
||||
@@ -0,0 +1,4 @@
|
||||
include $(sort $(wildcard $(BR2_EXTERNAL_GIT_REFS_PATH)/package/*/*.mk))
|
||||
|
||||
# Get the git server port number from the test infra
|
||||
GITREMOTE_PORT_NUMBER ?= 9418
|
||||
@@ -0,0 +1,2 @@
|
||||
sha256 70b76187369e47db69dac02c5696e63b35199cd20490fa473d289dd377774613 git-partial-sha1-branch-head-68c197d0879d485f4f6c.tar.gz
|
||||
sha256 2c1126513651b0d346a4e6d1bb75ac1c9999217e18026302d27bea47b06c7fb2 file
|
||||
@@ -0,0 +1,11 @@
|
||||
################################################################################
|
||||
#
|
||||
# git-partial-sha1-branch-head
|
||||
#
|
||||
################################################################################
|
||||
|
||||
GIT_PARTIAL_SHA1_BRANCH_HEAD_VERSION = 68c197d0879d485f4f6c
|
||||
GIT_PARTIAL_SHA1_BRANCH_HEAD_SITE = git://localhost:$(GITREMOTE_PORT_NUMBER)/repo.git
|
||||
GIT_PARTIAL_SHA1_BRANCH_HEAD_LICENSE_FILES = file
|
||||
|
||||
$(eval $(generic-package))
|
||||
@@ -0,0 +1,2 @@
|
||||
sha256 9db079b9e215799d59975db7b2b26671eff1932ee6cf1075296f2ace3e2cb746 git-partial-sha1-reachable-by-branch-317406308d9259e2231b.tar.gz
|
||||
sha256 fabbc65c442bacb5e69b7adfea6d14fbbfc1327134322efd12771dc84387d507 file
|
||||
@@ -0,0 +1,11 @@
|
||||
################################################################################
|
||||
#
|
||||
# git-partial-sha1-reachable-by-branch
|
||||
#
|
||||
################################################################################
|
||||
|
||||
GIT_PARTIAL_SHA1_REACHABLE_BY_BRANCH_VERSION = 317406308d9259e2231b
|
||||
GIT_PARTIAL_SHA1_REACHABLE_BY_BRANCH_SITE = git://localhost:$(GITREMOTE_PORT_NUMBER)/repo.git
|
||||
GIT_PARTIAL_SHA1_REACHABLE_BY_BRANCH_LICENSE_FILES = file
|
||||
|
||||
$(eval $(generic-package))
|
||||
@@ -0,0 +1,2 @@
|
||||
sha256 f2ef9772f13a9ef9a2c7cde0795e179defb12320d1747fc8d2408748ef5844c2 git-partial-sha1-reachable-by-tag-46bae5b639e5a18e2cc4.tar.gz
|
||||
sha256 2de87d77a2f226813f2d9bda906e970e4195605cdba6680443c0c04d89c532b6 file
|
||||
@@ -0,0 +1,11 @@
|
||||
################################################################################
|
||||
#
|
||||
# git-partial-sha1-reachable-by-tag
|
||||
#
|
||||
################################################################################
|
||||
|
||||
GIT_PARTIAL_SHA1_REACHABLE_BY_TAG_VERSION = 46bae5b639e5a18e2cc4
|
||||
GIT_PARTIAL_SHA1_REACHABLE_BY_TAG_SITE = git://localhost:$(GITREMOTE_PORT_NUMBER)/repo.git
|
||||
GIT_PARTIAL_SHA1_REACHABLE_BY_TAG_LICENSE_FILES = file
|
||||
|
||||
$(eval $(generic-package))
|
||||
@@ -0,0 +1,2 @@
|
||||
sha256 721143b41b8e56cfd9025833f1602e900a490627db2504e5b4907baa23e0019e git-partial-sha1-tag-itself-2b0e0d98a49c97da6a61.tar.gz
|
||||
sha256 6de8772a0a58fa62e2b8c58d4dae55c9db7534ad3b3918ecc849a9008d58f081 file
|
||||
@@ -0,0 +1,11 @@
|
||||
################################################################################
|
||||
#
|
||||
# git-partial-sha1-tag-itself
|
||||
#
|
||||
################################################################################
|
||||
|
||||
GIT_PARTIAL_SHA1_TAG_ITSELF_VERSION = 2b0e0d98a49c97da6a61
|
||||
GIT_PARTIAL_SHA1_TAG_ITSELF_SITE = git://localhost:$(GITREMOTE_PORT_NUMBER)/repo.git
|
||||
GIT_PARTIAL_SHA1_TAG_ITSELF_LICENSE_FILES = file
|
||||
|
||||
$(eval $(generic-package))
|
||||
@@ -0,0 +1,2 @@
|
||||
sha256 0fbf7fe935f962ceaafcf8e0ffd25dd2a83752c3f0fd055a942a53f8c9235fa7 git-partial-sha1-tag-points-to-516c9c5f64ec66534d4d.tar.gz
|
||||
sha256 6de8772a0a58fa62e2b8c58d4dae55c9db7534ad3b3918ecc849a9008d58f081 file
|
||||
@@ -0,0 +1,11 @@
|
||||
################################################################################
|
||||
#
|
||||
# git-partial-sha1-tag-points-to
|
||||
#
|
||||
################################################################################
|
||||
|
||||
GIT_PARTIAL_SHA1_TAG_POINTS_TO_VERSION = 516c9c5f64ec66534d4d
|
||||
GIT_PARTIAL_SHA1_TAG_POINTS_TO_SITE = git://localhost:$(GITREMOTE_PORT_NUMBER)/repo.git
|
||||
GIT_PARTIAL_SHA1_TAG_POINTS_TO_LICENSE_FILES = file
|
||||
|
||||
$(eval $(generic-package))
|
||||
@@ -0,0 +1,2 @@
|
||||
sha256 a21a2507b6d94ad484e49e3a9ae698f672a57469aab8e1779da77df7c9d4d337 git-sha1-branch-head-68c197d0879d485f4f6cee85544722b79e68e59f.tar.gz
|
||||
sha256 2c1126513651b0d346a4e6d1bb75ac1c9999217e18026302d27bea47b06c7fb2 file
|
||||
@@ -0,0 +1,11 @@
|
||||
################################################################################
|
||||
#
|
||||
# git-sha1-branch-head
|
||||
#
|
||||
################################################################################
|
||||
|
||||
GIT_SHA1_BRANCH_HEAD_VERSION = 68c197d0879d485f4f6cee85544722b79e68e59f
|
||||
GIT_SHA1_BRANCH_HEAD_SITE = git://localhost:$(GITREMOTE_PORT_NUMBER)/repo.git
|
||||
GIT_SHA1_BRANCH_HEAD_LICENSE_FILES = file
|
||||
|
||||
$(eval $(generic-package))
|
||||
@@ -0,0 +1,2 @@
|
||||
sha256 8909e76d898e651af0bc23fae4103b87888bfe77448d71aaf1fbec3da97a3ce2 git-sha1-reachable-by-branch-317406308d9259e2231bd0d6ddad3de3832bce08.tar.gz
|
||||
sha256 fabbc65c442bacb5e69b7adfea6d14fbbfc1327134322efd12771dc84387d507 file
|
||||
@@ -0,0 +1,11 @@
|
||||
################################################################################
|
||||
#
|
||||
# git-sha1-reachable-by-branch
|
||||
#
|
||||
################################################################################
|
||||
|
||||
GIT_SHA1_REACHABLE_BY_BRANCH_VERSION = 317406308d9259e2231bd0d6ddad3de3832bce08
|
||||
GIT_SHA1_REACHABLE_BY_BRANCH_SITE = git://localhost:$(GITREMOTE_PORT_NUMBER)/repo.git
|
||||
GIT_SHA1_REACHABLE_BY_BRANCH_LICENSE_FILES = file
|
||||
|
||||
$(eval $(generic-package))
|
||||
@@ -0,0 +1,2 @@
|
||||
sha256 9b20256a3058221a8e91031f11700d9945ea84e8f328fa8e42e1cb9f7a30e3b2 git-sha1-reachable-by-tag-46bae5b639e5a18e2cc4dc508f080d566baeff59.tar.gz
|
||||
sha256 2de87d77a2f226813f2d9bda906e970e4195605cdba6680443c0c04d89c532b6 file
|
||||
@@ -0,0 +1,11 @@
|
||||
################################################################################
|
||||
#
|
||||
# git-sha1-reachable-by-tag
|
||||
#
|
||||
################################################################################
|
||||
|
||||
GIT_SHA1_REACHABLE_BY_TAG_VERSION = 46bae5b639e5a18e2cc4dc508f080d566baeff59
|
||||
GIT_SHA1_REACHABLE_BY_TAG_SITE = git://localhost:$(GITREMOTE_PORT_NUMBER)/repo.git
|
||||
GIT_SHA1_REACHABLE_BY_TAG_LICENSE_FILES = file
|
||||
|
||||
$(eval $(generic-package))
|
||||
@@ -0,0 +1,2 @@
|
||||
sha256 7d301c1a1054d6aee49193ca9e938f4da561ff73fb01719662865aa38bdc4361 git-sha1-tag-itself-2b0e0d98a49c97da6a618ab36337e2058eb733a2.tar.gz
|
||||
sha256 6de8772a0a58fa62e2b8c58d4dae55c9db7534ad3b3918ecc849a9008d58f081 file
|
||||
@@ -0,0 +1,11 @@
|
||||
################################################################################
|
||||
#
|
||||
# git-sha1-tag-itself
|
||||
#
|
||||
################################################################################
|
||||
|
||||
GIT_SHA1_TAG_ITSELF_VERSION = 2b0e0d98a49c97da6a618ab36337e2058eb733a2
|
||||
GIT_SHA1_TAG_ITSELF_SITE = git://localhost:$(GITREMOTE_PORT_NUMBER)/repo.git
|
||||
GIT_SHA1_TAG_ITSELF_LICENSE_FILES = file
|
||||
|
||||
$(eval $(generic-package))
|
||||
@@ -0,0 +1,2 @@
|
||||
sha256 c1f9f5734529a31140a71c031534460811f001b4db37d26833f386358150ab47 git-sha1-tag-points-to-516c9c5f64ec66534d4d069c2e408d9ae4dce023.tar.gz
|
||||
sha256 6de8772a0a58fa62e2b8c58d4dae55c9db7534ad3b3918ecc849a9008d58f081 file
|
||||
@@ -0,0 +1,11 @@
|
||||
################################################################################
|
||||
#
|
||||
# git-sha1-tag-points-to
|
||||
#
|
||||
################################################################################
|
||||
|
||||
GIT_SHA1_TAG_POINTS_TO_VERSION = 516c9c5f64ec66534d4d069c2e408d9ae4dce023
|
||||
GIT_SHA1_TAG_POINTS_TO_SITE = git://localhost:$(GITREMOTE_PORT_NUMBER)/repo.git
|
||||
GIT_SHA1_TAG_POINTS_TO_LICENSE_FILES = file
|
||||
|
||||
$(eval $(generic-package))
|
||||
@@ -0,0 +1,2 @@
|
||||
sha256 f9d46ff8a1a344c6c31fa4211220f3085c446abd31626232540703158276f22c git-submodule-disabled-a9dbc1e23c45e8e1b88c0448763f54d714eb6f8f.tar.gz
|
||||
sha256 ba8b6ddc4726bfb6a05045ebfd8c43263c968ad1bc601bd46a25bc055008eddc 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))
|
||||
@@ -0,0 +1 @@
|
||||
sha256 139a34c3c844c844dee74b6746418cfa75fbcc4205794ac8c0b3cd7d55a76792 git-submodule-enabled-a9dbc1e23c45e8e1b88c0448763f54d714eb6f8f.tar.gz
|
||||
@@ -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))
|
||||
@@ -0,0 +1,2 @@
|
||||
sha256 85dcb5bcf9bed496688d0eb01c7a3ce05c5b46b984cc1e9e76a6dbefd976e6b3 git-tag-mytag.tar.gz
|
||||
sha256 6de8772a0a58fa62e2b8c58d4dae55c9db7534ad3b3918ecc849a9008d58f081 file
|
||||
@@ -0,0 +1,11 @@
|
||||
################################################################################
|
||||
#
|
||||
# git-tag
|
||||
#
|
||||
################################################################################
|
||||
|
||||
GIT_TAG_VERSION = mytag
|
||||
GIT_TAG_SITE = git://localhost:$(GITREMOTE_PORT_NUMBER)/repo.git
|
||||
GIT_TAG_LICENSE_FILES = file
|
||||
|
||||
$(eval $(generic-package))
|
||||
@@ -0,0 +1,2 @@
|
||||
sha256 04715901977503d1df650e0959f4d31d8e7b105e2ac99a2182e0652b8f13baa1 git-wrong-content-a238b1dfcd825d47d834af3c5223417c8411d90d.tar.gz
|
||||
sha256 0000000000000000000000000000000000000000000000000000000000000000 file
|
||||
@@ -0,0 +1,11 @@
|
||||
################################################################################
|
||||
#
|
||||
# git-wrong-content
|
||||
#
|
||||
################################################################################
|
||||
|
||||
GIT_WRONG_CONTENT_VERSION = a238b1dfcd825d47d834af3c5223417c8411d90d
|
||||
GIT_WRONG_CONTENT_SITE = git://localhost:$(GITREMOTE_PORT_NUMBER)/repo.git
|
||||
GIT_WRONG_CONTENT_LICENSE_FILES = file
|
||||
|
||||
$(eval $(generic-package))
|
||||
@@ -0,0 +1,11 @@
|
||||
################################################################################
|
||||
#
|
||||
# git-wrong-sha1
|
||||
#
|
||||
################################################################################
|
||||
|
||||
GIT_WRONG_SHA1_VERSION = 0000000000000000000000000000000000000000
|
||||
GIT_WRONG_SHA1_SITE = git://localhost:$(GITREMOTE_PORT_NUMBER)/repo.git
|
||||
GIT_WRONG_SHA1_LICENSE_FILES = file
|
||||
|
||||
$(eval $(generic-package))
|
||||
1
bsp/buildroot/support/testing/tests/download/git-remote/refs-sub1.git/.gitattributes
vendored
Normal file
1
bsp/buildroot/support/testing/tests/download/git-remote/refs-sub1.git/.gitattributes
vendored
Normal file
@@ -0,0 +1 @@
|
||||
objects/*/* binary
|
||||
@@ -0,0 +1 @@
|
||||
cb545facf77bbc5f24f95b6d503c338d10b7b717
|
||||
@@ -0,0 +1,4 @@
|
||||
[core]
|
||||
repositoryformatversion = 0
|
||||
filemode = true
|
||||
bare = true
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -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Ńâźr‚WnL‹Wž×ş’Rç^ű_fĹW`
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1 @@
|
||||
1df823cb8a6d1866148ae50a8009762a9c4c777f
|
||||
1
bsp/buildroot/support/testing/tests/download/git-remote/refs-sub2.git/.gitattributes
vendored
Normal file
1
bsp/buildroot/support/testing/tests/download/git-remote/refs-sub2.git/.gitattributes
vendored
Normal file
@@ -0,0 +1 @@
|
||||
objects/*/* binary
|
||||
@@ -0,0 +1 @@
|
||||
32d61bae693af7879da63b89a60d3ae67f851e56
|
||||
@@ -0,0 +1,4 @@
|
||||
[core]
|
||||
repositoryformatversion = 0
|
||||
filemode = true
|
||||
bare = true
|
||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1 @@
|
||||
xν
Â0@ajOq$:;²#„X€&8ÿ…q,S°=‘(èíW<=_ræjœvÆÖ&‡(½“:Y§U"e“1a˜0B#ƒ•#9AÏv+.쩆gª<67>W_w†Cý`Ÿ¿xš3ñÒû’<C3BB> 5N¨<4E>-t¨Å¦ÛD‹Ê ^¹1-B\y^cèJJ<4A>{í™o`Ì`+
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,2 @@
|
||||
xÎ=n!†aל‚¬5,?‘eù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)
|
||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1 @@
|
||||
e83f6f805bd016b90acafc8702c52d778eb57310
|
||||
1
bsp/buildroot/support/testing/tests/download/git-remote/repo.git/.gitattributes
vendored
Normal file
1
bsp/buildroot/support/testing/tests/download/git-remote/repo.git/.gitattributes
vendored
Normal file
@@ -0,0 +1 @@
|
||||
objects/*/* binary
|
||||
@@ -0,0 +1 @@
|
||||
ref: refs/heads/master
|
||||
@@ -0,0 +1,4 @@
|
||||
[core]
|
||||
repositoryformatversion = 0
|
||||
filemode = true
|
||||
bare = true
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1 @@
|
||||
xEŽK!]s~BbŒpã
°i *ƒA6s{1³póR©Eåõ<C3A5>`6jWo¦f¶äÉÜf²Ö(uDëI²F}`‰Q*Ñ×7ÕRr}4Ê:öG‰\3…+\Bëy¡úyf8¶MNå/Ï©„üšFæ4NàÁ'ÑÁ¢[òL3
|
||||
Binary file not shown.
@@ -0,0 +1 @@
|
||||
x╜н;N1@Qj╞б≤хъ▄█P■
п░<©Ob▐▒ЦЛ·H)ХМ)╝.ЖжЙтчМ_Ф`жЛPьЛ⌠╛▀bОDь╨` ╒┤┌°RfУ┐╥╘аЫT, Rr▒бJи▐я9Л┼)XKы░┌Ш╪Т║?*б═╝ъaл╨a©]╚~Oэ╣_<·тоЖvп6 5гДcж▀Яф╗┤>╕'ЪSN∙^╛R╖zч≤√.╡■Ов©л╙1nS
|
||||
Binary file not shown.
@@ -0,0 +1 @@
|
||||
xÎ1n!@Qל‚¬Å0àa£(òÒÄ'˜e`<60>–“··¥î-·¯øú±ÕZ†F‹»ÑSÒ1›ìrðB)![±~™çƒ‡À<E280A1>(±1 ~¹§mh¶<16>%X/Ž$ ãŒÑ[‹( ³Åãܺþ*‘»4ýÉ}”-¶ËwÑïý÷õ<C3B7>ǵrùÙÇV?4xC³pðz2hŒºë}z¤åÔà”:•uK2µœ§åúöÌ©ºÍFkb
|
||||
@@ -0,0 +1,2 @@
|
||||
xÎKN1EQÆ^…7БåBQ6À„¬ º\n¬à6rœ»'æˆéyÒÓ¥ÞZ<C39E>Òû4³dc|ZK
|
||||
¾pÖœÅ\ôV“Ââ‚uшO¼OéüŠ«·‰udCä2<C3A4>ŠEE•Á?æR ¼Í÷>ä[%¹ËW³îÔ¯—*_ÆÚ/ž¶†õã@½¥D¬\”UJÜõ=ùŸîÄÄÍq®ÛÎyé¥,ë×ó_JÅ7Êle
|
||||
@@ -0,0 +1 @@
|
||||
xÎ=N1†ajŸÂØÈ;³ë„ !'ÏL+x<>Œ)¸=+¥HÑ>Ò÷éåVkÁ?<3F>®j3,cð°¨pˆâ ÍxA&I™R`拺nûp‹óè¢$X“àœÅ‰!AQŒ™ÕEC?ãÒºý(L]š}§>ÊÆíûZìK¿á¡Þñí\©|¸ÕW;¯.¤5¢G;9tÎìºGý§;“;m|cŽå¼©Lítšòïó#±æ$bl·
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1 @@
|
||||
xÎM @aלb.Ш”bŒñnôÃ_<C383>´@‚¸ðö6qáÞ¸ý/Ï•”¨<E2809D>ÔÓ®ÕÀ˜(ijBEc•Œ(MG?LÜ{ä£ðFh´Ÿí^*\Éaõ.XeWÁ±~°O_<Ï ií]I'Šk£ô´×Ðñ<C390>s¶é6ÑŸrŒ25•±Í9ø®ÄØÙ×á—YölÚ`C
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1 @@
|
||||
a238b1dfcd825d47d834af3c5223417c8411d90d
|
||||
@@ -0,0 +1 @@
|
||||
68c197d0879d485f4f6cee85544722b79e68e59f
|
||||
@@ -0,0 +1 @@
|
||||
2fa37f6885d7eb746df75eccaddbacf3ac82799d
|
||||
@@ -0,0 +1 @@
|
||||
2b0e0d98a49c97da6a618ab36337e2058eb733a2
|
||||
46
bsp/buildroot/support/testing/tests/download/gitremote.py
Normal file
46
bsp/buildroot/support/testing/tests/download/gitremote.py
Normal file
@@ -0,0 +1,46 @@
|
||||
# subprocess does not kill the child daemon when a test case fails by raising
|
||||
# an exception. So use pexpect instead.
|
||||
import infra
|
||||
|
||||
import pexpect
|
||||
|
||||
|
||||
GIT_REMOTE_PORT_INITIAL = 9418
|
||||
GIT_REMOTE_PORT_LAST = GIT_REMOTE_PORT_INITIAL + 99
|
||||
|
||||
|
||||
class GitRemote(object):
|
||||
def __init__(self, builddir, serveddir, logtofile):
|
||||
"""
|
||||
Start a local git server.
|
||||
|
||||
In order to support test cases in parallel, select the port the
|
||||
server will listen to in runtime. Since there is no reliable way
|
||||
to allocate the port prior to starting the server (another
|
||||
process in the host machine can use the port between it is
|
||||
selected from a list and it is really allocated to the server)
|
||||
try to start the server in a port and in the case it is already
|
||||
in use, try the next one in the allowed range.
|
||||
"""
|
||||
self.daemon = None
|
||||
self.port = None
|
||||
self.logfile = infra.open_log_file(builddir, "gitremote", logtofile)
|
||||
|
||||
daemon_cmd = ["git", "daemon", "--reuseaddr", "--verbose",
|
||||
"--listen=localhost", "--export-all",
|
||||
"--base-path={}".format(serveddir)]
|
||||
for port in range(GIT_REMOTE_PORT_INITIAL, GIT_REMOTE_PORT_LAST + 1):
|
||||
cmd = daemon_cmd + ["--port={port}".format(port=port)]
|
||||
self.logfile.write("> starting git remote with '{}'\n".format(" ".join(cmd)))
|
||||
self.daemon = pexpect.spawn(cmd[0], cmd[1:], logfile=self.logfile)
|
||||
ret = self.daemon.expect(["Ready to rumble",
|
||||
"Address already in use"])
|
||||
if ret == 0:
|
||||
self.port = port
|
||||
return
|
||||
raise SystemError("Could not find a free port to run git remote")
|
||||
|
||||
def stop(self):
|
||||
if self.daemon is None:
|
||||
return
|
||||
self.daemon.terminate(force=True)
|
||||
81
bsp/buildroot/support/testing/tests/download/test_git.py
Normal file
81
bsp/buildroot/support/testing/tests/download/test_git.py
Normal file
@@ -0,0 +1,81 @@
|
||||
import os
|
||||
import shutil
|
||||
|
||||
from gitremote import GitRemote
|
||||
|
||||
import infra
|
||||
|
||||
|
||||
class GitTestBase(infra.basetest.BRConfigTest):
|
||||
config = \
|
||||
"""
|
||||
BR2_BACKUP_SITE=""
|
||||
"""
|
||||
gitremotedir = infra.filepath("tests/download/git-remote")
|
||||
gitremote = None
|
||||
|
||||
def setUp(self):
|
||||
super(GitTestBase, self).setUp()
|
||||
self.gitremote = GitRemote(self.builddir, self.gitremotedir, self.logtofile)
|
||||
|
||||
def tearDown(self):
|
||||
self.show_msg("Cleaning up")
|
||||
if self.gitremote:
|
||||
self.gitremote.stop()
|
||||
if self.b and not self.keepbuilds:
|
||||
self.b.delete()
|
||||
|
||||
def check_hash(self, package):
|
||||
# store downloaded tarball inside the output dir so the test infra
|
||||
# cleans it up at the end
|
||||
env = {"BR2_DL_DIR": os.path.join(self.builddir, "dl"),
|
||||
"GITREMOTE_PORT_NUMBER": str(self.gitremote.port)}
|
||||
self.b.build(["{}-dirclean".format(package),
|
||||
"{}-source".format(package)],
|
||||
env)
|
||||
|
||||
def check_download(self, package):
|
||||
# store downloaded tarball inside the output dir so the test infra
|
||||
# cleans it up at the end
|
||||
dl_dir = os.path.join(self.builddir, "dl")
|
||||
# enforce we test the download
|
||||
if os.path.exists(dl_dir):
|
||||
shutil.rmtree(dl_dir)
|
||||
env = {"BR2_DL_DIR": dl_dir,
|
||||
"GITREMOTE_PORT_NUMBER": str(self.gitremote.port)}
|
||||
self.b.build(["{}-dirclean".format(package),
|
||||
"{}-legal-info".format(package)],
|
||||
env)
|
||||
|
||||
|
||||
class TestGitHash(GitTestBase):
|
||||
br2_external = [infra.filepath("tests/download/br2-external/git-hash")]
|
||||
|
||||
def test_run(self):
|
||||
with self.assertRaises(SystemError):
|
||||
self.check_hash("bad")
|
||||
self.check_hash("good")
|
||||
self.check_hash("nohash")
|
||||
|
||||
|
||||
class TestGitRefs(GitTestBase):
|
||||
br2_external = [infra.filepath("tests/download/br2-external/git-refs")]
|
||||
|
||||
def test_run(self):
|
||||
with self.assertRaises(SystemError):
|
||||
self.check_download("git-wrong-content")
|
||||
with self.assertRaises(SystemError):
|
||||
self.check_download("git-wrong-sha1")
|
||||
self.check_download("git-partial-sha1-branch-head")
|
||||
self.check_download("git-partial-sha1-reachable-by-branch")
|
||||
self.check_download("git-partial-sha1-reachable-by-tag")
|
||||
self.check_download("git-partial-sha1-tag-itself")
|
||||
self.check_download("git-partial-sha1-tag-points-to")
|
||||
self.check_download("git-sha1-branch-head")
|
||||
self.check_download("git-sha1-reachable-by-branch")
|
||||
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-submodule-disabled")
|
||||
self.check_download("git-submodule-enabled")
|
||||
self.check_download("git-tag")
|
||||
Reference in New Issue
Block a user