summaryrefslogtreecommitdiff
path: root/tests/meson.build
blob: 471fa733c57f1a8185baba94e1b327ffe6214727 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# meson.build
#
# Author: Victor Toso <me@victortoso.com>
#
# Copyright (C) 2018 Grilo Project

tests = [
    'autoptr',
    'media',
    'registry',
    'operations',
]

test_link_with = [libgrl]
test_deps = [libgrl_dep]

if enable_grlnet
    tests += ['lib-net']
    test_link_with += libgrlnet
    test_deps += libgrlnet_dep
endif

foreach t: tests
    source = t + '.c'
    exe = executable(t,
        source,
        install: false,
        link_with: test_link_with,
        dependencies: test_deps)
    test(t, exe, timeout:10)
endforeach