File: meson.build

package info (click to toggle)
rhythmbox 3.4.9-4
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 27,376 kB
  • sloc: ansic: 114,861; python: 4,941; xml: 730; javascript: 350; perl: 307; sh: 84; makefile: 43
file content (66 lines) | stat: -rw-r--r-- 2,010 bytes parent folder | download | duplicates (3)
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
test_env = environment()
test_env.set('G_TEST_SRCDIR', meson.current_source_dir())
test_env.set('G_TEST_BUILDDIR', meson.current_build_dir())
test_env.set('GSETTINGS_SCHEMA_DIR', join_paths(meson.project_build_root(), 'data'))
test_env.set('GSETTINGS_BACKEND', 'memory')
test_env.set('CK_DEFAULT_TIMEOUT', '0')

test('test-rhythmdb',
  executable('test-rhythmdb',
    ['test-rhythmdb.c', 'test-utils.c'],
    dependencies: [rhythmbox_core_dep, check],
    c_args: ['-DTEST_DIR="@0@"'.format(meson.current_source_dir())]),
  depends: gschemas_compiled,
  env: test_env,
)

test('test-rhythmdb-query-model',
  executable('test-rhythmdb-query-model',
    ['test-rhythmdb-query-model.c', 'test-utils.c'],
    dependencies: [rhythmbox_core_dep, check]),
  depends: gschemas_compiled,
  env: test_env,
)

test('test-rhythmdb-property-model',
  executable('test-rhythmdb-property-model',
    ['test-rhythmdb-property-model.c', 'test-utils.c'],
    dependencies: [rhythmbox_core_dep, check]),
  depends: gschemas_compiled,
  env: test_env,
)

test('test-file-helpers',
  executable('test-file-helpers',
    ['test-file-helpers.c', 'test-utils.c'],
    dependencies: [rhythmbox_core_dep, check]),
  env: test_env,
)

test('test-rb-lib',
  executable('test-rb-lib',
    ['test-rb-lib.c', 'test-utils.c'],
    dependencies: [rhythmbox_core_dep, check]),
  env: test_env,
)

test('test-audioscrobbler',
  executable('test-audioscrobbler',
    ['test-audioscrobbler.c', 'test-utils.c'],
    dependencies: [rhythmbox_core_dep, audioscrobbler_test_dep, check]),
  env: test_env,
)

test_widgets_resources = gnome.compile_resources('test-widgets-resources', 'test-widgets.gresource.xml',
  source_dir: ['../data'])
test('test-widgets',
  executable('test-widgets',
    ['test-widgets.c', 'test-utils.c', test_widgets_resources],
    dependencies: [rhythmbox_core_dep, check]),
  depends: gschemas_compiled,
  env: test_env,
)

executable('bench-rhythmdb-load',
  'bench-rhythmdb-load.c',
  dependencies: [rhythmbox_core_dep])