summaryrefslogtreecommitdiff
path: root/tests/io/vcard/meson.build
blob: 38f2a665f971d5d32461a4e58e7729354e39d1e3 (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
33
io_vcard_files = [
  'minimal',
]

test_deps = [
  gee,
  folks,
  libebook,
  libcontactscore_dep,
]

foreach vcard_name : io_vcard_files
  vcf_file = meson.current_source_dir() / vcard_name + '.vcf'

  # Ideally we'd do this using a preprocessor symbol or something
  vcf_test_env = environment()
  vcf_test_env.append('_VCF_FILE', vcf_file)

  test_sources = [
    contacts_io_sources,
    'test-vcard-'+vcard_name+'-import.vala',
  ]

  test_bin = executable(vcard_name,
    test_sources,
    dependencies: test_deps,
  )

  test(vcard_name, test_bin,
    suite: 'io-vcard',
    env: vcf_test_env,
  )
endforeach