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

diff --git a/tests/alsaseq-addr b/tests/alsaseq-addr
new file mode 100644 (file)
index 0000000..a3282d5
--- /dev/null
@@ -0,0 +1,21 @@
+#!/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.Addr
+methods = (
+    'new',
+    'get_client_id',
+    'get_port_id',
+    'equal',
+)
+
+if not test_struct(target_type, methods):
+    exit(ENXIO)
index 552507bfd72b3c4ea16276f94013bb7385a616d1..9c587ac6707f4887327c1082c16970b87985df83 100644 (file)
@@ -40,6 +40,7 @@ tests = {
     'alsaseq-queue-status',
     'alsaseq-queue-tempo',
     'alsaseq-queue-timer-alsa',
+    'alsaseq-addr',
   ],
   'hwdep': [
     'alsahwdep-enums',