aboutsummaryrefslogtreecommitdiff
path: root/src/tests/meson.build
diff options
context:
space:
mode:
authorDan Williams <dan@ioncontrol.co>2025-04-29 18:52:13 -0500
committerDan Williams <dan@ioncontrol.co>2025-05-30 08:06:11 -0500
commitdad2d49b696c66ccf868bc89b35a6529f9e15777 (patch)
tree7af9420327a7deea70df1bbcaa004724fed1aec7 /src/tests/meson.build
parentae3d37030a451eda2680af02cc63ba7bfbeeacbf (diff)
tests: test call DTMF functionality
Signed-off-by: Dan Williams <dan@ioncontrol.co>
Diffstat (limited to 'src/tests/meson.build')
-rw-r--r--src/tests/meson.build19
1 files changed, 18 insertions, 1 deletions
diff --git a/src/tests/meson.build b/src/tests/meson.build
index 5c6764b9..a9216c24 100644
--- a/src/tests/meson.build
+++ b/src/tests/meson.build
@@ -31,6 +31,11 @@ if enable_mbim
test_units += {'modem-helpers-mbim': libkerneldevice_dep}
endif
+c_args = [
+ '-DTEST_SERVICES="@0@"'.format(build_root / 'data/tests'),
+ '-DTESTUDEVRULESDIR="@0@"'.format(src_dir),
+]
+
foreach test_unit, test_deps: test_units
test_name = 'test-' + test_unit
@@ -39,12 +44,24 @@ foreach test_unit, test_deps: test_units
sources: test_name + '.c',
include_directories: top_inc,
dependencies: test_deps,
- c_args: '-DTESTUDEVRULESDIR="@0@"'.format(src_dir)
+ c_args: c_args,
)
test(test_name, exe)
endforeach
+# base call test
+exe = executable(
+ 'test-base-call',
+ sources: [ 'test-base-call.c', 'fake-modem.c', 'fake-call.c' ],
+ include_directories: top_inc,
+ dependencies: libmmbase_dep,
+ c_args: c_args,
+)
+
+test('test-base-call', exe)
+
+
if get_option('fuzzer')
fuzzer_tests = ['test-sms-part-3gpp-fuzzer',
'test-sms-part-3gpp-tr-fuzzer',