File: meson.build

package info (click to toggle)
libssc 0.4.2-2
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 1,788 kB
  • sloc: ansic: 3,714; python: 707; makefile: 10
file content (95 lines) | stat: -rw-r--r-- 2,609 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
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
family = host_machine.cpu_family()
cpu = host_machine.cpu()

if not (family == 'arm' and cpu != 'arm64')
  add_test_setup(
    'mocking',
    exe_wrapper: '../mocking/ssc-server',
    is_default: true
  )
  
  test(
    'tests-general',
    executable('tests-general', 'general.c', link_with: libssc, dependencies: deps),
    env: [
      'G_TEST_SRCDIR=@0@'.format(meson.current_source_dir()),
      'G_TEST_BUILDDIR=@0@'.format(meson.current_build_dir()),
    ],
    protocol: 'exitcode',
    suite: 'service',
    is_parallel: false,
  )
  
  test(
    'tests-proximity',
    executable('tests-proximity', 'proximity.c', link_with: libssc, dependencies: deps),
    env: [
      'G_TEST_SRCDIR=@0@'.format(meson.current_source_dir()),
      'G_TEST_BUILDDIR=@0@'.format(meson.current_build_dir()),
    ],
    protocol: 'exitcode',
    suite: 'service',
    is_parallel: false,
  )
  
  test(
    'tests-light',
    executable('tests-light', 'light.c', link_with: libssc, dependencies: deps),
    env: [
      'G_TEST_SRCDIR=@0@'.format(meson.current_source_dir()),
      'G_TEST_BUILDDIR=@0@'.format(meson.current_build_dir()),
    ],
    protocol: 'exitcode',
    suite: 'service',
    is_parallel: false,
  )
  
  test(
    'tests-accelerometer',
    executable('tests-accelerometer', 'accelerometer.c', link_with: libssc, dependencies: deps),
    env: [
      'G_TEST_SRCDIR=@0@'.format(meson.current_source_dir()),
      'G_TEST_BUILDDIR=@0@'.format(meson.current_build_dir()),
    ],
    protocol: 'exitcode',
    suite: 'service',
    is_parallel: false,
  )
  
  test(
    'tests-compass',
    executable('tests-compass', 'compass.c', link_with: libssc, dependencies: deps),
    env: [
      'G_TEST_SRCDIR=@0@'.format(meson.current_source_dir()),
      'G_TEST_BUILDDIR=@0@'.format(meson.current_build_dir()),
    ],
    protocol: 'exitcode',
    suite: 'service',
    is_parallel: false,
  )
  
  test(
    'tests-magnetometer',
    executable('tests-magnetometer', 'magnetometer.c', link_with: libssc, dependencies: deps),
    env: [
      'G_TEST_SRCDIR=@0@'.format(meson.current_source_dir()),
      'G_TEST_BUILDDIR=@0@'.format(meson.current_build_dir()),
    ],
    protocol: 'exitcode',
    suite: 'service',
    is_parallel: false,
  )
  
  test(
    'tests-no-service',
    executable('tests-no-service', 'no-service.c', link_with: libssc, dependencies: deps),
    env: [
      'G_TEST_SRCDIR=@0@'.format(meson.current_source_dir()),
      'G_TEST_BUILDDIR=@0@'.format(meson.current_build_dir()),
    ],
    protocol: 'exitcode',
    suite: 'no-service',
    is_parallel: false,
  )

endif