aboutsummaryrefslogtreecommitdiff
path: root/src/cli/gns/meson.build
blob: e770d104c27f9e3bd1b723ab83a37895e12d0c02 (plain) (blame)
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
configure_file(input : 'gnunet-gns-proxy-setup-ca.in',
  output : 'gnunet-gns-proxy-setup-ca',
  configuration : cdata,
  install: true,
  install_dir: get_option('bindir'))

install_data('gnunet-gns-proxy-ca.template',
  install_dir: get_option('datadir')/'gnunet')

executable ('gnunet-gns',
  'gnunet-gns.c',
  dependencies: [libgnunetgns_dep,
    libgnunetgnsrecord_dep,
    idn_dep,
    libgnunetutil_dep],
  include_directories: [incdir, configuration_inc],
  install: true,
  install_dir: get_option('bindir'))

testgns = [
  'test_dns2gns',
  'test_gns_at_lookup',
  'test_gns_caa_lookup',
  'test_gns_config_lookup',
  'test_gns_delegated_lookup',
  'test_gns_dht_lookup',
  'test_gns_gns2dns_cname_lookup',
  'test_gns_gns2dns_lookup',
  'test_gns_gns2dns_zkey_lookup',
  'test_gns_ipv6_lookup',
  'test_gns_lookup',
  'test_gns_mx_lookup',
  'test_gns_quickupdate',
  'test_gns_redirect_lookup',
  'test_gns_rel_expiration',
  'test_gns_revocation',
  'test_gns_soa_lookup',
  'test_gns_txt_lookup',
  'test_gns_zkey_lookup',
  'test_gns_sbox_simple',
  'test_gns_sbox',
  'test_gns_box_sbox',
  ]

testconfigs = [
  'test_dns2gns.conf',
  'test_gns_defaults.conf',
  'test_gns_lookup.conf',
  'test_gns_lookup_peer1.conf',
  'test_gns_lookup_peer2.conf',
  'test_gns_simple_lookup.conf'
  ]

foreach f : testconfigs
  configure_file(input: f, output: f, copy: true)
endforeach

foreach t : testgns

  test_filename = t + '.sh'
  test_file = configure_file(input : test_filename,
    output : test_filename,
    copy: true)

  test(t, test_file, suite: 'gns', workdir: meson.current_build_dir(), is_parallel: false)
endforeach