summaryrefslogtreecommitdiff
path: root/src/tests/config/meson.build
blob: fb40d9a97115341c72c3bdda11a6d14ff54aef4a (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(
  'config/' + test_unit,
  test_script,
  args: test_args + [exe.full_path()]
)