[oe] [meta-oe][PATCH] meta-oe: add selftest for sources.oe.org
Martin Jansa
martin.jansa at gmail.com
Tue Nov 13 22:55:23 UTC 2018
Is this the right URL? http://sources.openembedded.org/mirror/sources/
returns 404
meta/classes/mirrors.bbclass also uses:
cvs://.*/.* http://sources.openembedded.org/ \n \
svn://.*/.* http://sources.openembedded.org/ \n \
git://.*/.* http://sources.openembedded.org/ \n \
hg://.*/.* http://sources.openembedded.org/ \n \
bzr://.*/.* http://sources.openembedded.org/ \n \
p4://.*/.* http://sources.openembedded.org/ \n \
osc://.*/.* http://sources.openembedded.org/ \n \
https?$://.*/.* http://sources.openembedded.org/ \n \
ftp://.*/.* http://sources.openembedded.org/ \n \
npm://.*/?.* http://sources.openembedded.org/ \n \
without the /mirror/sources suffix, maybe it's copy & paste issue from
downloads.yoctoproject.org which uses /mirror/sources?
git://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \
But if the test works for you, then something even worse is going on :).
On Tue, Nov 13, 2018 at 11:40 PM Armin Kuster <akuster808 at gmail.com> wrote:
> Signed-off-by: Armin Kuster <akuster808 at 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
>
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
>
More information about the Openembedded-devel
mailing list