support/testing: add test for export-subst support in git-download

Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Signed-off-by: Arnout Vandecappelle <arnout@mind.be>
This commit is contained in:
Yann E. MORIN 2024-05-04 23:40:07 +02:00 committed by Arnout Vandecappelle
parent ac92ce4961
commit a6182475b0
8 changed files with 16 additions and 1 deletions

View File

@ -0,0 +1 @@
sha256 9d359f9ae9a9e65dd4ccfe7170aa6fda24e17dfc81238972957b4b7fe97168a7 export-subst-0fdb95cf4f3c5ed4003287649cabb33c5f843e26-br2.tar.gz

View File

@ -0,0 +1,10 @@
################################################################################
#
# export-subst
#
################################################################################
EXPORT_SUBST_VERSION = 0fdb95cf4f3c5ed4003287649cabb33c5f843e26
EXPORT_SUBST_SITE = git://localhost:$(GITREMOTE_PORT_NUMBER)/repo.git
$(eval $(generic-package))

View File

@ -1 +1 @@
a238b1dfcd825d47d834af3c5223417c8411d90d
0fdb95cf4f3c5ed4003287649cabb33c5f843e26

View File

@ -56,6 +56,10 @@ class TestGitHash(GitTestBase):
self.check_hash("bad")
self.check_hash("good")
self.check_hash("nohash")
self.check_hash("export-subst")
with open(os.path.join(self.builddir, "dl", "export-subst", "git", "file2"), "r") as f:
blob = f.read()
self.assertEqual(blob, "0fdb95cf4f3c5ed4003287649cabb33c5f843e26\n")
class TestGitRefs(GitTestBase):