<feed xmlns='http://www.w3.org/2005/Atom'>
<title>buildroot/support/testing/tests/download/git-remote, branch 2019.02-op-build</title>
<subtitle>OpenPOWER buildroot sources</subtitle>
<id>https://git.raptorcs.com/git/buildroot/atom?h=2019.02-op-build</id>
<link rel='self' href='https://git.raptorcs.com/git/buildroot/atom?h=2019.02-op-build'/>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/buildroot/'/>
<updated>2019-03-01T10:09:41+00:00</updated>
<entry>
<title>Revert "testing/tests/download: test git special ref"</title>
<updated>2019-03-01T10:09:41+00:00</updated>
<author>
<name>Ricardo Martincoski</name>
<email>ricardo.martincoski@gmail.com</email>
</author>
<published>2019-02-26T03:02:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/buildroot/commit/?id=7b2dd942d023d40be177a37a61f98c2cb7524f69'/>
<id>urn:sha1:7b2dd942d023d40be177a37a61f98c2cb7524f69</id>
<content type='text'>
This reverts commit 81771cfcdc40e5909a4ec663e7c88b3a32068c05.

The download of sha1 of a special ref currently works or not depending
on the git client version in use.
With git version 2.11.0 (present in the docker image) it does not work.
With git version 2.17.1 it works.

For the sake of reproducibility, remove this part of the TestGitRefs
test case until some code gets added to the download infra to handle
sha1 of a special ref for any git client version.

Fixes:
https://gitlab.com/buildroot.org/buildroot/-/jobs/158295269

Signed-off-by: Ricardo Martincoski &lt;ricardo.martincoski@gmail.com&gt;
Cc: Arnout Vandecappelle &lt;arnout@mind.be&gt;
Cc: Thomas Petazzoni &lt;thomas.petazzoni@bootlin.com&gt;
Cc: Yann E. MORIN &lt;yann.morin.1998@free.fr&gt;
Signed-off-by: Peter Korsgaard &lt;peter@korsgaard.com&gt;
</content>
</entry>
<entry>
<title>testing/tests/download: test git special ref</title>
<updated>2019-02-06T10:13:20+00:00</updated>
<author>
<name>Ricardo Martincoski</name>
<email>ricardo.martincoski@datacom.ind.br</email>
</author>
<published>2018-05-12T02:58:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/buildroot/commit/?id=81771cfcdc40e5909a4ec663e7c88b3a32068c05'/>
<id>urn:sha1:81771cfcdc40e5909a4ec663e7c88b3a32068c05</id>
<content type='text'>
Add a special ref to the static repo and check on the git refs test case
the download of a git package:
 - with the sha1 of a special ref as version;

Signed-off-by: Ricardo Martincoski &lt;ricardo.martincoski@datacom.ind.br&gt;
Cc: Arnout Vandecappelle &lt;arnout@mind.be&gt;
[Arnout: change to use the sha1 of a special ref instead of the name]
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) &lt;arnout@mind.be&gt;
</content>
</entry>
<entry>
<title>testing/tests/download: test git tag</title>
<updated>2019-02-06T09:57:26+00:00</updated>
<author>
<name>Ricardo Martincoski</name>
<email>ricardo.martincoski@datacom.ind.br</email>
</author>
<published>2018-05-12T02:58:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/buildroot/commit/?id=ed3cda38cd533ffae68258ca5586c3df4789c120'/>
<id>urn:sha1:ed3cda38cd533ffae68258ca5586c3df4789c120</id>
<content type='text'>
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 &lt;ricardo.martincoski@datacom.ind.br&gt;
Cc: Arnout Vandecappelle &lt;arnout@mind.be&gt;
Tested-by: Matthew Weber &lt;matthew.weber@rockwellcollins.com&gt;
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) &lt;arnout@mind.be&gt;
</content>
</entry>
<entry>
<title>testing/tests/download: test git submodules</title>
<updated>2019-02-06T08:56:58+00:00</updated>
<author>
<name>Ricardo Martincoski</name>
<email>ricardo.martincoski@datacom.ind.br</email>
</author>
<published>2018-05-12T02:58:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/buildroot/commit/?id=9cc7a12bdeecfdf3d0d0c3b8ebc1e41069e3ff25'/>
<id>urn:sha1:9cc7a12bdeecfdf3d0d0c3b8ebc1e41069e3ff25</id>
<content type='text'>
Add two submodules as static repos, add a branch to the main static repo
and check on the git refs test case the download of a git package:
 - repo with submodule but without support in the package;
 - repo with recursive submodules with support in the package.

