initial buildroot for linux 5.15
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-br1.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 682ad1f39f258bfb35e26f213f3798f44bb8105bb55fad47bdc003113765b650 good-a238b1dfcd825d47d834af3c5223417c8411d90d-br1.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
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
sha256 c27041b3e874beb0d0218158e7d6507ad1515b684de5eed5fabd0f7205e9718e git-partial-sha1-branch-head-68c197d0879d485f4f6c-br1.tar.gz
|
||||
sha256 2c1126513651b0d346a4e6d1bb75ac1c9999217e18026302d27bea47b06c7fb2 file
|
||||
+11
@@ -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))
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
sha256 1bbba9bf2788bd789ed8da4e47cabbf3467b1f706875b3f6b62df38e08fb9aba git-partial-sha1-reachable-by-branch-317406308d9259e2231b-br1.tar.gz
|
||||
sha256 fabbc65c442bacb5e69b7adfea6d14fbbfc1327134322efd12771dc84387d507 file
|
||||
+11
@@ -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))
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
sha256 52d223f3b2d625216c259e9ff949ca8818452a531ba61557dd91f3889c7919d7 git-partial-sha1-reachable-by-tag-46bae5b639e5a18e2cc4-br1.tar.gz
|
||||
sha256 2de87d77a2f226813f2d9bda906e970e4195605cdba6680443c0c04d89c532b6 file
|
||||
+11
@@ -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))
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
sha256 5cfc004b05f48b3fb419a5db4b7239223d670225fbbb91de2ae151c97910b36c git-partial-sha1-tag-itself-2b0e0d98a49c97da6a61-br1.tar.gz
|
||||
sha256 6de8772a0a58fa62e2b8c58d4dae55c9db7534ad3b3918ecc849a9008d58f081 file
|
||||
+11
@@ -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))
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
sha256 0f40d7f39bf2e389cc2ce03c73cc0cc9ded1119378aaa68e2a2ef8597f6fd2f3 git-partial-sha1-tag-points-to-516c9c5f64ec66534d4d-br1.tar.gz
|
||||
sha256 6de8772a0a58fa62e2b8c58d4dae55c9db7534ad3b3918ecc849a9008d58f081 file
|
||||
+11
@@ -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))
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
sha256 3ab67c485ce1825abbbf5db1d90d94dfadc89b30bb740041cfc75fc04021e218 git-sha1-branch-head-68c197d0879d485f4f6cee85544722b79e68e59f-br1.tar.gz
|
||||
sha256 2c1126513651b0d346a4e6d1bb75ac1c9999217e18026302d27bea47b06c7fb2 file
|
||||
+11
@@ -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))
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
sha256 a5936d6d6022ea101a6076864a2afa918ab2776764012c4be589027001044041 git-sha1-reachable-by-branch-317406308d9259e2231bd0d6ddad3de3832bce08-br1.tar.gz
|
||||
sha256 fabbc65c442bacb5e69b7adfea6d14fbbfc1327134322efd12771dc84387d507 file
|
||||
+11
@@ -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))
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
sha256 c203f968e358ca478d4c5344b1e4ae9bf13f9fb1120f2ed96a12154dd64195a6 git-sha1-reachable-by-tag-46bae5b639e5a18e2cc4dc508f080d566baeff59-br1.tar.gz
|
||||
sha256 2de87d77a2f226813f2d9bda906e970e4195605cdba6680443c0c04d89c532b6 file
|
||||
+11
@@ -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))
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
sha256 57f08e9f3914e79a10e7fb5d346b26fef2773dd22eed0d61fd755e79e62cee93 git-sha1-tag-itself-2b0e0d98a49c97da6a618ab36337e2058eb733a2-br1.tar.gz
|
||||
sha256 6de8772a0a58fa62e2b8c58d4dae55c9db7534ad3b3918ecc849a9008d58f081 file
|
||||
+11
@@ -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))
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
sha256 1d8b565827137aa21ba37cde382aa291e33a135c697e38dcd31f14e195386327 git-sha1-tag-points-to-516c9c5f64ec66534d4d069c2e408d9ae4dce023-br1.tar.gz
|
||||
sha256 6de8772a0a58fa62e2b8c58d4dae55c9db7534ad3b3918ecc849a9008d58f081 file
|
||||
+11
@@ -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))
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
sha256 e8e0febc7f1408df22bce2d73d9a30081e03b45e152bc25effd14435ca8b3433 git-submodule-disabled-a9dbc1e23c45e8e1b88c0448763f54d714eb6f8f-br1.tar.gz
|
||||
sha256 ba8b6ddc4726bfb6a05045ebfd8c43263c968ad1bc601bd46a25bc055008eddc file
|
||||
+11
@@ -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))
|
||||
+1
@@ -0,0 +1 @@
|
||||
sha256 176c32f10ad11f290b6251d701835450292ba281eb59c7fb57b244407a55ceab git-submodule-enabled-a9dbc1e23c45e8e1b88c0448763f54d714eb6f8f-br1.tar.gz
|
||||
+11
@@ -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 c66b2366d8ccb1670951012334fe8d48de3358aef39b3da2912b339448fefcde git-tag-mytag-br1.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))
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
sha256 4a230e667227310289438cd7d899276a0d45ca8778abfd043dfc0a10ed2c9085 git-wrong-content-a238b1dfcd825d47d834af3c5223417c8411d90d-br1.tar.gz
|
||||
sha256 0000000000000000000000000000000000000000000000000000000000000000 file
|
||||
+11
@@ -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))
|
||||
+11
@@ -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))
|
||||
@@ -0,0 +1 @@
|
||||
objects/*/* binary
|
||||
@@ -0,0 +1 @@
|
||||
cb545facf77bbc5f24f95b6d503c338d10b7b717
|
||||
@@ -0,0 +1,4 @@
|
||||
[core]
|
||||
repositoryformatversion = 0
|
||||
filemode = true
|
||||
bare = true
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
+1
@@ -0,0 +1 @@
|
||||
xν
Â0@ajOq$:;˛#„X€&8˙…q,S°=‘(číW<=_rćjśvĆÖ&‡(˝“:Y§U"e“1a�0B#�•#9AĎv+.쩆gŞŤW_w†Cý`źżxš3ńŇű’Ź 5N¨Ť4*D±é6Ńâźr‚WnL‹Wž×ş’Rç^ű_fĹW`
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
@@ -0,0 +1 @@
|
||||
1df823cb8a6d1866148ae50a8009762a9c4c777f
|
||||
@@ -0,0 +1 @@
|
||||
objects/*/* binary
|
||||
@@ -0,0 +1 @@
|
||||
32d61bae693af7879da63b89a60d3ae67f851e56
|
||||
@@ -0,0 +1,4 @@
|
||||
[core]
|
||||
repositoryformatversion = 0
|
||||
filemode = true
|
||||
bare = true
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
+1
@@ -0,0 +1 @@
|
||||
xν
Â0@ajOq$:;²#„X€&8ÿ…q,S°=‘(èíW<=_ræjœvÆÖ&‡(½“:Y§U"e“1a˜0B#ƒ•#9AÏv+.쩆gª�W_w†Cý`Ÿ¿xš3ñÒû’� 5N¨�-t¨Å¦ÛD‹Ê ^¹1-B\y^cèJJ�{í™o`Ì`+
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
+2
@@ -0,0 +1,2 @@
|
||||
xÎ=n!†aל‚¬5,?‘eùi’Ã`#‡Åbq‘Ûg£é£´�ô}z©ÕZ†Ô³=ŒÎ,5‡hUðä1È~£µQŠu4É)ì¼~“SÙ�yñKHètô$½ó’½Ul�À縵.ß
|
||||
aOM¾be¥¶Ý‹<õ<Ö_¼\+–�#µz–Ê‚ëLXä3€Øu�üOwb{ÆyRB¼—ëÊij9Oñóå/âãxl)
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
@@ -0,0 +1 @@
|
||||
e83f6f805bd016b90acafc8702c52d778eb57310
|
||||
@@ -0,0 +1 @@
|
||||
objects/*/* binary
|
||||
@@ -0,0 +1 @@
|
||||
ref: refs/heads/master
|
||||
@@ -0,0 +1,4 @@
|
||||
[core]
|
||||
repositoryformatversion = 0
|
||||
filemode = true
|
||||
bare = true
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
+1
@@ -0,0 +1 @@
|
||||
xEŽK!]s~BbŒpã
°i *ƒA6s{1³póR©Eåõ�`6jWo¦f¶äÉÜf²Ö(uDëI²F}`‰Q*Ñ×7ÕRr}4Ê:öG‰\3…+\Bëy¡úyf8¶MNå/Ï©„üšFæ4NàÁ'ÑÁ¢[òL3
|
||||
BIN
Binary file not shown.
+1
@@ -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
|
||||
BIN
Binary file not shown.
+1
@@ -0,0 +1 @@
|
||||
xÎ1n!@Qל‚¬Å0àa£(òÒÄ'˜e`�–“··¥î-·¯øú±ÕZ†F‹»ÑSÒ1›ìrðB)![±~™çƒ‡À�(±1 ~¹§mh¶�%X/Ž$ ãŒÑ[‹( ³Åãܺþ*‘»4ýÉ}”-¶ËwÑïý÷õ�ǵrùÙÇV?4xC³pðz2hŒºë}z¤åÔà”:•uK2µœ§åúöÌ©ºÍFkb
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
xÎKN1EQÆ^…7БåBQ6À„¬ º\n¬à6rœ»'æˆéyÒÓ¥ÞZ�Òû4³dc|ZK
|
||||
¾pÖœÅ\ôV“Ââ‚uшO¼OéüŠ«·‰udCä2�ŠEE•Á?æR ¼Í÷>ä[%¹ËW³îÔ¯—*_ÆÚ/ž¶†õã@½¥D¬\”UJÜõ=ùŸîÄÄÍq®ÛÎyé¥,ë×ó_JÅ7Êle
|
||||
+1
@@ -0,0 +1 @@
|
||||
xÎ=N1†ajŸÂØÈ;³ë„ !'ÏL+x�Œ)¸=+¥HÑ>Ò÷éåVkÁ?�®j3,cð°¨pˆâ ÍxA&I™R`拺nûp‹óè¢$X“àœÅ‰!AQŒ™ÕEC?ãÒºý(L]š}§>ÊÆíûZìK¿á¡Þñí\©|¸ÕW;¯.¤5¢G;9tÎìºGý§;“;m|cŽå¼©Lítšòïó#±æ$bl·
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
+1
@@ -0,0 +1 @@
|
||||
xÎM @aלb.Ш”bŒñnôÃ_�´@‚¸ðö6qáÞ¸ý/Ï•”¨�ÔÓ®ÕÀ˜(ijBEc•Œ(MG?LÜ{ä£ðFh´Ÿí^*\Éaõ.XeWÁ±~°O_<Ï ií]I'Šk£ô´×Ðñ�s¶é6ÑŸrŒ25•±Í9ø®ÄØÙ×á—YölÚ`C
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
@@ -0,0 +1 @@
|
||||
a238b1dfcd825d47d834af3c5223417c8411d90d
|
||||
@@ -0,0 +1 @@
|
||||
68c197d0879d485f4f6cee85544722b79e68e59f
|
||||
@@ -0,0 +1 @@
|
||||
2fa37f6885d7eb746df75eccaddbacf3ac82799d
|
||||
@@ -0,0 +1 @@
|
||||
2b0e0d98a49c97da6a618ab36337e2058eb733a2
|
||||
@@ -0,0 +1,47 @@
|
||||
# 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,
|
||||
encoding='utf-8')
|
||||
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)
|
||||
@@ -0,0 +1,81 @@
|
||||
import os
|
||||
import shutil
|
||||
|
||||
from tests.download.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