libpurple/tests/meson.build

Fri, 10 Feb 2023 00:52:05 -0600

author
Gary Kramlich <grim@reaperworld.com>
date
Fri, 10 Feb 2023 00:52:05 -0600
changeset 42051
18adb1710a54
parent 42008
ae3fa963c1b3
child 42060
d55b605fdafb
permissions
-rw-r--r--

Add read-only properties for primitive and message to PurplePresence

These properties will allow us to add them to the PidginContactList without
changing the status backend.

Testing Done:
Ran the unit tests.

Bugs closed: PIDGIN-17753

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

PROGS = [
    'account_option',
    'account_manager',
    'authorization_request',
    'circular_buffer',
    'contact',
    'contact_info',
    'contact_manager',
    'credential_manager',
    'credential_provider',
    'history_adapter',
    'history_manager',
    'image',
    'keyvaluepair',
    'markup',
    'menu',
    'notification',
    'notification_manager',
    'person',
    'presence',
    'protocol',
    'protocol_action',
    'protocol_xfer',
    'purplepath',
    'queued_output_stream',
    'tags',
    'util',
    'whiteboard_manager',
    'xmlnode',
]

test_ui = static_library(
    'test-ui',
    'test_ui.c',
    'test_ui.h',
    c_args: [
        '-DTEST_DATA_DIR="@0@/data"'.format(meson.current_source_dir()),
        '-DG_LOG_USE_STRUCTURED',
        '-DG_LOG_DOMAIN="Purple-TestUI"',
    ],
    dependencies: [libpurple_dep, glib]
)

testenv.set('XDG_CONFIG_HOME', meson.current_build_dir() / 'config')

foreach prog : PROGS
    e = executable(f'test_@prog@', f'test_@prog@.c',
                   c_args : [
                       '-DTEST_DATA_DIR="@0@/data"'.format(meson.current_source_dir())
                   ],
                   dependencies : [libpurple_dep, glib],
                   link_with: test_ui,
    )
    test(prog, e,
        env: testenv,
    )
endforeach

subdir('avatar')
subdir('sqlite3')

mercurial