pidgin/tests/meson.build

Sun, 10 Aug 2025 23:44:08 +0800

author
Gong Zhile <gongzl@stu.hebust.edu.cn>
date
Sun, 10 Aug 2025 23:44:08 +0800
branch
purple_conversation_find_message_by_id
changeset 43309
099e1dfb856b
parent 42837
1f1614e5468b
permissions
-rw-r--r--

Add Purple.Conversation.find_message_by_id

The method was added so that a protocol or plugin could easily lookup
for the reference for a message. This will be especially useful when a
protocol received a quoted message but only with an id.

BROADWAY_TESTS = [
]

TEST_WRAPPER = find_program('./test-wrapper.py', required: true)
BROADWAYD = find_program('gtk4-broadwayd', required: false)

testenv.set('XDG_CONFIG_HOME', meson.current_build_dir() / 'config')

if BROADWAYD.found()
	foreach program : BROADWAY_TESTS
		e = executable(f'test_@program@', f'test_@program@.c',
		               c_args : ['-DTEST_DATA_DIR="@0@/data"'.format(meson.current_source_dir()),
		                         '-DTEST_CACHE_DIR="@0@/cache"'.format(meson.current_build_dir())],
		               dependencies : [libpurple_dep, libpidgin_dep, glib, gtk])
		test(program, TEST_WRAPPER,
		     args : [BROADWAYD.full_path(), e],
		     is_parallel : false,
		     env: testenv)
	endforeach
endif

mercurial