From 16f559040479ad21f23a01f4db4ad807485045df Mon Sep 17 00:00:00 2001 From: Takashi Sakamoto Date: Sun, 19 Jun 2022 20:38:51 +0900 Subject: [PATCH] tests: add test script for ALSACtl.ElemInfoSingleArray interface Signed-off-by: Takashi Sakamoto --- tests/alsactl-elem-info-single-array | 21 +++++++++++++++++++++ tests/meson.build | 1 + 2 files changed, 22 insertions(+) create mode 100644 tests/alsactl-elem-info-single-array diff --git a/tests/alsactl-elem-info-single-array b/tests/alsactl-elem-info-single-array new file mode 100644 index 0000000..ff99fea --- /dev/null +++ b/tests/alsactl-elem-info-single-array @@ -0,0 +1,21 @@ +#!/usr/bin/env python3 + +from sys import exit +from errno import ENXIO + +from helper import test_object + +import gi +gi.require_version('ALSACtl', '0.0') +from gi.repository import ALSACtl + +target_type = ALSACtl.ElemInfoSingleArray +props = ( + 'value-count', +) +methods = () +vmethods = () +signals = () + +if not test_object(target_type, props, methods, vmethods, signals): + exit(ENXIO) diff --git a/tests/meson.build b/tests/meson.build index 50d34fb..a6db201 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -15,6 +15,7 @@ tests = { 'alsactl-elem-value', 'alsactl-elem-id', 'alsactl-elem-info-common', + 'alsactl-elem-info-single-array', ], 'timer': [ 'alsatimer-enums', -- 2.47.3