blob: b17c7950c7eeaedb24cc414825952c18c7fc6d17 [file] [log] [blame]
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08001import os
2import re
3import glob as g
4import shutil
5import tempfile
6from oeqa.selftest.case import OESelftestTestCase
7from oeqa.utils.commands import runCmd, bitbake, get_bb_var, get_bb_vars
8
9class MetaOESourceMirroring(OESelftestTestCase):
10 # Can we download everything from the OpenEmbedded Sources Mirror over http only
11 def test_oe_source_mirror(self):
12 self.write_config("""
13BB_ALLOWED_NETWORKS = " sources.openembedded.org"
14MIRRORS = ""
15DL_DIR = "${TMPDIR}/test_oe_downloads"
16PREMIRRORS = "\\
17 bzr://.*/.* http://sources.openembedded.org/ \\n \\
18 cvs://.*/.* http://sources.openembedded.org/ \\n \\
19 git://.*/.* http://sources.openembedded.org/ \\n \\
20 gitsm://.*/.* http://sources.openembedded.org/ \\n \\
21 hg://.*/.* http://sources.openembedded.org/ \\n \\
22 osc://.*/.* http://sources.openembedded.org/ \\n \\
23 p4://.*/.* http://sources.openembedded.org/ \\n \\
24 svn://.*/.* http://sources.openembedded.org/ \\n \\
25 ftp://.*/.* http://sources.openembedded.org/ \\n \\
26 http://.*/.* http://sources.openembedded.org/ \\n \\
27 https://.*/.* http://sources.openembedded.org/ \\n"
28 """)
29
30 bitbake("world --runall fetch")