* [PATCH 1/4] oeqa/selftest/cases/glibc.py: Don't install python3 and pexpect
@ 2019-09-04 14:23 Nathan Rossi
2019-09-04 14:23 ` [PATCH 2/4] oeqa/selftest: For toolchain tests do not fail if a test failed Nathan Rossi
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: Nathan Rossi @ 2019-09-04 14:23 UTC (permalink / raw)
To: openembedded-core
When running the system emulation test case, do not include python3 or
pexpect in the image. The test cases that use these also need gdb (with
python configured).
Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
---
meta/lib/oeqa/selftest/cases/glibc.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/meta/lib/oeqa/selftest/cases/glibc.py b/meta/lib/oeqa/selftest/cases/glibc.py
index f836367094..6a34da39d9 100644
--- a/meta/lib/oeqa/selftest/cases/glibc.py
+++ b/meta/lib/oeqa/selftest/cases/glibc.py
@@ -60,8 +60,8 @@ class GlibcSelfTestSystemEmulated(GlibcSelfTest):
"libstdc++",
"libatomic",
"libgomp",
- "python3",
- "python3-pexpect",
+ # "python3",
+ # "python3-pexpect",
"nfs-utils",
]
---
2.23.0.rc1
^ permalink raw reply related [flat|nested] 5+ messages in thread* [PATCH 2/4] oeqa/selftest: For toolchain tests do not fail if a test failed 2019-09-04 14:23 [PATCH 1/4] oeqa/selftest/cases/glibc.py: Don't install python3 and pexpect Nathan Rossi @ 2019-09-04 14:23 ` Nathan Rossi 2019-09-04 14:23 ` [PATCH 3/4] maintainers.inc: Add entries for toolchain related recipes Nathan Rossi ` (2 subsequent siblings) 3 siblings, 0 replies; 5+ messages in thread From: Nathan Rossi @ 2019-09-04 14:23 UTC (permalink / raw) To: openembedded-core Do not fail the running selftest test case if the test suite has a failed test case. Currently toolchain tests suites (binutils, gcc, glibc) fail but this does not indicate failure to execute the tests. Also remove the logging of each test that failed. Signed-off-by: Nathan Rossi <nathan@nathanrossi.com> --- meta/lib/oeqa/selftest/cases/binutils.py | 6 ------ meta/lib/oeqa/selftest/cases/gcc.py | 6 ------ meta/lib/oeqa/selftest/cases/glibc.py | 5 ----- 3 files changed, 17 deletions(-) diff --git a/meta/lib/oeqa/selftest/cases/binutils.py b/meta/lib/oeqa/selftest/cases/binutils.py index 4edee09390..7f887959e4 100644 --- a/meta/lib/oeqa/selftest/cases/binutils.py +++ b/meta/lib/oeqa/selftest/cases/binutils.py @@ -52,13 +52,7 @@ class BinutilsCrossSelfTest(OESelftestTestCase): if not os.path.exists(sumspath): sumspath = os.path.join(builddir, suite, "testsuite", "{0}.sum".format(suite)) - failed = 0 with open(sumspath, "r") as f: for test, result in parse_values(f): self.tc.extraresults["ptestresult.{}.{}".format(ptestsuite, test)] = {"status" : result} - if result == "FAIL": - self.logger.info("failed: '{}'".format(test)) - failed += 1 - - self.assertEqual(failed, 0) diff --git a/meta/lib/oeqa/selftest/cases/gcc.py b/meta/lib/oeqa/selftest/cases/gcc.py index 0ad6e21d6b..4f7ffdcb2a 100644 --- a/meta/lib/oeqa/selftest/cases/gcc.py +++ b/meta/lib/oeqa/selftest/cases/gcc.py @@ -71,7 +71,6 @@ class GccSelfTest(OESelftestTestCase): bb_vars = get_bb_vars(["B", "TARGET_SYS"], recipe) builddir, target_sys = bb_vars["B"], bb_vars["TARGET_SYS"] - failed = 0 for suite in suites: sumspath = os.path.join(builddir, "gcc", "testsuite", suite, "{0}.sum".format(suite)) if not os.path.exists(sumspath): # check in target dirs @@ -84,11 +83,6 @@ class GccSelfTest(OESelftestTestCase): with open(sumspath, "r") as f: for test, result in parse_values(f): self.tc.extraresults["ptestresult.{}.{}".format(ptestsuite, test)] = {"status" : result} - if result == "FAIL": - self.logger.info("failed: '{}'".format(test)) - failed += 1 - - self.assertEqual(failed, 0) class GccSelfTestSystemEmulated(GccSelfTest): default_installed_packages = ["libgcc", "libstdc++", "libatomic", "libgomp"] diff --git a/meta/lib/oeqa/selftest/cases/glibc.py b/meta/lib/oeqa/selftest/cases/glibc.py index 6a34da39d9..7992ea6bf2 100644 --- a/meta/lib/oeqa/selftest/cases/glibc.py +++ b/meta/lib/oeqa/selftest/cases/glibc.py @@ -43,15 +43,10 @@ class GlibcSelfTest(OESelftestTestCase): builddir = get_bb_var("B", "glibc-testsuite") - failed = 0 self.tc.extraresults["ptestresult.sections"]["glibc"] = {} with open(os.path.join(builddir, "tests.sum"), "r") as f: for test, result in parse_values(f): self.tc.extraresults["ptestresult.glibc.{}".format(test)] = {"status" : result} - if result == "FAIL": - self.logger.info("failed: '{}'".format(test)) - failed += 1 - self.assertEqual(failed, 0) class GlibcSelfTestSystemEmulated(GlibcSelfTest): default_installed_packages = [ --- 2.23.0.rc1 ^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 3/4] maintainers.inc: Add entries for toolchain related recipes 2019-09-04 14:23 [PATCH 1/4] oeqa/selftest/cases/glibc.py: Don't install python3 and pexpect Nathan Rossi 2019-09-04 14:23 ` [PATCH 2/4] oeqa/selftest: For toolchain tests do not fail if a test failed Nathan Rossi @ 2019-09-04 14:23 ` Nathan Rossi 2019-09-04 14:23 ` [PATCH 4/4] oeqa/selftest: Toolchain tests suffix "-user" for qemu usermode results Nathan Rossi 2019-09-04 14:32 ` ✗ patchtest: failure for "oeqa/selftest/cases/glibc.py: ..." and 3 more Patchwork 3 siblings, 0 replies; 5+ messages in thread From: Nathan Rossi @ 2019-09-04 14:23 UTC (permalink / raw) To: openembedded-core Add entries for the added toolchain related recipes including binutils-cross-testsuite and glibc-testsuite setting the maintainer as Khem to match existing definitions. Also and entry for dejagnu setting Nathan Rossi as the maintainer. Signed-off-by: Nathan Rossi <nathan@nathanrossi.com> --- meta/conf/distro/include/maintainers.inc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/meta/conf/distro/include/maintainers.inc b/meta/conf/distro/include/maintainers.inc index 0757230b1a..aaae55ac86 100644 --- a/meta/conf/distro/include/maintainers.inc +++ b/meta/conf/distro/include/maintainers.inc @@ -66,6 +66,7 @@ RECIPE_MAINTAINER_pn-bind = "Armin Kuster <akuster808@gmail.com>" RECIPE_MAINTAINER_pn-binutils = "Khem Raj <raj.khem@gmail.com>" RECIPE_MAINTAINER_pn-binutils-cross-${TARGET_ARCH} = "Khem Raj <raj.khem@gmail.com>" RECIPE_MAINTAINER_pn-binutils-cross-canadian-${TRANSLATED_TARGET_ARCH} = "Khem Raj <raj.khem@gmail.com>" +RECIPE_MAINTAINER_pn-binutils-cross-testsuite = "Khem Raj <raj.khem@gmail.com>" RECIPE_MAINTAINER_pn-binutils-crosssdk-${SDK_SYS} = "Khem Raj <raj.khem@gmail.com>" RECIPE_MAINTAINER_pn-bison = "Chen Qi <Qi.Chen@windriver.com>" RECIPE_MAINTAINER_pn-bjam-native = "Alexander Kanavin <alex.kanavin@gmail.com>" @@ -142,6 +143,7 @@ RECIPE_MAINTAINER_pn-dbus-glib = "Chen Qi <Qi.Chen@windriver.com>" RECIPE_MAINTAINER_pn-dbus-test = "Chen Qi <Qi.Chen@windriver.com>" RECIPE_MAINTAINER_pn-dbus-wait = "Chen Qi <Qi.Chen@windriver.com>" RECIPE_MAINTAINER_pn-debianutils = "Yi Zhao <yi.zhao@windriver.com>" +RECIPE_MAINTAINER_pn-dejagnu = "Nathan Rossi <nathan@nathanrossi.com>" RECIPE_MAINTAINER_pn-depmodwrapper-cross = "Mark Hatle <mark.hatle@windriver.com>" RECIPE_MAINTAINER_pn-desktop-file-utils = "Alexander Kanavin <alex.kanavin@gmail.com>" RECIPE_MAINTAINER_pn-dhcp = "Hongxu Jia <hongxu.jia@windriver.com>" @@ -219,6 +221,7 @@ RECIPE_MAINTAINER_pn-glibc-initial = "Khem Raj <raj.khem@gmail.com>" RECIPE_MAINTAINER_pn-glibc-locale = "Khem Raj <raj.khem@gmail.com>" RECIPE_MAINTAINER_pn-glibc-mtrace = "Khem Raj <raj.khem@gmail.com>" RECIPE_MAINTAINER_pn-glibc-scripts = "Khem Raj <raj.khem@gmail.com>" +RECIPE_MAINTAINER_pn-glibc-testsuite = "Khem Raj <raj.khem@gmail.com>" RECIPE_MAINTAINER_pn-glide = "Otavio Salvador <otavio.salvador@ossystems.com.br>" RECIPE_MAINTAINER_pn-gmp = "Khem Raj <raj.khem@gmail.com>" RECIPE_MAINTAINER_pn-gnome-desktop-testing = "Ross Burton <ross.burton@intel.com>" --- 2.23.0.rc1 ^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 4/4] oeqa/selftest: Toolchain tests suffix "-user" for qemu usermode results 2019-09-04 14:23 [PATCH 1/4] oeqa/selftest/cases/glibc.py: Don't install python3 and pexpect Nathan Rossi 2019-09-04 14:23 ` [PATCH 2/4] oeqa/selftest: For toolchain tests do not fail if a test failed Nathan Rossi 2019-09-04 14:23 ` [PATCH 3/4] maintainers.inc: Add entries for toolchain related recipes Nathan Rossi @ 2019-09-04 14:23 ` Nathan Rossi 2019-09-04 14:32 ` ✗ patchtest: failure for "oeqa/selftest/cases/glibc.py: ..." and 3 more Patchwork 3 siblings, 0 replies; 5+ messages in thread From: Nathan Rossi @ 2019-09-04 14:23 UTC (permalink / raw) To: openembedded-core Suffix the ptestresults suite with "-user" for tests that are executing against usermode qemu. Signed-off-by: Nathan Rossi <nathan@nathanrossi.com> --- meta/lib/oeqa/selftest/cases/gcc.py | 1 + meta/lib/oeqa/selftest/cases/glibc.py | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/meta/lib/oeqa/selftest/cases/gcc.py b/meta/lib/oeqa/selftest/cases/gcc.py index 4f7ffdcb2a..ef85df5e36 100644 --- a/meta/lib/oeqa/selftest/cases/gcc.py +++ b/meta/lib/oeqa/selftest/cases/gcc.py @@ -79,6 +79,7 @@ class GccSelfTest(OESelftestTestCase): sumspath = os.path.join(builddir, target_sys, suite, "testsuite", "{0}.sum".format(suite.split("-")[0])) ptestsuite = "gcc-{}".format(suite) if suite != "gcc" else suite + ptestsuite = ptestsuite + "-user" if ssh is None else ptestsuite self.tc.extraresults["ptestresult.sections"][ptestsuite] = {} with open(sumspath, "r") as f: for test, result in parse_values(f): diff --git a/meta/lib/oeqa/selftest/cases/glibc.py b/meta/lib/oeqa/selftest/cases/glibc.py index 7992ea6bf2..4d0c13131b 100644 --- a/meta/lib/oeqa/selftest/cases/glibc.py +++ b/meta/lib/oeqa/selftest/cases/glibc.py @@ -43,10 +43,11 @@ class GlibcSelfTest(OESelftestTestCase): builddir = get_bb_var("B", "glibc-testsuite") - self.tc.extraresults["ptestresult.sections"]["glibc"] = {} + ptestsuite = "glibc-user" if ssh is None else "glibc" + self.tc.extraresults["ptestresult.sections"][ptestsuite] = {} with open(os.path.join(builddir, "tests.sum"), "r") as f: for test, result in parse_values(f): - self.tc.extraresults["ptestresult.glibc.{}".format(test)] = {"status" : result} + self.tc.extraresults["ptestresult.{}.{}".format(ptestsuite, test)] = {"status" : result} class GlibcSelfTestSystemEmulated(GlibcSelfTest): default_installed_packages = [ --- 2.23.0.rc1 ^ permalink raw reply related [flat|nested] 5+ messages in thread
* ✗ patchtest: failure for "oeqa/selftest/cases/glibc.py: ..." and 3 more 2019-09-04 14:23 [PATCH 1/4] oeqa/selftest/cases/glibc.py: Don't install python3 and pexpect Nathan Rossi ` (2 preceding siblings ...) 2019-09-04 14:23 ` [PATCH 4/4] oeqa/selftest: Toolchain tests suffix "-user" for qemu usermode results Nathan Rossi @ 2019-09-04 14:32 ` Patchwork 3 siblings, 0 replies; 5+ messages in thread From: Patchwork @ 2019-09-04 14:32 UTC (permalink / raw) To: Nathan Rossi; +Cc: openembedded-core == Series Details == Series: "oeqa/selftest/cases/glibc.py: ..." and 3 more Revision: 1 URL : https://patchwork.openembedded.org/series/19688/ State : failure == Summary == Thank you for submitting this patch series to OpenEmbedded Core. This is an automated response. Several tests have been executed on the proposed series by patchtest resulting in the following failures: * Issue Series does not apply on top of target branch [test_series_merge_on_head] Suggested fix Rebase your series on top of targeted branch Targeted branch master (currently at aa36510ebe) If you believe any of these test results are incorrect, please reply to the mailing list (openembedded-core@lists.openembedded.org) raising your concerns. Otherwise we would appreciate you correcting the issues and submitting a new version of the patchset if applicable. Please ensure you add/increment the version number when sending the new version (i.e. [PATCH] -> [PATCH v2] -> [PATCH v3] -> ...). --- Guidelines: https://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines Test framework: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest Test suite: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest-oe ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2019-09-04 14:32 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2019-09-04 14:23 [PATCH 1/4] oeqa/selftest/cases/glibc.py: Don't install python3 and pexpect Nathan Rossi 2019-09-04 14:23 ` [PATCH 2/4] oeqa/selftest: For toolchain tests do not fail if a test failed Nathan Rossi 2019-09-04 14:23 ` [PATCH 3/4] maintainers.inc: Add entries for toolchain related recipes Nathan Rossi 2019-09-04 14:23 ` [PATCH 4/4] oeqa/selftest: Toolchain tests suffix "-user" for qemu usermode results Nathan Rossi 2019-09-04 14:32 ` ✗ patchtest: failure for "oeqa/selftest/cases/glibc.py: ..." and 3 more Patchwork
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox