diff options
Diffstat (limited to 'meta/lib/oeqa/selftest/cases/buildoptions.py')
-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 | |||