diff options
| author | Armin Kuster <akuster808@gmail.com> | 2018-11-13 15:31:08 -0800 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2018-11-14 21:06:57 -0800 |
| commit | a6b54785e4ae14c80f7ea1b889fc35dd3da28147 (patch) | |
| tree | 4fa239180104e2d1e36d58e93bc9afbb4df498fa | |
| parent | 952d746611d0569f33d8831653d60a6970374092 (diff) | |
| download | meta-openembedded-a6b54785e4ae14c80f7ea1b889fc35dd3da28147.tar.gz | |
meta-oe: add selftest for sources.oe.org
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
| -rw-r--r-- | meta-oe/lib/oeqa/selftest/cases/meta_oe_sources.py | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/meta-oe/lib/oeqa/selftest/cases/meta_oe_sources.py b/meta-oe/lib/oeqa/selftest/cases/meta_oe_sources.py new file mode 100644 index 0000000000..b17c7950c7 --- /dev/null +++ b/meta-oe/lib/oeqa/selftest/cases/meta_oe_sources.py | |||
| @@ -0,0 +1,30 @@ | |||
| 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 | |||
| 9 | class 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(""" | ||
| 13 | BB_ALLOWED_NETWORKS = " sources.openembedded.org" | ||
| 14 | MIRRORS = "" | ||
| 15 | DL_DIR = "${TMPDIR}/test_oe_downloads" | ||
| 16 | PREMIRRORS = "\\ | ||
| 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") | ||
