From: Takashi Sakamoto Date: Sun, 19 Jun 2022 11:38:51 +0000 (+0900) Subject: tests: add test script for ALSATimer.TickEvent boxed structure X-Git-Tag: v0.3.0~80 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=2a5f267e7efa1d3f4918432857c49962c1ebe28a;p=alsa-gobject.git tests: add test script for ALSATimer.TickEvent boxed structure Signed-off-by: Takashi Sakamoto --- diff --git a/tests/alsatimer-tick-event b/tests/alsatimer-tick-event new file mode 100644 index 0000000..4ca7f85 --- /dev/null +++ b/tests/alsatimer-tick-event @@ -0,0 +1,19 @@ +#!/usr/bin/env python3 + +from sys import exit +from errno import ENXIO + +from helper import test_struct + +import gi +gi.require_version('ALSATimer', '0.0') +from gi.repository import ALSATimer + +target_type = ALSATimer.TickEvent +methods = ( + 'get_resolution', + 'get_ticks', +) + +if not test_struct(target_type, methods): + exit(ENXIO) diff --git a/tests/meson.build b/tests/meson.build index 01df4d0..b825eda 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -25,6 +25,7 @@ tests = { 'alsatimer-instance-params', 'alsatimer-instance-status', 'alsatimer-device-id', + 'alsatimer-tick-event', ], 'seq': [ 'alsaseq-enums',