Complete Yocto mirror with license table for TQMa6UL (2038-compliance)
- 264 license table entries with exact download URLs (224/264 resolved) - Complete sources/ directory with all BitBake recipes - Build configuration: tqma6ul-multi-mba6ulx, spaetzle (musl) - Full traceability for Softwarefreigabeantrag - GCC 13.4.0, Linux 6.6.102, U-Boot 2023.04, musl 1.2.4 - License distribution: GPL-2.0 (24), MIT (23), GPL-2.0+ (18), BSD-3 (16)
This commit is contained in:
@@ -0,0 +1,51 @@
|
||||
from oeqa.core.decorator.depends import OETestDepends
|
||||
from oeqa.runtime.cases.dnf import DnfTest
|
||||
from oeqa.utils.httpserver import HTTPService
|
||||
from oeqa.core.decorator.data import skipIfDataVar
|
||||
|
||||
class DnfSelftest(DnfTest):
|
||||
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
import tempfile
|
||||
cls.temp_dir = tempfile.TemporaryDirectory(prefix="oeqa-remotefeeds-")
|
||||
cls.repo_server = HTTPService(os.path.join(cls.tc.td['WORKDIR'], 'oe-rootfs-repo'),
|
||||
'0.0.0.0', port=cls.tc.target.server_port,
|
||||
logger=cls.tc.logger)
|
||||
cls.repo_server.start()
|
||||
|
||||
@classmethod
|
||||
def tearDownClass(cls):
|
||||
cls.repo_server.stop()
|
||||
cls.temp_dir.cleanup()
|
||||
|
||||
@OETestDepends(['dnf.DnfBasicTest.test_dnf_help'])
|
||||
@skipIfDataVar('PACKAGE_FEED_URIS', None,
|
||||
'Not suitable as PACKAGE_FEED_URIS is not set')
|
||||
def test_verify_package_feeds(self):
|
||||
"""
|
||||
Summary: Check correct setting of PACKAGE_FEED_URIS var
|
||||
Expected: 1. Feeds were correctly set for dnf
|
||||
2. Update recovers packages from host's repo
|
||||
Author: Humberto Ibarra <humberto.ibarra.lopez@intel.com>
|
||||
Author: Alexander Kanavin <alex.kanavin@gmail.com>
|
||||
"""
|
||||
# When we created an image, we had to supply fake ip and port
|
||||
# for the feeds. Now we can patch the real ones into the config file.
|
||||
temp_file = os.path.join(self.temp_dir.name, 'tmp.repo')
|
||||
self.tc.target.copyFrom("/etc/yum.repos.d/oe-remote-repo.repo", temp_file)
|
||||
fixed_config = open(temp_file, "r").read().replace("bogus_ip", self.tc.target.server_ip).replace("bogus_port", str(self.repo_server.port))
|
||||
with open(temp_file, "w") as f:
|
||||
f.write(fixed_config)
|
||||
self.tc.target.copyTo(temp_file, "/etc/yum.repos.d/oe-remote-repo.repo")
|
||||
|
||||
import re
|
||||
# Use '-y' for non-interactive mode: automatically import the feed signing key
|
||||
output_makecache = self.dnf('-vy makecache')
|
||||
self.assertTrue(re.match(r".*Failed to synchronize cache", output_makecache, re.DOTALL) is None, msg = "dnf makecache failed to synchronize repo: %s" %(output_makecache))
|
||||
self.assertTrue(re.match(r".*Metadata cache created", output_makecache, re.DOTALL) is not None, msg = "dnf makecache failed: %s" %(output_makecache))
|
||||
|
||||
output_repoinfo = self.dnf('-v repoinfo')
|
||||
matchobj = re.match(r".*Repo-pkgs\s*:\s*(?P<n_pkgs>[0-9]+)", output_repoinfo, re.DOTALL)
|
||||
self.assertTrue(matchobj is not None, msg = "Could not find the amount of packages in dnf repoinfo output: %s" %(output_repoinfo))
|
||||
self.assertTrue(int(matchobj.group('n_pkgs')) > 0, msg = "Amount of remote packages is not more than zero: %s\n" %(output_repoinfo))
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"test_install_package": {
|
||||
"pkg": "socat",
|
||||
"rm": true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
from oeqa.runtime.case import OERuntimeTestCase
|
||||
from oeqa.core.decorator.depends import OETestDepends
|
||||
|
||||
class Selftest(OERuntimeTestCase):
|
||||
|
||||
@OETestDepends(['ssh.SSHTest.test_ssh'])
|
||||
def test_install_package(self):
|
||||
"""
|
||||
Summary: Check basic package installation functionality.
|
||||
Expected: 1. Before the test socat must be installed using scp.
|
||||
2. After the test socat must be uninstalled using ssh.
|
||||
This can't be checked in this test.
|
||||
Product: oe-core
|
||||
Author: Mariano Lopez <mariano.lopez@intel.com>
|
||||
"""
|
||||
|
||||
(status, output) = self.target.run("socat -V")
|
||||
self.assertEqual(status, 0, msg="socat is not installed")
|
||||
|
||||
@OETestDepends(['selftest.Selftest.test_install_package'])
|
||||
def test_verify_uninstall(self):
|
||||
"""
|
||||
Summary: Check basic package installation functionality.
|
||||
Expected: 1. test_install_package must uninstall socat.
|
||||
This test is just to verify that.
|
||||
Product: oe-core
|
||||
Author: Mariano Lopez <mariano.lopez@intel.com>
|
||||
"""
|
||||
|
||||
(status, output) = self.target.run("socat -V")
|
||||
self.assertNotEqual(status, 0, msg="socat is still installed")
|
||||
18
sources/poky/meta-selftest/lib/oeqa/runtime/cases/virgl.py
Normal file
18
sources/poky/meta-selftest/lib/oeqa/runtime/cases/virgl.py
Normal file
@@ -0,0 +1,18 @@
|
||||
from oeqa.runtime.case import OERuntimeTestCase
|
||||
from oeqa.core.decorator.depends import OETestDepends
|
||||
import subprocess
|
||||
import oe.lsb
|
||||
|
||||
class VirglTest(OERuntimeTestCase):
|
||||
|
||||
@OETestDepends(['ssh.SSHTest.test_ssh'])
|
||||
def test_kernel_driver(self):
|
||||
status, output = self.target.run('dmesg|grep virgl')
|
||||
self.assertEqual(status, 0, "Checking for virgl driver in dmesg returned non-zero: %d\n%s" % (status, output))
|
||||
self.assertIn("features: +virgl", output, "virgl acceleration seems to be disabled:\n%s" %(output))
|
||||
|
||||
@OETestDepends(['virgl.VirglTest.test_kernel_driver'])
|
||||
def test_kmscube(self):
|
||||
status, output = self.target.run('kmscube')
|
||||
self.assertEqual(status, 0, "kmscube exited with non-zero status %d and output:\n%s" %(status, output))
|
||||
self.assertIn('renderer: "virgl', output, "kmscube does not seem to use virgl:\n%s" %(output))
|
||||
@@ -0,0 +1,16 @@
|
||||
#from oeqa.selftest.base import oeSelfTest
|
||||
from oeqa.selftest.case import OESelftestTestCase
|
||||
#from oeqa.utils.decorators import testcase
|
||||
|
||||
|
||||
class ImportedTests(OESelftestTestCase):
|
||||
|
||||
def test_unconditional_pass(self):
|
||||
"""
|
||||
Summary: Doesn't check anything, used to check import test from other layers.
|
||||
Expected: 1. Pass unconditionally
|
||||
Product: oe-core
|
||||
Author: Mariano Lopez <mariano.lopez@intel.com
|
||||
"""
|
||||
|
||||
self.assertEqual(True, True, msg = "Impossible to fail this test")
|
||||
Reference in New Issue
Block a user