From: Takashi Sakamoto Date: Sun, 19 Jun 2022 11:38:51 +0000 (+0900) Subject: tests: add test script for ALSATimer.DeviceId boxed structure X-Git-Tag: v0.3.0~81 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=c921f5ceedcfce6a9a5982583f8802adac82c56e;p=alsa-gobject.git tests: add test script for ALSATimer.DeviceId boxed structure Signed-off-by: Takashi Sakamoto --- diff --git a/tests/alsatimer-device-id b/tests/alsatimer-device-id index 009c4da..fa068ad 100644 --- a/tests/alsatimer-device-id +++ b/tests/alsatimer-device-id @@ -3,24 +3,20 @@ from sys import exit from errno import ENXIO -from helper import test_object +from helper import test_struct import gi gi.require_version('ALSATimer', '0.0') from gi.repository import ALSATimer -target = ALSATimer.DeviceId() -props = ( - 'class', - 'slave-class', - 'card-id', - 'device-id', - 'subdevice-id', -) +target_type = ALSATimer.DeviceId methods = ( 'new', + 'get_class', + 'get_card_id', + 'get_device_id', + 'get_subdevice_id', ) -signals = () -if not test_object(target, props, methods, signals): +if not test_struct(target_type, methods): exit(ENXIO) diff --git a/tests/meson.build b/tests/meson.build index e6d931a..01df4d0 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -24,6 +24,7 @@ tests = { 'alsatimer-instance-info', 'alsatimer-instance-params', 'alsatimer-instance-status', + 'alsatimer-device-id', ], 'seq': [ 'alsaseq-enums',