1# in order from least to most complex
2bluez_tests = [
3  'device-properties',
4  'individual-retrieval',
5  'vcard-parsing',
6]
7
8bluez_tests_deps = [
9  common_test_deps,
10  libfolks_internal_dep,
11  libebook_dep,
12  libedataserver_dep,
13  libbluez_test_dep,
14  bluez_backend_dep,
15]
16
17foreach _test: bluez_tests
18  test_install_dir = installed_tests_dir / bluez_backend_name
19
20  test_executable = executable('bluez-'+_test,
21    '@0@.vala'.format(_test),
22    dependencies: bluez_tests_deps,
23    vala_args: common_test_vala_flags,
24    install: installed_tests_enabled,
25    install_dir: test_install_dir,
26  )
27
28  test(_test, test_executable,
29    suite: 'BluezBackend',
30    env: common_test_environment,
31  )
32
33  if installed_tests_enabled
34    configure_file(
35      input: installed_test_template_in,
36      output: _test + '.test',
37      configuration: {
38        'libexecdir': folks_libexecdir,
39        'installed_tests_dir': test_install_dir,
40        'program': _test,
41      },
42      install_dir: installed_tests_meta_dir / bluez_backend_name
43    )
44  endif
45endforeach
46