Re: [OE-core] [PATCH 2/5] oe-selftest: extend virgl gtk test to also check the SDL option

2019-10-31 Thread Alexander Kanavin
On Thu, 31 Oct 2019 at 00:14, Ross Burton  wrote:

>
>
> https://autobuilder.yoctoproject.org/typhoon/#/builders/56/builds/771/steps/8/logs/step2d
>
> Centos 7 worker, if that matters.
>

Thanks, I think it does matter. Virgl tests are already partly disabled for
centos 7 (they are not running kmscube with the gtk frontend), and it seems
that with the sdl frontend it fails even before kmscube is executed. I
guess I should disable them altogether on that (ancient) distro.

Alex
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH 2/5] oe-selftest: extend virgl gtk test to also check the SDL option

2019-10-30 Thread Ross Burton

Sorry, but:

2019-10-30 05:06:57,094 - oe-selftest - INFO - FAIL: 
runtime_test.TestImage.test_testimage_virgl_gtk_sdl 
(subunit.RemotedTestCase)
2019-10-30 05:06:57,097 - oe-selftest - INFO - 
--
2019-10-30 05:06:57,097 - oe-selftest - INFO - 
testtools.testresult.real._StringException: Traceback (most recent call 
last):
  File 
"/home/pokybuild/yocto-worker/oe-selftest/build/meta/lib/oeqa/selftest/cases/runtime_test.py", 
line 206, in test_testimage_virgl_gtk_sdl

bitbake('-c testimage core-image-minimal')
  File 
"/home/pokybuild/yocto-worker/oe-selftest/build/meta/lib/oeqa/utils/commands.py", 
line 221, in bitbake
return runCmd(cmd, ignore_status, timeout, output_log=output_log, 
**options)
  File 
"/home/pokybuild/yocto-worker/oe-selftest/build/meta/lib/oeqa/utils/commands.py", 
line 199, in runCmd
raise AssertionError("Command '%s' returned non-zero exit status 
%d:\n%s" % (command, result.status, exc_output))
AssertionError: Command 'bitbake  -c testimage core-image-minimal' 
returned non-zero exit status 1:

Loading cache...done.
Loaded 1332 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies
Build Configuration:
BB_VERSION   = "1.44.0"
BUILD_SYS= "x86_64-linux"
NATIVELSBSTRING  = "universal-4.8"
TARGET_SYS   = "x86_64-poky-linux"
MACHINE  = "qemux86-64"
DISTRO   = "poky"
DISTRO_VERSION   = "3.0"
TUNE_FEATURES= "m64 core2"
TARGET_FPU   = ""
meta
meta-poky
meta-yocto-bsp   = "ross/mut:db5c0617da6bcfbe947b81dbf71fa123a6257fa0"
meta-selftest= "master:74201d531e64b3d5b0bfb17d7189d416c485a1fb"
Initialising tasks...done.
Sstate summary: Wanted 0 Found 0 Missed 0 Current 124 (0% match, 100% 
complete)

NOTE: Executing Tasks
NOTE: Setscene tasks completed
NOTE: Running task 1013 of 1013 
(/home/pokybuild/yocto-worker/oe-selftest/build/meta/recipes-core/images/core-image-minimal.bb:do_testimage)

NOTE: recipe core-image-minimal-1.0-r0: task do_testimage: Started
WARNING: core-image-minimal-1.0-r0 do_testimage: Last 25 lines of text:
[0.942844] io scheduler kyber registered
[0.944231] input: Power Button as 
/devices/LNXSYSTM:00/LNXPWRBN:00/input/input0

[0.949516] ACPI: Power Button [PWRF]
[0.969010] PCI Interrupt Link [LNKB] enabled at IRQ 10
[0.989213] PCI Interrupt Link [LNKC] enabled at IRQ 11
[1.027830] PCI Interrupt Link [LNKA] enabled at IRQ 10
[1.031426] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[1.057292] 00:05: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) 
is a 16550A
[1.088281] 00:06: ttyS1 at I/O 0x2f8 (irq = 3, base_baud = 115200) 
is a 16550A

[1.093703] Linux agpgart interface v0.103
[1.095192] [drm] pci: virtio-vga detected at :00:02.0
[1.096746] virtio-pci :00:02.0: 
remove_conflicting_pci_framebuffers: bar 0: 0xfe00 -> 0xfe7f

[1.099351] random: fast init done
[1.100408] virtio-pci :00:02.0: 
remove_conflicting_pci_framebuffers: bar 2: 0xfe80 -> 0xfe803fff

[1.103035] random: crng init done
[1.104086] virtio-pci :00:02.0: 
remove_conflicting_pci_framebuffers: bar 4: 0xfebd -> 0xfebd0fff

