gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnunet] 04/04: meson: add gns tests; readd gns tests to automake


From: gnunet
Subject: [gnunet] 04/04: meson: add gns tests; readd gns tests to automake
Date: Mon, 16 Oct 2023 21:41:05 +0200

This is an automated email from the git hooks/post-receive script.

martin-schanzenbach pushed a commit to branch master
in repository gnunet.

commit 1e97f7f28d6a2c2ef8e4a582f15ad6a0217e9dc8
Author: Martin Schanzenbach <schanzen@gnunet.org>
AuthorDate: Mon Oct 16 21:40:55 2023 +0200

    meson: add gns tests; readd gns tests to automake
---
 src/gns/Makefile.am | 38 +++++++++++++++++++-------------------
 src/gns/meson.build | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 67 insertions(+), 19 deletions(-)

diff --git a/src/gns/Makefile.am b/src/gns/Makefile.am
index 8fcd3c7c0..8b2c17ef4 100644
--- a/src/gns/Makefile.am
+++ b/src/gns/Makefile.am
@@ -240,30 +240,30 @@ check_PROGRAMS = \
 endif
 
 check_SCRIPTS = 
-  # test_gns_lookup.sh \
-  # test_gns_config_lookup.sh \
-  # test_gns_ipv6_lookup.sh\
-  # test_gns_txt_lookup.sh\
-  # test_gns_caa_lookup.sh\
-  # test_gns_mx_lookup.sh \
-  # test_gns_gns2dns_lookup.sh \
-  # test_gns_gns2dns_zkey_lookup.sh \
-  # test_gns_gns2dns_cname_lookup.sh \
-  # test_gns_dht_lookup.sh\
-  # test_gns_delegated_lookup.sh \
-  # test_gns_at_lookup.sh\
-  # test_gns_zkey_lookup.sh\
-  # test_gns_rel_expiration.sh\
-  #test_gns_soa_lookup.sh\
-  #test_gns_revocation.sh\
-  #test_gns_redirect_lookup.sh
+   test_gns_lookup.sh \
+   test_gns_config_lookup.sh \
+   test_gns_ipv6_lookup.sh\
+   test_gns_txt_lookup.sh\
+   test_gns_caa_lookup.sh\
+   test_gns_mx_lookup.sh \
+   test_gns_gns2dns_lookup.sh \
+   test_gns_gns2dns_zkey_lookup.sh \
+   test_gns_gns2dns_cname_lookup.sh \
+   test_gns_dht_lookup.sh\
+   test_gns_delegated_lookup.sh \
+   test_gns_at_lookup.sh\
+   test_gns_zkey_lookup.sh\
+   test_gns_rel_expiration.sh\
+   test_gns_soa_lookup.sh\
+   test_gns_revocation.sh\
+   test_gns_redirect_lookup.sh
 
 if HAVE_GNUTLS_CURL
 check_SCRIPTS += \
-  #test_proxy.sh
+  test_proxy.sh
 endif
 check_SCRIPTS += \
-  #test_plugin_rest_gns.sh
+  test_plugin_rest_gns.sh
 
 EXTRA_DIST = \
   test_gns_defaults.conf \
diff --git a/src/gns/meson.build b/src/gns/meson.build
index 6e001cf8b..b82694026 100644
--- a/src/gns/meson.build
+++ b/src/gns/meson.build
@@ -160,3 +160,51 @@ executable ('gnunet-dns2gns',
 if have_nss
   subdir('nss')
 endif
+
+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_multiple_record_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_plugin_rest_gns',
+]
+
+testconfigs = [
+  'test_dns2gns.conf',
+  'test_gns_defaults.conf',
+  'test_gns_lookup.conf',
+  'test_gns_lookup_peer1.conf',
+  'test_gns_lookup_peer2.conf',
+  'test_gns_proxy.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

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]