]> git.alsa-project.org Git - alsa-gobject.git/commitdiff
tests: add test script for ALSATimer.DeviceId boxed structure
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Sun, 19 Jun 2022 11:38:51 +0000 (20:38 +0900)
committer坂本 貴史 <o-takashi@sakamocchi.jp>
Sun, 19 Jun 2022 11:43:34 +0000 (20:43 +0900)
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
tests/alsatimer-device-id
tests/meson.build

index 009c4da962f8145f809c483a6c4c82c07e560b5b..fa068ad2878b7e28031c8dbde178488946ae56c4 100644 (file)
@@ -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)
index e6d931a134aa76f30d7cc3d1edf0bf90526f53bf..01df4d099b3e094db7b65cec045fd9ec3e1d32ae 100644 (file)
@@ -24,6 +24,7 @@ tests = {
     'alsatimer-instance-info',
     'alsatimer-instance-params',
     'alsatimer-instance-status',
+    'alsatimer-device-id',
   ],
   'seq': [
     'alsaseq-enums',