]> git.alsa-project.org Git - alsa-gobject.git/commitdiff
tests: add test script for ALSASeq.QueueTimerCommon interface
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/alsaseq-queue-timer-alsa
tests/alsaseq-queue-timer-common [new file with mode: 0644]
tests/meson.build

index fdee1ad296aa3f0036eb16cf356db2d1d96b95c1..c41d4b90a4bfbacc105718f6e2bdeb0b0209c1cb 100644 (file)
@@ -11,10 +11,11 @@ from gi.repository import ALSASeq
 
 target_type = ALSASeq.QueueTimerAlsa
 props = (
-    'queue-id',
-    'timer-type',
     'device-id',
     'resolution-ticks',
+    # From interface.
+    'queue-id',
+    'timer-type',
 )
 methods = (
     'new',
diff --git a/tests/alsaseq-queue-timer-common b/tests/alsaseq-queue-timer-common
new file mode 100644 (file)
index 0000000..76104c5
--- /dev/null
@@ -0,0 +1,22 @@
+#!/usr/bin/env python3
+
+from sys import exit
+from errno import ENXIO
+
+from helper import test_object
+
+import gi
+gi.require_version('ALSASeq', '0.0')
+from gi.repository import ALSASeq
+
+target_type = ALSASeq.QueueTimerCommon
+props = (
+    'queue-id',
+    'timer-type',
+)
+methods = ()
+vmethods = ()
+signals = ()
+
+if not test_object(target_type, props, methods, vmethods, signals):
+    exit(ENXIO)
index ef86c0b5bf54303d12d7dc68f214bb4d92792a05..bc49f0caeb852bb933663efe8a53408f8429df32 100644 (file)
@@ -51,6 +51,7 @@ tests = {
     'alsaseq-event-data-queue',
     'alsaseq-event-data-result',
     'alsaseq-remove-filter',
+    'alsaseq-queue-timer-common',
   ],
   'hwdep': [
     'alsahwdep-enums',