summaryrefslogtreecommitdiff
path: root/test/polkitbackend/meson.build
blob: 98ba12009f0568154fb376e42a8c427d11d285c2 (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
test_unit = 'test-polkitbackendjsauthority'

deps = [
  libpolkit_gobject_dep,
  libpolkit_test_helper_dep,
]

c_flags = [
  '-D_POLKIT_COMPILATION',
  '-D_POLKIT_BACKEND_COMPILATION',
]

test_env.set('TOP_BUILD_DIR', build_root)
test_env.set('TOP_SRC_DIR', source_root)

exe = executable(
  test_unit,
  test_unit + '.c',
  include_directories: top_inc,
  dependencies: deps,
  c_args: c_flags,
  link_with: libpolkit_backend,
)

prog = find_program('polkitbackendjsauthoritytest-wrapper.py')

test(
  test_unit,
  prog,
  env: test_env,
  is_parallel: false,
)