diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-11-05 15:52:09 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-11-07 23:08:55 +0000 |
commit | 36df73a52342b9f37b70bfd24c0c8cce5f75f11f (patch) | |
tree | 89157a156694ff55d1f654c9b7d22fcf7ebe2ea7 /meta/lib | |
parent | e1f8c4dac84425336175362c246527a006f65ff5 (diff) | |
download | poky-36df73a52342b9f37b70bfd24c0c8cce5f75f11f.tar.gz |
oeqa/selftest: Add test for Yocto source mirror functionality/completeness
We've had a number of occasions where the Yocto Project source mirrors have not
been complete or functioning correctly. This adds a test so that if this happens
we find out out it sooner.
It also only works over http meaning we should be able to test that anyone behind
an http only proxy (no git protocol) also has functional fetches for OE-Core and
layers built by the core of the project.
(From OE-Core rev: 9a25b2eb9cc13dd77a774dad83067ea5f9bf9716)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-rw-r--r-- | meta/lib/oeqa/selftest/cases/buildoptions.py | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/meta/lib/oeqa/selftest/cases/buildoptions.py b/meta/lib/oeqa/selftest/cases/buildoptions.py index e60e32dadf..4ebfdb7123 100644 --- a/meta/lib/oeqa/selftest/cases/buildoptions.py +++ b/meta/lib/oeqa/selftest/cases/buildoptions.py | |||
@@ -178,3 +178,26 @@ class ToolchainOptions(OESelftestTestCase): | |||
178 | 178 | ||
179 | bitbake('gcc-runtime libgfortran') | 179 | bitbake('gcc-runtime libgfortran') |
180 | 180 | ||
181 | class SourceMirroring(OESelftestTestCase): | ||
182 | # Can we download everything from the Yocto Sources Mirror over http only | ||
183 | def test_yocto_source_mirror(self): | ||
184 | self.write_config(""" | ||
185 | BB_ALLOWED_NETWORKS = "downloads.yoctoproject.org" | ||
186 | MIRRORS = "" | ||
187 | DL_DIR = "${TMPDIR}/test_downloads" | ||
188 | PREMIRRORS = "\\ | ||
189 | bzr://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \\n \\ | ||
190 | cvs://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \\n \\ | ||
191 | git://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \\n \\ | ||
192 | gitsm://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \\n \\ | ||
193 | hg://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \\n \\ | ||
194 | osc://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \\n \\ | ||
195 | p4://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \\n \\ | ||
196 | svn://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \\n \\ | ||
197 | ftp://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \\n \\ | ||
198 | http://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \\n \\ | ||
199 | https://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \\n" | ||
200 | """) | ||
201 | |||
202 | bitbake("world --runall fetch") | ||
203 | |||