libpurple/tests/meson.build

Mon, 22 Aug 2022 22:05:55 -0500

author
Gary Kramlich <grim@reaperworld.com>
date
Mon, 22 Aug 2022 22:05:55 -0500
changeset 41514
a96768bacb59
parent 41493
06dcfb1cc1b2
child 41674
c53f5d62e14f
permissions
-rw-r--r--

Create PurpleAuthorizationRequest and use it for notifications.

This replaces the old internal representation of authorization requests as well
as the UI's implementation of their own objects. Everything is now controlled
via PurpleAuthorizationRequest and the UI's display the notification for
interaction.

Testing Done:
Verified the notification and actions work in both finch and pidgin.

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

38534
28747a3cea35 Switch GnuTLS/NSS for Nettle in Meson build.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 38492
diff changeset
1 PROGS = [
39974
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents: 39484
diff changeset
2 'account_option',
41181
e859c41d8996 Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents: 41176
diff changeset
3 'account_manager',
41514
a96768bacb59 Create PurpleAuthorizationRequest and use it for notifications.
Gary Kramlich <grim@reaperworld.com>
parents: 41493
diff changeset
4 'authorization_request',
39975
f691f3812205 Add some unit tests for the circular buffer.. they're not great, was just trying to test somethings
Gary Kramlich <grim@reaperworld.com>
parents: 39484
diff changeset
5 'circular_buffer',
40583
28964322556c Add the new PurpleCredentialManager API
Gary Kramlich <grim@reaperworld.com>
parents: 40564
diff changeset
6 'credential_manager',
40548
42556c49e1e2 Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents: 40351
diff changeset
7 'credential_provider',
41090
741992355ead GSoC History API including sqlite history adapter
James Culver <rewtguy@gmail.com>
parents: 41040
diff changeset
8 'history_adapter',
741992355ead GSoC History API including sqlite history adapter
James Culver <rewtguy@gmail.com>
parents: 41040
diff changeset
9 'history_manager',
38534
28747a3cea35 Switch GnuTLS/NSS for Nettle in Meson build.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 38492
diff changeset
10 'image',
40351
79cbdc5c5989 Add some unit tests for key value pairs
Gary Kramlich <grim@reaperworld.com>
parents: 39979
diff changeset
11 'keyvaluepair',
40564
2c5b4dc2e86a Pull the purple_markup_* api out of util.[ch] to purplemarkup.[ch]. No code was changed just moved it from one file to the other.
Gary Kramlich <grim@reaperworld.com>
parents: 40548
diff changeset
12 'markup',
41403
0186ae21071f Add purple_menu_populate_dynamic_targets to dynamically update GMenu's
Gary Kramlich <grim@reaperworld.com>
parents: 41243
diff changeset
13 'menu',
41433
d563b345a096 Phase 1 of the Notifications API
Gary Kramlich <grim@reaperworld.com>
parents: 41403
diff changeset
14 'notification',
d563b345a096 Phase 1 of the Notifications API
Gary Kramlich <grim@reaperworld.com>
parents: 41403
diff changeset
15 'notification_manager',
39974
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents: 39484
diff changeset
16 'protocol_action',
38829
2be373489ef1 Start of unit tests for the PurpleProtocolXferInterface
Gary Kramlich <grim@reaperworld.com>
parents: 38534
diff changeset
17 'protocol_xfer',
41242
0343173db2f6 added basic tests for path based functions
ivanhoe <107501-ivanhoe@users.noreply.gitlab.com>
parents: 41181
diff changeset
18 'purplepath',
39166
7119cb1afdb8 tests: Add tests for PurpleQueuedOutputStream
Mike Ruprecht <cmaiku@gmail.com>
parents: 38937
diff changeset
19 'queued_output_stream',
38534
28747a3cea35 Switch GnuTLS/NSS for Nettle in Meson build.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 38492
diff changeset
20 'trie',
28747a3cea35 Switch GnuTLS/NSS for Nettle in Meson build.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 38492
diff changeset
21 'util',
41040
4be2eda9548a Create PurpleWhiteboardManager for managing whiteboards
Gary Kramlich <grim@reaperworld.com>
parents: 41034
diff changeset
22 'whiteboard_manager',
4be2eda9548a Create PurpleWhiteboardManager for managing whiteboards
Gary Kramlich <grim@reaperworld.com>
parents: 41034
diff changeset
23 'xmlnode',
38534
28747a3cea35 Switch GnuTLS/NSS for Nettle in Meson build.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 38492
diff changeset
24 ]
38831
d260f3b61831 The start of a ui for unit testing
Gary Kramlich <grim@reaperworld.com>
parents: 38830
diff changeset
25
38832
7ad7854d8e60 Create a very basic ui for testing
Gary Kramlich <grim@reaperworld.com>
parents: 38831
diff changeset
26 test_ui = static_library(
7ad7854d8e60 Create a very basic ui for testing
Gary Kramlich <grim@reaperworld.com>
parents: 38831
diff changeset
27 'test-ui',
7ad7854d8e60 Create a very basic ui for testing
Gary Kramlich <grim@reaperworld.com>
parents: 38831
diff changeset
28 'test_ui.c',
7ad7854d8e60 Create a very basic ui for testing
Gary Kramlich <grim@reaperworld.com>
parents: 38831
diff changeset
29 'test_ui.h',
7ad7854d8e60 Create a very basic ui for testing
Gary Kramlich <grim@reaperworld.com>
parents: 38831
diff changeset
30 c_args: [
41107
1570d8844e9a Enable structured logging in libpurple
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41090
diff changeset
31 '-DTEST_DATA_DIR="@0@/data"'.format(meson.current_source_dir()),
1570d8844e9a Enable structured logging in libpurple
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41090
diff changeset
32 '-DG_LOG_USE_STRUCTURED',
1570d8844e9a Enable structured logging in libpurple
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41090
diff changeset
33 '-DG_LOG_DOMAIN="Purple-TestUI"',
38832
7ad7854d8e60 Create a very basic ui for testing
Gary Kramlich <grim@reaperworld.com>
parents: 38831
diff changeset
34 ],
39354
db17ba548304 libpurple: Drop DBus API bindings
Mike Ruprecht <cmaiku@gmail.com>
parents: 39166
diff changeset
35 dependencies: [libpurple_dep, glib]
38832
7ad7854d8e60 Create a very basic ui for testing
Gary Kramlich <grim@reaperworld.com>
parents: 38831
diff changeset
36 )
7ad7854d8e60 Create a very basic ui for testing
Gary Kramlich <grim@reaperworld.com>
parents: 38831
diff changeset
37
41493
06dcfb1cc1b2 Set XDG_CONFIG_DIR for all unittests so they can run in a silo
Gary Kramlich <grim@reaperworld.com>
parents: 41433
diff changeset
38 testenv = environment()
06dcfb1cc1b2 Set XDG_CONFIG_DIR for all unittests so they can run in a silo
Gary Kramlich <grim@reaperworld.com>
parents: 41433
diff changeset
39 testenv.set('XDG_CONFIG_HOME', meson.current_build_dir() / 'config')
06dcfb1cc1b2 Set XDG_CONFIG_DIR for all unittests so they can run in a silo
Gary Kramlich <grim@reaperworld.com>
parents: 41433
diff changeset
40
38534
28747a3cea35 Switch GnuTLS/NSS for Nettle in Meson build.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 38492
diff changeset
41 foreach prog : PROGS
38848
22e32372b906 Fix a few typos and cleanup some whitespace
Gary Kramlich <grim@reaperworld.com>
parents: 38832
diff changeset
42 e = executable('test_' + prog, 'test_@0@.c'.format(prog),
22e32372b906 Fix a few typos and cleanup some whitespace
Gary Kramlich <grim@reaperworld.com>
parents: 38832
diff changeset
43 c_args : [
22e32372b906 Fix a few typos and cleanup some whitespace
Gary Kramlich <grim@reaperworld.com>
parents: 38832
diff changeset
44 '-DTEST_DATA_DIR="@0@/data"'.format(meson.current_source_dir())
22e32372b906 Fix a few typos and cleanup some whitespace
Gary Kramlich <grim@reaperworld.com>
parents: 38832
diff changeset
45 ],
39354
db17ba548304 libpurple: Drop DBus API bindings
Mike Ruprecht <cmaiku@gmail.com>
parents: 39166
diff changeset
46 dependencies : [libpurple_dep, glib],
38832
7ad7854d8e60 Create a very basic ui for testing
Gary Kramlich <grim@reaperworld.com>
parents: 38831
diff changeset
47 link_with: test_ui,
7ad7854d8e60 Create a very basic ui for testing
Gary Kramlich <grim@reaperworld.com>
parents: 38831
diff changeset
48 )
41493
06dcfb1cc1b2 Set XDG_CONFIG_DIR for all unittests so they can run in a silo
Gary Kramlich <grim@reaperworld.com>
parents: 41433
diff changeset
49 test(prog, e,
06dcfb1cc1b2 Set XDG_CONFIG_DIR for all unittests so they can run in a silo
Gary Kramlich <grim@reaperworld.com>
parents: 41433
diff changeset
50 env: testenv,
06dcfb1cc1b2 Set XDG_CONFIG_DIR for all unittests so they can run in a silo
Gary Kramlich <grim@reaperworld.com>
parents: 41433
diff changeset
51 )
38439
03f1a1642a68 Add meson build for libpurple only.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff changeset
52 endforeach

mercurial