diff --git a/support/testing/tests/download/br2-external/gitlab/Config.in b/support/testing/tests/download/br2-external/gitlab/Config.in new file mode 100644 index 0000000000..e69de29bb2 diff --git a/support/testing/tests/download/br2-external/gitlab/external.desc b/support/testing/tests/download/br2-external/gitlab/external.desc new file mode 100644 index 0000000000..eafc8a43ff --- /dev/null +++ b/support/testing/tests/download/br2-external/gitlab/external.desc @@ -0,0 +1 @@ +name: GITLAB diff --git a/support/testing/tests/download/br2-external/gitlab/external.mk b/support/testing/tests/download/br2-external/gitlab/external.mk new file mode 100644 index 0000000000..8de1203231 --- /dev/null +++ b/support/testing/tests/download/br2-external/gitlab/external.mk @@ -0,0 +1 @@ +include $(sort $(wildcard $(BR2_EXTERNAL_GITLAB_PATH)/package/*/*.mk)) diff --git a/support/testing/tests/download/br2-external/gitlab/package/gitlab-helper-hash/gitlab-helper-hash.hash b/support/testing/tests/download/br2-external/gitlab/package/gitlab-helper-hash/gitlab-helper-hash.hash new file mode 100644 index 0000000000..79684e9742 --- /dev/null +++ b/support/testing/tests/download/br2-external/gitlab/package/gitlab-helper-hash/gitlab-helper-hash.hash @@ -0,0 +1,3 @@ +# Locally computed +sha256 28f3b63454a7de6d8fb154dfa1e2e203afeb34db006661329e273137f8fe3dce gitlab-helper-hash-21a378a7858460809ffef1c96a07a493d709730c.tar.gz +sha256 309875d925041d909bc705473d6c4b7905272aea15c1c2389088c26c161bae1f license.txt diff --git a/support/testing/tests/download/br2-external/gitlab/package/gitlab-helper-hash/gitlab-helper-hash.mk b/support/testing/tests/download/br2-external/gitlab/package/gitlab-helper-hash/gitlab-helper-hash.mk new file mode 100644 index 0000000000..44a156118e --- /dev/null +++ b/support/testing/tests/download/br2-external/gitlab/package/gitlab-helper-hash/gitlab-helper-hash.mk @@ -0,0 +1,12 @@ +################################################################################ +# +# gitlab-helper-hash +# +################################################################################ + +GITLAB_HELPER_HASH_VERSION = 21a378a7858460809ffef1c96a07a493d709730c +GITLAB_HELPER_HASH_SITE = $(call gitlab,solarus-games,solarus,$(GITLAB_HELPER_HASH_VERSION)) + +GITLAB_HELPER_HASH_LICENSE_FILES = license.txt + +$(eval $(generic-package)) diff --git a/support/testing/tests/download/br2-external/gitlab/package/gitlab-helper-tag/gitlab-helper-tag.hash b/support/testing/tests/download/br2-external/gitlab/package/gitlab-helper-tag/gitlab-helper-tag.hash new file mode 100644 index 0000000000..1c50bc3c8f --- /dev/null +++ b/support/testing/tests/download/br2-external/gitlab/package/gitlab-helper-tag/gitlab-helper-tag.hash @@ -0,0 +1,3 @@ +# Locally computed +sha256 ef08b22999431b7f81f9b74408221b8a5a3ab5b0f646a835443a3c37cb2fb979 gitlab-helper-tag-1.6.5.tar.gz +sha256 309875d925041d909bc705473d6c4b7905272aea15c1c2389088c26c161bae1f license.txt diff --git a/support/testing/tests/download/br2-external/gitlab/package/gitlab-helper-tag/gitlab-helper-tag.mk b/support/testing/tests/download/br2-external/gitlab/package/gitlab-helper-tag/gitlab-helper-tag.mk new file mode 100644 index 0000000000..fb2fc49c82 --- /dev/null +++ b/support/testing/tests/download/br2-external/gitlab/package/gitlab-helper-tag/gitlab-helper-tag.mk @@ -0,0 +1,11 @@ +################################################################################ +# +# gitlab-helper-tag +# +################################################################################ + +GITLAB_HELPER_TAG_VERSION = 1.6.5 +GITLAB_HELPER_TAG_SITE = $(call gitlab,solarus-games,solarus,v$(GITLAB_HELPER_TAG_VERSION)) +GITLAB_HELPER_TAG_LICENSE_FILES = license.txt + +$(eval $(generic-package)) diff --git a/support/testing/tests/download/br2-external/gitlab/package/gitlab-release/gitlab-release.hash b/support/testing/tests/download/br2-external/gitlab/package/gitlab-release/gitlab-release.hash new file mode 100644 index 0000000000..7031d1b34a --- /dev/null +++ b/support/testing/tests/download/br2-external/gitlab/package/gitlab-release/gitlab-release.hash @@ -0,0 +1,3 @@ +# Locally calculated +sha256 12b88efa4d0d95af08db05a50b3dcb217c0eb2bfc67b483779e33d498ddb2f95 iucode-tool_2.3.1.tar.xz +sha256 ab15fd526bd8dd18a9e77ebc139656bf4d33e97fc7238cd11bf60e2b9b8666c6 COPYING diff --git a/support/testing/tests/download/br2-external/gitlab/package/gitlab-release/gitlab-release.mk b/support/testing/tests/download/br2-external/gitlab/package/gitlab-release/gitlab-release.mk new file mode 100644 index 0000000000..2510ac634b --- /dev/null +++ b/support/testing/tests/download/br2-external/gitlab/package/gitlab-release/gitlab-release.mk @@ -0,0 +1,12 @@ +################################################################################ +# +# gitlab-release +# +################################################################################ + +GITLAB_RELEASE_VERSION = 2.3.1 +GITLAB_RELEASE_SITE = https://gitlab.com/iucode-tool/releases/raw/master +GITLAB_RELEASE_SOURCE = iucode-tool_$(GITLAB_RELEASE_VERSION).tar.xz +GITLAB_RELEASE_LICENSE_FILES = COPYING + +$(eval $(generic-package)) diff --git a/support/testing/tests/download/test_gitforge.py b/support/testing/tests/download/test_gitforge.py index c2d98d0853..e1ac35ec67 100644 --- a/support/testing/tests/download/test_gitforge.py +++ b/support/testing/tests/download/test_gitforge.py @@ -39,3 +39,11 @@ class TestGitHub(GitforgeTestBase): self.check_download("github-helper-hash") self.check_download("github-release") + +class TestGitLab(GitforgeTestBase): + br2_external = [infra.filepath("tests/download/br2-external/gitlab")] + + def test_run(self): + self.check_download("gitlab-helper-hash") + self.check_download("gitlab-helper-tag") + self.check_download("gitlab-release")