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:
29
sources/poky/meta/lib/oeqa/selftest/cases/pseudo.py
Normal file
29
sources/poky/meta/lib/oeqa/selftest/cases/pseudo.py
Normal file
@@ -0,0 +1,29 @@
|
||||
#
|
||||
# Copyright OpenEmbedded Contributors
|
||||
#
|
||||
# SPDX-License-Identifier: MIT
|
||||
#
|
||||
|
||||
import glob
|
||||
import os
|
||||
import shutil
|
||||
from oeqa.utils.commands import bitbake, get_test_layer
|
||||
from oeqa.selftest.case import OESelftestTestCase
|
||||
|
||||
class Pseudo(OESelftestTestCase):
|
||||
|
||||
def test_pseudo_pyc_creation(self):
|
||||
self.write_config("")
|
||||
|
||||
metaselftestpath = get_test_layer()
|
||||
pycache_path = os.path.join(metaselftestpath, 'lib/__pycache__')
|
||||
if os.path.exists(pycache_path):
|
||||
shutil.rmtree(pycache_path)
|
||||
|
||||
bitbake('pseudo-pyc-test -c install')
|
||||
|
||||
test1_pyc_present = len(glob.glob(os.path.join(pycache_path, 'pseudo_pyc_test1.*.pyc')))
|
||||
self.assertTrue(test1_pyc_present, 'test1 pyc file missing, should be created outside of pseudo context.')
|
||||
|
||||
test2_pyc_present = len(glob.glob(os.path.join(pycache_path, 'pseudo_pyc_test2.*.pyc')))
|
||||
self.assertFalse(test2_pyc_present, 'test2 pyc file present, should not be created in pseudo context.')
|
||||
Reference in New Issue
Block a user