diff options
author | Ricardo Martincoski <ricardo.martincoski@datacom.ind.br> | 2018-05-11 23:58:31 -0300 |
---|---|---|
committer | Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> | 2019-02-06 10:57:26 +0100 |
commit | ed3cda38cd533ffae68258ca5586c3df4789c120 (patch) | |
tree | 6b3e78e26708dbdf3d78586b7dc5bc5cc2914243 /support/testing/tests/download/test_git.py | |
parent | c6386be05b814dbfda94b0a00b164f87dbe24796 (diff) | |
download | buildroot-ed3cda38cd533ffae68258ca5586c3df4789c120.tar.gz buildroot-ed3cda38cd533ffae68258ca5586c3df4789c120.zip |
testing/tests/download: test git tag
Add a tag to the static repo and check on the git refs test case the
download of a git package:
- with the name of a tag as version;
- with the sha1 of a tag itself as version;
- with the partial sha1 of a tag itself as version;
- with the sha1 of a commit pointed by a tag as version;
- with the partial sha1 of a commit pointed by a tag as version;
- with the sha1 of a commit reachable only by a tag as version;
- with the partial sha1 of a commit reachable only by a tag as version.
Signed-off-by: Ricardo Martincoski <ricardo.martincoski@datacom.ind.br>
Cc: Arnout Vandecappelle <arnout@mind.be>
Tested-by: Matthew Weber <matthew.weber@rockwellcollins.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Diffstat (limited to 'support/testing/tests/download/test_git.py')
-rw-r--r-- | support/testing/tests/download/test_git.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/support/testing/tests/download/test_git.py b/support/testing/tests/download/test_git.py index 723f00d188..2455557298 100644 --- a/support/testing/tests/download/test_git.py +++ b/support/testing/tests/download/test_git.py @@ -68,7 +68,14 @@ class TestGitRefs(GitTestBase): 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") |