summaryrefslogtreecommitdiff
path: root/src/settings/plugins/ifnet/tests/meson.build
blob: 7cd06ef8a3cb31f93a5df9067fcf2367e47e7b22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
test_unit = 'test-ifnet'

test_ifnet_dir = meson.current_source_dir()

cflags = [
  '-DSYSCONFDIR="nonexistent"',
  '-DTEST_IFNET_DIR="@0@"'.format(test_ifnet_dir),
  '-DTEST_SCRATCH_DIR="@0@"'.format(test_ifnet_dir),
  '-DTEST_WPA_SUPPLICANT_CONF="@0@"'.format(join_paths(test_ifnet_dir, 'wpa_supplicant.conf'))
]

exe = executable(
  test_unit,
  test_unit + '.c',
  dependencies: test_core_dep,
  c_args: cflags,
  link_with: libnms_ifnet_core
)

test(test_unit, exe)