diff --git a/support/testing/tests/download/br2-external/git-hash/package/export-subst/export-subst.hash b/support/testing/tests/download/br2-external/git-hash/package/export-subst/export-subst.hash new file mode 100644 index 0000000000..1926236993 --- /dev/null +++ b/support/testing/tests/download/br2-external/git-hash/package/export-subst/export-subst.hash @@ -0,0 +1 @@ +sha256 9d359f9ae9a9e65dd4ccfe7170aa6fda24e17dfc81238972957b4b7fe97168a7 export-subst-0fdb95cf4f3c5ed4003287649cabb33c5f843e26-br2.tar.gz diff --git a/support/testing/tests/download/br2-external/git-hash/package/export-subst/export-subst.mk b/support/testing/tests/download/br2-external/git-hash/package/export-subst/export-subst.mk new file mode 100644 index 0000000000..8d7d3ff970 --- /dev/null +++ b/support/testing/tests/download/br2-external/git-hash/package/export-subst/export-subst.mk @@ -0,0 +1,10 @@ +################################################################################ +# +# export-subst +# +################################################################################ + +EXPORT_SUBST_VERSION = 0fdb95cf4f3c5ed4003287649cabb33c5f843e26 +EXPORT_SUBST_SITE = git://localhost:$(GITREMOTE_PORT_NUMBER)/repo.git + +$(eval $(generic-package)) diff --git a/support/testing/tests/download/git-remote/repo.git/objects/05/482df734b3715b849ef4a3147a9b1b1f8cca38 b/support/testing/tests/download/git-remote/repo.git/objects/05/482df734b3715b849ef4a3147a9b1b1f8cca38 new file mode 100644 index 0000000000..404bb1397c Binary files /dev/null and b/support/testing/tests/download/git-remote/repo.git/objects/05/482df734b3715b849ef4a3147a9b1b1f8cca38 differ diff --git a/support/testing/tests/download/git-remote/repo.git/objects/0f/db95cf4f3c5ed4003287649cabb33c5f843e26 b/support/testing/tests/download/git-remote/repo.git/objects/0f/db95cf4f3c5ed4003287649cabb33c5f843e26 new file mode 100644 index 0000000000..3a4cc4ead6 Binary files /dev/null and b/support/testing/tests/download/git-remote/repo.git/objects/0f/db95cf4f3c5ed4003287649cabb33c5f843e26 differ diff --git a/support/testing/tests/download/git-remote/repo.git/objects/68/28f88dcb0e88b8cd738ad6044ce74d7a9a13c8 b/support/testing/tests/download/git-remote/repo.git/objects/68/28f88dcb0e88b8cd738ad6044ce74d7a9a13c8 new file mode 100644 index 0000000000..fdc4a37651 Binary files /dev/null and b/support/testing/tests/download/git-remote/repo.git/objects/68/28f88dcb0e88b8cd738ad6044ce74d7a9a13c8 differ diff --git a/support/testing/tests/download/git-remote/repo.git/objects/6d/a12b257e47f6089612fe97a8746d2d9c4ca0e0 b/support/testing/tests/download/git-remote/repo.git/objects/6d/a12b257e47f6089612fe97a8746d2d9c4ca0e0 new file mode 100644 index 0000000000..932f73602f Binary files /dev/null and b/support/testing/tests/download/git-remote/repo.git/objects/6d/a12b257e47f6089612fe97a8746d2d9c4ca0e0 differ diff --git a/support/testing/tests/download/git-remote/repo.git/refs/heads/master b/support/testing/tests/download/git-remote/repo.git/refs/heads/master index b6bccc1c17..b6e37260fb 100644 --- a/support/testing/tests/download/git-remote/repo.git/refs/heads/master +++ b/support/testing/tests/download/git-remote/repo.git/refs/heads/master @@ -1 +1 @@ -a238b1dfcd825d47d834af3c5223417c8411d90d +0fdb95cf4f3c5ed4003287649cabb33c5f843e26 diff --git a/support/testing/tests/download/test_git.py b/support/testing/tests/download/test_git.py index ec5b8f3fdd..ba52e03ef5 100644 --- a/support/testing/tests/download/test_git.py +++ b/support/testing/tests/download/test_git.py @@ -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):