File: meson.build

package info (click to toggle)
librest 0.10.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 856 kB
  • sloc: ansic: 7,856; makefile: 17; xml: 9
file content (33 lines) | stat: -rw-r--r-- 577 bytes parent folder | download
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
test_suites = {
  'rest': [
    'xml',
    'params',
  ],
}

test_deps = [
  glib_dep,
  libsoup_dep,
  librest_dep,
  librest_extras_dep,
  config_dep,
]

test_env = [
  'G_TEST_SRCDIR=@0@'.format(meson.current_source_dir()),
  'G_TEST_BUILDDIR=@0@'.format(meson.current_build_dir()),
]

foreach suite, test_names : test_suites
  foreach name : test_names
    test_bin = executable(name,
      ['@0@.c'.format(name), 'helper/test-server.c'],
      dependencies: test_deps,
    )

    test(name, test_bin,
      suite: suite,
      env: test_env,
    )
  endforeach
endforeach