All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-oe][PATCH] meta-oe: add selftest for sources.oe.org
@ 2018-11-13 22:40 Armin Kuster
  2018-11-13 22:55 ` Martin Jansa
  0 siblings, 1 reply; 10+ messages in thread
From: Armin Kuster @ 2018-11-13 22:40 UTC (permalink / raw)
  To: openembedded-devel

Signed-off-by: Armin Kuster <akuster808@gmail.com>
---
 meta-oe/lib/oeqa/selftest/cases/meta_oe_sources.py | 30 ++++++++++++++++++++++
 1 file changed, 30 insertions(+)
 create mode 100644 meta-oe/lib/oeqa/selftest/cases/meta_oe_sources.py

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 0000000..79bebf5
--- /dev/null
+++ b/meta-oe/lib/oeqa/selftest/cases/meta_oe_sources.py
@@ -0,0 +1,30 @@
+import os
+import re
+import glob as g
+import shutil
+import tempfile
+from oeqa.selftest.case import OESelftestTestCase
+from oeqa.utils.commands import runCmd, bitbake, get_bb_var, get_bb_vars
+
+class MetaOESourceMirroring(OESelftestTestCase):
+    # Can we download everything from the OpenEmbedded Sources Mirror over http only
+    def test_oe_source_mirror(self):
+        self.write_config("""
+BB_ALLOWED_NETWORKS = " sources.openembedded.org"
+MIRRORS = ""
+DL_DIR = "${TMPDIR}/test_oe_downloads"
+PREMIRRORS = "\\
+    bzr://.*/.*   http://sources.openembedded.org/mirror/sources/ \\n \\
+    cvs://.*/.*   http://sources.openembedded.org/mirror/sources/ \\n \\
+    git://.*/.*   http://sources.openembedded.org/mirror/sources/ \\n \\
+    gitsm://.*/.* http://sources.openembedded.org/mirror/sources/ \\n \\
+    hg://.*/.*    http://sources.openembedded.org/mirror/sources/ \\n \\
+    osc://.*/.*   http://sources.openembedded.org/mirror/sources/ \\n \\
+    p4://.*/.*    http://sources.openembedded.org/mirror/sources/ \\n \\
+    svn://.*/.*   http://sources.openembedded.org/mirror/sources/ \\n \\
+    ftp://.*/.*      http://sources.openembedded.org/mirror/sources/ \\n \\
+    http://.*/.*     http://sources.openembedded.org/mirror/sources/ \\n \\
+    https://.*/.*    http://sources.openembedded.org/mirror/sources/ \\n"
+    """)
+
+        bitbake("world --runall fetch")
-- 
2.7.4



^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2018-11-21 14:38 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-11-13 22:40 [meta-oe][PATCH] meta-oe: add selftest for sources.oe.org Armin Kuster
2018-11-13 22:55 ` Martin Jansa
2018-11-13 23:27   ` akuster808
2018-11-14 15:17     ` Martin Jansa
2018-11-14 16:18       ` akuster808
2018-11-19 20:01         ` Michael Halstead
2018-11-19 20:18           ` Khem Raj
2018-11-20  8:07             ` Martin Jansa
2018-11-21 14:18               ` Martin Jansa
2018-11-21 14:38                 ` akuster808

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.