summaryrefslogtreecommitdiff
path: root/src/tests/config/meson.build
blob: 6f63c8a1508e58708abd465f239ffc1cf3ae97b5 (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
test_unit = 'test-config'

sources = files(
  'nm-test-device.c',
  'test-config.c'
)

test_config_dir = meson.current_source_dir()

cflags = [
  '-DSRCDIR="@0@"'.format(test_config_dir),
  '-DBUILDDIR="@0@"'.format(test_config_dir)
]

exe = executable(
  test_unit,
  sources,
  dependencies: test_nm_dep,
  c_args: cflags
)

test(
  test_unit,
  test_script,
  args: test_args + [exe.full_path()]
)