libpurple/tests/meson.build

Sun, 14 Apr 2024 01:14:59 -0500

author
Gary Kramlich <grim@reaperworld.com>
date
Sun, 14 Apr 2024 01:14:59 -0500
changeset 42725
ceb13f1de2d2
parent 42686
b9ea4504f1ff
child 42754
2ba47ec94b05
permissions
-rw-r--r--

Remove PurpleBuddy

PurpleContactInfo was created long ago to replace this, it is now its time!

Testing Done:
Ran the turtles.

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

PROGS = [
    'account_option',
    'account_manager',
    'authorization_request',
    'authorization_request_notification',
    'channel_join_details',
    'circular_buffer',
    'create_conversation_details',
    'contact',
    'contact_info',
    'contact_manager',
    'conversation',
    'conversation_manager',
    'conversation_member',
    'credential_manager',
    'credential_provider',
    'file_transfer',
    'file_transfer_manager',
    'history_adapter',
    'history_manager',
    'idle_manager',
    'image',
    'keyvaluepair',
    'markup',
    'menu',
    'message',
    'notification',
    'notification_manager',
    'person',
    'presence',
    'presence_manager',
    'protocol',
    'protocol_action',
    'protocol_contacts',
    'protocol_conversation',
    'protocol_file_transfer',
    'protocol_roster',
    'purplepath',
    'request_field',
    'request_group',
    'request_page',
    'saved_presence',
    'str',
    '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()),
                       '-DTEST_CACHE_DIR="@0@/cache"'.format(meson.current_build_dir()),
                   ],
                   dependencies : [libpurple_dep, glib],
                   link_with: test_ui,
    )
    test(prog, e,
        env: testenv,
    )
endforeach

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

mercurial