summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/selftest/cases
diff options
context:
space:
mode:
Diffstat (limited to 'meta/lib/oeqa/selftest/cases')
-rw-r--r--meta/lib/oeqa/selftest/cases/binutils.py6
-rw-r--r--meta/lib/oeqa/selftest/cases/gcc.py6
-rw-r--r--meta/lib/oeqa/selftest/cases/glibc.py5
3 files changed, 0 insertions, 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):
52 if not os.path.exists(sumspath): 52 if not os.path.exists(sumspath):
53 sumspath = os.path.join(builddir, suite, "testsuite", "{0}.sum".format(suite)) 53 sumspath = os.path.join(builddir, suite, "testsuite", "{0}.sum".format(suite))
54 54
55 failed = 0
56 with open(sumspath, "r") as f: 55 with open(sumspath, "r") as f:
57 for test, result in parse_values(f): 56 for test, result in parse_values(f):
58 self.tc.extraresults["ptestresult.{}.{}".format(ptestsuite, test)] = {"status" : result} 57 self.tc.extraresults["ptestresult.{}.{}".format(ptestsuite, test)] = {"status" : result}
59 if result == "FAIL":
60 self.logger.info("failed: '{}'".format(test))
61 failed += 1
62
63 self.assertEqual(failed, 0)
64 58
diff --git a/meta/lib/oeqa/selftest/cases/gcc.py b/meta/lib/oeqa/selftest/cases/gcc.py
index 0b0157e568..dba453f00a 100644
--- a/meta/lib/oeqa/selftest/cases/gcc.py
+++ b/meta/lib/oeqa/selftest/cases/gcc.py
@@ -71,7 +71,6 @@ class GccSelfTest(OESelftestTestCase):
71 bb_vars = get_bb_vars(["B", "TARGET_SYS"], recipe) 71 bb_vars = get_bb_vars(["B", "TARGET_SYS"], recipe)
72 builddir, target_sys = bb_vars["B"], bb_vars["TARGET_SYS"] 72 builddir, target_sys = bb_vars["B"], bb_vars["TARGET_SYS"]
73 73
74 failed = 0
75 for suite in suites: 74 for suite in suites:
76 sumspath = os.path.join(builddir, "gcc", "testsuite", suite, "{0}.sum".format(suite)) 75 sumspath = os.path.join(builddir, "gcc", "testsuite", suite, "{0}.sum".format(suite))
77 if not os.path.exists(sumspath): # check in target dirs 76 if not os.path.exists(sumspath): # check in target dirs
@@ -84,11 +83,6 @@ class GccSelfTest(OESelftestTestCase):
84 with open(sumspath, "r") as f: 83 with open(sumspath, "r") as f:
85 for test, result in parse_values(f): 84 for test, result in parse_values(f):
86 self.tc.extraresults["ptestresult.{}.{}".format(ptestsuite, test)] = {"status" : result} 85 self.tc.extraresults["ptestresult.{}.{}".format(ptestsuite, test)] = {"status" : result}
87 if result == "FAIL":
88 self.logger.info("failed: '{}'".format(test))
89 failed += 1
90
91 self.assertEqual(failed, 0)
92 86
93class GccSelfTestSystemEmulated(GccSelfTest): 87class GccSelfTestSystemEmulated(GccSelfTest):
94 default_installed_packages = ["libgcc", "libstdc++", "libatomic", "libgomp"] 88 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):
43 43
44 builddir = get_bb_var("B", "glibc-testsuite") 44 builddir = get_bb_var("B", "glibc-testsuite")
45 45
46 failed = 0
47 self.tc.extraresults["ptestresult.sections"]["glibc"] = {} 46 self.tc.extraresults["ptestresult.sections"]["glibc"] = {}
48 with open(os.path.join(builddir, "tests.sum"), "r") as f: 47 with open(os.path.join(builddir, "tests.sum"), "r") as f:
49 for test, result in parse_values(f): 48 for test, result in parse_values(f):
50 self.tc.extraresults["ptestresult.glibc.{}".format(test)] = {"status" : result} 49 self.tc.extraresults["ptestresult.glibc.{}".format(test)] = {"status" : result}
51 if result == "FAIL":
52 self.logger.info("failed: '{}'".format(test))
53 failed += 1
54 self.assertEqual(failed, 0)
55 50
56class GlibcSelfTestSystemEmulated(GlibcSelfTest): 51class GlibcSelfTestSystemEmulated(GlibcSelfTest):
57 default_installed_packages = [ 52 default_installed_packages = [