From: Takashi Sakamoto Date: Sun, 19 Jun 2022 11:38:51 +0000 (+0900) Subject: tests: add test script for ALSATimer.TstampEvent boxed structure X-Git-Tag: v0.3.0~79 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=5f8e5352e5c2fa6ce4b9b708e520f80b20acd9b7;p=alsa-gobject.git tests: add test script for ALSATimer.TstampEvent boxed structure Signed-off-by: Takashi Sakamoto --- diff --git a/tests/alsatimer-tstamp-event b/tests/alsatimer-tstamp-event new file mode 100644 index 0000000..20ad44b --- /dev/null +++ b/tests/alsatimer-tstamp-event @@ -0,0 +1,20 @@ +#!/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.TstampEvent +methods = ( + 'get_event', + 'get_tstamp', + 'get_val', +) + +if not test_struct(target_type, methods): + exit(ENXIO) diff --git a/tests/meson.build b/tests/meson.build index b825eda..552507b 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -26,6 +26,7 @@ tests = { 'alsatimer-instance-status', 'alsatimer-device-id', 'alsatimer-tick-event', + 'alsatimer-tstamp-event', ], 'seq': [ 'alsaseq-enums',