Signed-off-by: Ricardo Martincoski &lt;ricardo.martincoski@datacom.ind.br&gt;
Cc: Arnout Vandecappelle &lt;arnout@mind.be&gt;
[Arnout: remove handling of inconsistent tarball hashes - that's an
 actual bug that should be fixed]
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) &lt;arnout@mind.be&gt;
</content>
</entry>
<entry>
<title>testing/tests/download: test git branch</title>
<updated>2019-02-05T09:23:03+00:00</updated>
<author>
<name>Ricardo Martincoski</name>
<email>ricardo.martincoski@gmail.com</email>
</author>
<published>2018-05-12T02:58:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/buildroot/commit/?id=5692e6afa1cad6ec012742e5cd3a222c318e50b5'/>
<id>urn:sha1:5692e6afa1cad6ec012742e5cd3a222c318e50b5</id>
<content type='text'>
Add a branch to the static repo and check on the git refs test case the
download of a git package:
 - with a sha1 reachable by a branch name, but not pointed by it, as
   version. This is the most common use case for git refs in the tree;
 - with a partial sha1 of a commit reachable by a branch as version;
 - with a sha1 of the commit head of a branch as version;
 - with a partial sha1 of the commit head of a branch as version;

Enforce the download always occurs by removing the BR2_DL_DIR used for
the tarballs generated by the git download infra.

Signed-off-by: Ricardo Martincoski &lt;ricardo.martincoski@datacom.ind.br&gt;
Cc: Arnout Vandecappelle &lt;arnout@mind.be&gt;
Tested-by: Matthew Weber &lt;matthew.weber@rockwellcollins.com&gt;
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) &lt;arnout@mind.be&gt;
</content>
</entry>
<entry>
<title>testing/tests/download: add git hash test</title>
<updated>2019-02-04T15:52:58+00:00</updated>
<author>
<name>Ricardo Martincoski</name>
<email>ricardo.martincoski@datacom.ind.br</email>
</author>
<published>2018-05-12T02:58:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/buildroot/commit/?id=f284b5e7a1618f0f3f2eec0876a0da8d5848b0fa'/>
<id>urn:sha1:f284b5e7a1618f0f3f2eec0876a0da8d5848b0fa</id>
<content type='text'>
Add one test case to ensure the hash is checked for git packages:
 - correct hash;
 - wrong hash;
 - no hash file.

Add required infra:
 - a GitRemote class, that can start a git server in the host machine to
   emulate a remote git server under the control of the test;
 - a new base class, called GitTestBase, that inherits from BRTest and
   must be subclassed by all git test cases.
   Its setUp() method takes care of configuring the build with a
   br2-external, avoiding to hit http://sources.buildroot.net by using
   an empty BR2_BACKUP_SITE. It also avoids downloading not
   pre-installed dependencies (i.e. lzip) every time by calling 'make
   dependencies' using the common dl directory, and it instantiates the
   GitRemote object.

Besides the Python scripts, add some fixtures used during the tests:
 - a br2-external (git-hash) with one package for each part of the test
   case;
 - a static git bare repo (repo.git) to be served using GitRemote class.

Neither the br2-external nor the check hash functionalities are the
subject of these tests per se, so for simplicity limit the check to the
error codes and don't look for the messages in the log.

Thanks to Arnout for the hint about how to add a bare repo to test.

Signed-off-by: Ricardo Martincoski &lt;ricardo.martincoski@datacom.ind.br&gt;
Cc: Arnout Vandecappelle &lt;arnout@mind.be&gt;
Tested-by: Matthew Weber &lt;matthew.weber@rockwellcollins.com&gt;
[Arnout: split long line; reorder imports to satisfy flake8]
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) &lt;arnout@mind.be&gt;
</content>
</entry>
</feed>
