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