- 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)
35 lines
1.3 KiB
Python
35 lines
1.3 KiB
Python
#
|
|
# Copyright OpenEmbedded Contributors
|
|
#
|
|
# SPDX-License-Identifier: MIT
|
|
#
|
|
|
|
import os
|
|
|
|
from oeqa.runtime.case import OERuntimeTestCase
|
|
from oeqa.core.decorator.data import skipIfNotFeature
|
|
from oeqa.runtime.decorator.package import OEHasPackage
|
|
|
|
class StapTest(OERuntimeTestCase):
|
|
@skipIfNotFeature('tools-profile', 'Test requires tools-profile to be in IMAGE_FEATURES')
|
|
@OEHasPackage(['systemtap'])
|
|
@OEHasPackage(['gcc-symlinks'])
|
|
@OEHasPackage(['kernel-devsrc'])
|
|
def test_stap(self):
|
|
try:
|
|
cmd = 'make -j -C /usr/src/kernel scripts prepare'
|
|
status, output = self.target.run(cmd, 900)
|
|
self.assertEqual(status, 0, msg='\n'.join([cmd, output]))
|
|
|
|
cmd = 'stap -v -p4 -m stap-hello --disable-cache -DSTP_NO_VERREL_CHECK -e \'probe oneshot { print("Hello, "); println("SystemTap!") }\''
|
|
status, output = self.target.run(cmd, 900)
|
|
self.assertEqual(status, 0, msg='\n'.join([cmd, output]))
|
|
|
|
cmd = 'staprun -v -R -b1 stap-hello.ko'
|
|
self.assertEqual(status, 0, msg='\n'.join([cmd, output]))
|
|
self.assertIn('Hello, SystemTap!', output, msg='\n'.join([cmd, output]))
|
|
except:
|
|
status, dmesg = self.target.run('dmesg')
|
|
if status == 0:
|
|
print(dmesg)
|