pidgin/tests/meson.build

Sun, 14 Jan 2024 20:08:13 -0600

author
Gary Kramlich <grim@reaperworld.com>
date
Sun, 14 Jan 2024 20:08:13 -0600
changeset 42568
31e8c7c92e2f
parent 42479
d0faa9b1ac85
child 42837
1f1614e5468b
permissions
-rw-r--r--

Make sure all of the license headers for IRCv3 are GPLv2

Testing Done:
Ran `licensecheck` from debian in the following way.

```
$ licensecheck *.[ch] | cut -d: -f 2 | sort | uniq -c
27 GNU General Public License v2.0 or later
```

Reviewed at https://reviews.imfreedom.org/r/2913/

BROADWAY_TESTS = [
	'text_buffer',
]

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