libpurple/tests/meson.build

Thu, 31 Jul 2025 20:57:19 -0500

author
Gary Kramlich <grim@reaperworld.com>
date
Thu, 31 Jul 2025 20:57:19 -0500
changeset 43299
9454cc5cd5fb
parent 43293
f5d33dbc18a9
child 43300
0604c6839974
permissions
-rw-r--r--

Remove Purple.CircularBuffer

This was primarily used for file transfer, which should be using GIOStreams
instead.

Testing Done:
Called in the turtles.

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

PROGS = [
    'account',
    'account_option',
    'account_manager',
    'attachment',
    'attachments',
    'authorization_request',
    'badge',
    'badge_manager',
    'badges',
    'channel_join_details',
    'create_conversation_details',
    'command',
    'commands',
    'command_manager',
    'contact',
    'contact_info',
    'contact_manager',
    'conversation',
    'conversation_manager',
    'conversation_member',
    'conversation_members',
    'credential_manager',
    'credential_provider',
    'file_transfer',
    'file_transfer_manager',
    'history_adapter',
    'history_manager',
    'idle_manager',
    'image',
    'keyvaluepair',
    'markup',
    'menu',
    'message',
    'messages',
    'notification',
    'notification_add_contact',
    'notification_authorization_request',
    'notification_link',
    'notification_manager',
    'person',
    'presence',
    'presence_manager',
    'protocol',
    'protocol_contacts',
    'protocol_conversation',
    'protocol_file_transfer',
    'protocol_manager',
    'protocol_roster',
    'purplepath',
    'request_field',
    'request_group',
    'request_page',
    'saved_presence',
    'scheduled_task',
    'scheduler',
    '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')
testenv.set('G_ENABLE_DIAGNOSTIC', '1')

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')

mercurial