aboutsummaryrefslogtreecommitdiff
path: root/libqcdm/tests/meson.build
blob: e2a3a85841f849fb415dd51033ec9b839a57364b (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
32
33
34
35
36
37
38
39
40
41
42
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2021 Iñigo Martinez <inigomartinez@gmail.com>

test_units = [
  ['ipv6pref', files('ipv6pref.c'), false],
  ['modepref', files('modepref.c'), false],
  ['reset', files('reset.c'), false],
]

sources = files(
  'test-qcdm.c',
  'test-qcdm-com.c',
  'test-qcdm-crc.c',
  'test-qcdm-escaping.c',
  'test-qcdm-result.c',
  'test-qcdm-utils.c',
)

test_units += [['test-qcdm', sources, true]]

incs = [
  top_inc,
  libqcdm_inc,
]

deps = [
  glib_deps,
  libqcdm_dep,
]

foreach test_unit: test_units
  exe = executable(
    test_unit[0],
    test_unit[1],
    include_directories: incs,
    dependencies: deps,
  )

  if test_unit[2]
    test(test_unit[0], exe)
  endif
endforeach