[1.106696] virtio-pci :00:02.0: vgaarb: deactivate vga console
[1.110129] Console: switching to colour dummy device 80x25
[1.111417] [drm] virgl 3d acceleration enabled
[1.112331] [drm] EDID support available.
[1.115106] [TTM] Zone  kernel: Available graphics memory: 116016 KiB
[1.116401] [TTM] Initializing pool allocator
[1.117279] [TTM] Initializing DMA pool allocator
[1.118253] [drm] number of scanouts: 1
[1.119032] [drm] number of cap sets: 2
WARNING: core-image-minimal-1.0-r0 do_testimage: Check full boot log: 
/home/pokybuild/yocto-worker/oe-selftest/build/build-st-5770/tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0-r0/testimage/qemu_boot_log.20191030031548
WARNING: core-image-minimal-1.0-r0 do_testimage: Qemu ended 
unexpectedly, dump data from host is in 
/home/pokybuild/yocto-worker/oe-selftest/build/build-st-5770/tmp/log/runtime-hostdump/201910300316_qemu
WARNING: core-image-minimal-1.0-r0 do_testimage: qemu-system ended 
unexpectedly
ERROR: core-image-minimal-1.0-r0 do_testimage: testimage received 
SIGTERM, shutting down...
ERROR: core-image-minimal-1.0-r0 do_testimage: core-image-minimal - 
FAILED - tests were interrupted during execution
ERROR: Logfile of failure stored in: 
/home/pokybuild/yocto-worker/oe-selftest/build/build-st-5770/tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0-r0/temp/log.do_testimage.47342

NOTE: recipe core-image-minimal-1.0-r0: task do_testimage: Failed
ERROR: Task 
(/home/pokybuild/yocto-worker/oe-selftest/build/meta/recipes-core/images/core-image-minimal.bb:do_testimage) 
failed with exit code '1'
NOTE: Tasks Summary: Attempted 1013 tasks of which 1012 didn't need to 
be rerun and 1 failed.
NOTE: The err

[OE-core] [PATCH 2/5] oe-selftest: extend virgl gtk test to also check the SDL option

2019-10-24 Thread Alexander Kanavin
Signed-off-by: Alexander Kanavin 
---
 meta/lib/oeqa/selftest/cases/runtime_test.py | 17 +
 1 file changed, 13 insertions(+), 4 deletions(-)

diff --git a/meta/lib/oeqa/selftest/cases/runtime_test.py 
b/meta/lib/oeqa/selftest/cases/runtime_test.py
index 3f212bd0eac..8f98a9ead46 100644
--- a/meta/lib/oeqa/selftest/cases/runtime_test.py
+++ b/meta/lib/oeqa/selftest/cases/runtime_test.py
@@ -166,9 +166,9 @@ class TestImage(OESelftestTestCase):
 bitbake('core-image-full-cmdline socat')
 bitbake('-c testimage core-image-full-cmdline')
 
-def test_testimage_virgl_gtk(self):
+def test_testimage_virgl_gtk_sdl(self):
 """
-Summary: Check host-assisted accelerate OpenGL functionality in qemu 
with gtk frontend
+Summary: Check host-assisted accelerate OpenGL functionality in qemu 
with gtk and SDL frontends
 Expected: 1. Check that virgl kernel driver is loaded and 3d 
acceleration is enabled
   2. Check that kmscube demo runs without crashing.
 Product: oe-core
@@ -181,18 +181,27 @@ class TestImage(OESelftestTestCase):
 self.skipTest('virgl isn\'t working with Debian 8')
 
 qemu_packageconfig = get_bb_var('PACKAGECONFIG', 'qemu-system-native')
+sdl_packageconfig = get_bb_var('PACKAGECONFIG', 'libsdl2-native')
 features = 'INHERIT += "testimage"\n'
 if 'gtk+' not in qemu_packageconfig:
 features += 'PACKAGECONFIG_append_pn-qemu-system-native = " 
gtk+"\n'
+if 'sdl' not in qemu_packageconfig:
+features += 'PACKAGECONFIG_append_pn-qemu-system-native = " sdl"\n'
 if 'virglrenderer' not in qemu_packageconfig:
 features += 'PACKAGECONFIG_append_pn-qemu-system-native = " 
virglrenderer"\n'
 if 'glx' not in qemu_packageconfig:
 features += 'PACKAGECONFIG_append_pn-qemu-system-native = " glx"\n'
+if 'opengl' not in sdl_packageconfig:
+features += 'PACKAGECONFIG_append_pn-libsdl2-native = " opengl"\n'
 features += 'TEST_SUITES = "ping ssh virgl"\n'
 features += 'IMAGE_FEATURES_append = " ssh-server-dropbear"\n'
 features += 'IMAGE_INSTALL_append = " kmscube"\n'
-features += 'TEST_RUNQEMUPARAMS = "gtk gl"\n'
-self.write_config(features)
+features_gtk = features + 'TEST_RUNQEMUPARAMS = "gtk gl"\n'
+self.write_config(features_gtk)
+bitbake('core-image-minimal')
+bitbake('-c testimage core-image-minimal')
+features_sdl = features + 'TEST_RUNQEMUPARAMS = "sdl gl"\n'
+self.write_config(features_sdl)
 bitbake('core-image-minimal')
 bitbake('-c testimage core-image-minimal')
 
-- 
2.17.1

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core