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