3 # 'test-pseudotcp-fuzzy', FIXME: this test is not reliable, times out sometimes
7 'test-add-remove-stream',
8 'test-build-io-stream',
9 'test-io-stream-thread',
10 'test-io-stream-closing-write',
11 'test-io-stream-closing-read',
12 'test-io-stream-cancelling',
13 'test-io-stream-pollable',
15 'test-socket-is-based-on',
16 'test-udp-turn-fragmentation',
19 'test-different-number-streams',
33 if cc.has_header('arpa/inet.h')
41 tenv.set('BUILT_WITH_MESON', '1')
43 foreach tname : nice_tests
44 if tname.startswith('test-io-stream') or tname.startswith('test-send-recv')
45 extra_src = ['test-io-stream-common.c']
49 exe = executable('nice-@0@'.format(tname),
50 '@0@.c'.format(tname), extra_src,
51 c_args: '-DG_LOG_DOMAIN="libnice-tests"',
52 include_directories: nice_incs,
53 dependencies: [nice_deps, libm],
54 link_with: [libagent, libstun, libsocket, librandom],
56 set_variable(tname.underscorify(), exe)
57 test(tname, exe, env: tenv)
59 if tname == 'test-fullmode'
60 wrapper_exe = executable ('nice-test-fullmode-with-stun',
61 'test-fullmode-with-stun.c',
62 dependencies: gio_deps,
64 test('test-fullmode-with-stun', wrapper_exe,
65 args: [stund_exe, test_fullmode],
73 gst_check = dependency('gstreamer-check-1.0', required: get_option('gstreamer'),
74 fallback : ['gstreamer', 'gst_check_dep'])
76 exe = executable('nice-test-gstreamer',
77 'test-gstreamer.c', extra_src,
78 c_args: '-DG_LOG_DOMAIN="libnice-tests"',
79 include_directories: nice_incs,
80 dependencies: [nice_deps, gst_check, libm],
84 gst_env.append('GST_PLUGIN_PATH_1_0', join_paths(meson.current_build_dir(), '..', 'gst'))
85 test('test-gstreamer', exe, env: gst_env)
89 if find_program('sh', required : false).found() and find_program('dd', required : false).found() and find_program('diff', required : false).found()
90 test('test-pseudotcp-random', find_program('test-pseudotcp-random.sh'),
95 debugenv = environment()
96 debugenv.set('G_MESSAGES_DEBUG', 'all')
97 debugenv.set('NICE_DEBUG', 'all')
98 add_test_setup('debug', env: debugenv)