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

diff --git a/tests/alsaseq-event-cntr b/tests/alsaseq-event-cntr
new file mode 100644 (file)
index 0000000..afc12ac
--- /dev/null
@@ -0,0 +1,18 @@
+#!/usr/bin/env python3
+
+from sys import exit
+from errno import ENXIO
+
+from helper import test_struct
+
+import gi
+gi.require_version('ALSASeq', '0.0')
+from gi.repository import ALSASeq
+
+target_type = ALSASeq.EventCntr
+methods = (
+    'deserialize',
+)
+
+if not test_struct(target_type, methods):
+    exit(ENXIO)
index 9c587ac6707f4887327c1082c16970b87985df83..9a541cccb8f257cd2415e4d8fe6f84174d305b33 100644 (file)
@@ -41,6 +41,7 @@ tests = {
     'alsaseq-queue-tempo',
     'alsaseq-queue-timer-alsa',
     'alsaseq-addr',
+    'alsaseq-event-cntr',
   ],
   'hwdep': [
     'alsahwdep-enums',