libpurple/tests/meson.build

Fri, 16 Oct 2020 02:27:21 -0500

author
Gary Kramlich <grim@reaperworld.com>
date
Fri, 16 Oct 2020 02:27:21 -0500
changeset 40564
2c5b4dc2e86a
parent 40548
42556c49e1e2
child 40583
28964322556c
permissions
-rw-r--r--

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.

Testing Done:
Compile and unit tests.

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

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',
38860
4af13de1fee2 Finish up the unit tests for the attention cleanup
Gary Kramlich <grim@reaperworld.com>
parents: 38848
diff changeset
3 'attention_type',
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
4 'circular_buffer',
40548
42556c49e1e2 Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents: 40351
diff changeset
5 'credential_provider',
38534
28747a3cea35 Switch GnuTLS/NSS for Nettle in Meson build.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 38492
diff changeset
6 'image',
40351
79cbdc5c5989 Add some unit tests for key value pairs
Gary Kramlich <grim@reaperworld.com>
parents: 39979
diff changeset
7 '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
8 'markup',
39974
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents: 39484
diff changeset
9 'protocol_action',
38860
4af13de1fee2 Finish up the unit tests for the attention cleanup
Gary Kramlich <grim@reaperworld.com>
parents: 38848
diff changeset
10 'protocol_attention',
38829
2be373489ef1 Start of unit tests for the PurpleProtocolXferInterface
Gary Kramlich <grim@reaperworld.com>
parents: 38534
diff changeset
11 'protocol_xfer',
39166
7119cb1afdb8 tests: Add tests for PurpleQueuedOutputStream
Mike Ruprecht <cmaiku@gmail.com>
parents: 38937
diff changeset
12 'queued_output_stream',
38534
28747a3cea35 Switch GnuTLS/NSS for Nettle in Meson build.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 38492
diff changeset
13 'smiley',
28747a3cea35 Switch GnuTLS/NSS for Nettle in Meson build.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 38492
diff changeset
14 'smiley_list',
28747a3cea35 Switch GnuTLS/NSS for Nettle in Meson build.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 38492
diff changeset
15 'trie',
28747a3cea35 Switch GnuTLS/NSS for Nettle in Meson build.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 38492
diff changeset
16 'util',
28747a3cea35 Switch GnuTLS/NSS for Nettle in Meson build.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 38492
diff changeset
17 'xmlnode'
28747a3cea35 Switch GnuTLS/NSS for Nettle in Meson build.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 38492
diff changeset
18 ]
38831
d260f3b61831 The start of a ui for unit testing
Gary Kramlich <grim@reaperworld.com>
parents: 38830
diff changeset
19
38832
7ad7854d8e60 Create a very basic ui for testing
Gary Kramlich <grim@reaperworld.com>
parents: 38831
diff changeset
20 test_ui = static_library(
7ad7854d8e60 Create a very basic ui for testing
Gary Kramlich <grim@reaperworld.com>
parents: 38831
diff changeset
21 'test-ui',
7ad7854d8e60 Create a very basic ui for testing
Gary Kramlich <grim@reaperworld.com>
parents: 38831
diff changeset
22 'test_ui.c',
7ad7854d8e60 Create a very basic ui for testing
Gary Kramlich <grim@reaperworld.com>
parents: 38831
diff changeset
23 'test_ui.h',
7ad7854d8e60 Create a very basic ui for testing
Gary Kramlich <grim@reaperworld.com>
parents: 38831
diff changeset
24 c_args: [
7ad7854d8e60 Create a very basic ui for testing
Gary Kramlich <grim@reaperworld.com>
parents: 38831
diff changeset
25 '-DTEST_DATA_DIR="@0@/data"'.format(meson.current_source_dir())
7ad7854d8e60 Create a very basic ui for testing
Gary Kramlich <grim@reaperworld.com>
parents: 38831
diff changeset
26 ],
39354
db17ba548304 libpurple: Drop DBus API bindings
Mike Ruprecht <cmaiku@gmail.com>
parents: 39166
diff changeset
27 dependencies: [libpurple_dep, glib]
38832
7ad7854d8e60 Create a very basic ui for testing
Gary Kramlich <grim@reaperworld.com>
parents: 38831
diff changeset
28 )
7ad7854d8e60 Create a very basic ui for testing
Gary Kramlich <grim@reaperworld.com>
parents: 38831
diff changeset
29
38534
28747a3cea35 Switch GnuTLS/NSS for Nettle in Meson build.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 38492
diff changeset
30 foreach prog : PROGS
38848
22e32372b906 Fix a few typos and cleanup some whitespace
Gary Kramlich <grim@reaperworld.com>
parents: 38832
diff changeset
31 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
32 c_args : [
22e32372b906 Fix a few typos and cleanup some whitespace
Gary Kramlich <grim@reaperworld.com>
parents: 38832
diff changeset
33 '-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
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 link_with: test_ui,
7ad7854d8e60 Create a very basic ui for testing
Gary Kramlich <grim@reaperworld.com>
parents: 38831
diff changeset
37 )
38848
22e32372b906 Fix a few typos and cleanup some whitespace
Gary Kramlich <grim@reaperworld.com>
parents: 38832
diff changeset
38 test(prog, e)
38439
03f1a1642a68 Add meson build for libpurple only.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff changeset
39 endforeach

mercurial