Sun, 09 Jun 2024 15:36:02 -0500
IRCv3: Only set up SASL if the account requires a password
Testing Done:
Connected both an account with and without password.
Reviewed at https://reviews.imfreedom.org/r/3249/
|
42479
d0faa9b1ac85
Make broadwayd optional for unit testing
Gary Kramlich <grim@reaperworld.com>
parents:
42456
diff
changeset
|
1 | BROADWAY_TESTS = [ |
|
42456
73bb1fae628c
Create pidgin_text_buffer API for working with GtkTextBuffers
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
2 | 'text_buffer', |
|
73bb1fae628c
Create pidgin_text_buffer API for working with GtkTextBuffers
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
3 | ] |
|
73bb1fae628c
Create pidgin_text_buffer API for working with GtkTextBuffers
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
4 | |
|
73bb1fae628c
Create pidgin_text_buffer API for working with GtkTextBuffers
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
5 | TEST_WRAPPER = find_program('./test-wrapper.py', required: true) |
|
42479
d0faa9b1ac85
Make broadwayd optional for unit testing
Gary Kramlich <grim@reaperworld.com>
parents:
42456
diff
changeset
|
6 | BROADWAYD = find_program('gtk4-broadwayd', required: false) |
|
42456
73bb1fae628c
Create pidgin_text_buffer API for working with GtkTextBuffers
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
7 | |
|
73bb1fae628c
Create pidgin_text_buffer API for working with GtkTextBuffers
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
8 | testenv.set('XDG_CONFIG_HOME', meson.current_build_dir() / 'config') |
|
73bb1fae628c
Create pidgin_text_buffer API for working with GtkTextBuffers
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
9 | |
|
42479
d0faa9b1ac85
Make broadwayd optional for unit testing
Gary Kramlich <grim@reaperworld.com>
parents:
42456
diff
changeset
|
10 | if BROADWAYD.found() |
|
d0faa9b1ac85
Make broadwayd optional for unit testing
Gary Kramlich <grim@reaperworld.com>
parents:
42456
diff
changeset
|
11 | foreach program : BROADWAY_TESTS |
|
d0faa9b1ac85
Make broadwayd optional for unit testing
Gary Kramlich <grim@reaperworld.com>
parents:
42456
diff
changeset
|
12 | e = executable(f'test_@program@', f'test_@program@.c', |
|
d0faa9b1ac85
Make broadwayd optional for unit testing
Gary Kramlich <grim@reaperworld.com>
parents:
42456
diff
changeset
|
13 | c_args : ['-DTEST_DATA_DIR="@0@/data"'.format(meson.current_source_dir()), |
|
d0faa9b1ac85
Make broadwayd optional for unit testing
Gary Kramlich <grim@reaperworld.com>
parents:
42456
diff
changeset
|
14 | '-DTEST_CACHE_DIR="@0@/cache"'.format(meson.current_build_dir())], |
|
d0faa9b1ac85
Make broadwayd optional for unit testing
Gary Kramlich <grim@reaperworld.com>
parents:
42456
diff
changeset
|
15 | dependencies : [libpurple_dep, libpidgin_dep, glib, gtk]) |
|
d0faa9b1ac85
Make broadwayd optional for unit testing
Gary Kramlich <grim@reaperworld.com>
parents:
42456
diff
changeset
|
16 | test(program, TEST_WRAPPER, |
|
d0faa9b1ac85
Make broadwayd optional for unit testing
Gary Kramlich <grim@reaperworld.com>
parents:
42456
diff
changeset
|
17 | args : [BROADWAYD.full_path(), e], |
|
d0faa9b1ac85
Make broadwayd optional for unit testing
Gary Kramlich <grim@reaperworld.com>
parents:
42456
diff
changeset
|
18 | is_parallel : false, |
|
d0faa9b1ac85
Make broadwayd optional for unit testing
Gary Kramlich <grim@reaperworld.com>
parents:
42456
diff
changeset
|
19 | env: testenv) |
|
d0faa9b1ac85
Make broadwayd optional for unit testing
Gary Kramlich <grim@reaperworld.com>
parents:
42456
diff
changeset
|
20 | endforeach |
|
d0faa9b1ac85
Make broadwayd optional for unit testing
Gary Kramlich <grim@reaperworld.com>
parents:
42456
diff
changeset
|
21 | endif |