libpurple/tests/meson.build

Mon, 28 May 2018 15:41:02 -0500

author
Mike Ruprecht <cmaiku@gmail.com>
date
Mon, 28 May 2018 15:41:02 -0500
changeset 39166
7119cb1afdb8
parent 38937
55c8e8a951d7
child 39354
db17ba548304
permissions
-rw-r--r--

tests: Add tests for PurpleQueuedOutputStream

PROGS = [
    'attention_type',
    'image',
    'protocol_attention',
    'protocol_xfer',
    'queued_output_stream',
    'smiley',
    'smiley_list',
    'trie',
    'util',
    '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())
    ],
    dependencies: [libpurple_dep, glib, dbus, dbus_glib]
)

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

mercurial