[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] branch master updated: HELLO: Fixup missing tests
From: |
gnunet |
Subject: |
[gnunet] branch master updated: HELLO: Fixup missing tests |
Date: |
Wed, 25 Oct 2023 09:54:23 +0200 |
This is an automated email from the git hooks/post-receive script.
martin-schanzenbach pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new 301de32f0 HELLO: Fixup missing tests
301de32f0 is described below
commit 301de32f0f5e0664f5038c745ff044ef91d75630
Author: Martin Schanzenbach <schanzen@gnunet.org>
AuthorDate: Wed Oct 25 09:54:20 2023 +0200
HELLO: Fixup missing tests
---
src/lib/hello/Makefile.am | 24 +-----------------------
src/lib/hello/test_hello-uri.c | 9 +++++----
2 files changed, 6 insertions(+), 27 deletions(-)
diff --git a/src/lib/hello/Makefile.am b/src/lib/hello/Makefile.am
index cbc193a0a..c7b3e4a05 100644
--- a/src/lib/hello/Makefile.am
+++ b/src/lib/hello/Makefile.am
@@ -18,38 +18,16 @@ libgnunethello_la_LDFLAGS = \
-version-info 1:0:1
check_PROGRAMS = \
- test_hello \
- test_hello-uri \
- test_friend_hello \
- test_hello-ng
+ test_hello-uri
if ENABLE_TEST_RUN
AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export
PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset
XDG_CONFIG_HOME;
TESTS = $(check_PROGRAMS)
endif
-test_hello_SOURCES = \
- test_hello.c
-test_hello_LDADD = \
- libgnunethello.la \
- $(top_builddir)/src/lib/util/libgnunetutil.la
-
-test_hello_ng_SOURCES = \
- test_hello-ng.c
-test_hello_ng_LDADD = \
- libgnunethello.la \
- $(top_builddir)/src/lib/util/libgnunetutil.la
-
test_hello_uri_SOURCES = \
test_hello-uri.c
test_hello_uri_LDADD = \
libgnunethello.la \
$(top_builddir)/src/lib/util/libgnunetutil.la \
-lgcrypt
-
-
-test_friend_hello_SOURCES = \
- test_friend_hello.c
-test_friend_hello_LDADD = \
- libgnunethello.la \
- $(top_builddir)/src/lib/util/libgnunetutil.la
diff --git a/src/lib/hello/test_hello-uri.c b/src/lib/hello/test_hello-uri.c
index 1062f446b..bebed671b 100644
--- a/src/lib/hello/test_hello-uri.c
+++ b/src/lib/hello/test_hello-uri.c
@@ -22,6 +22,7 @@
* @brief test for helper library for handling URI-based HELLOs
* @author Christian Grothoff
*/
+#include "gnunet_time_lib.h"
#include "platform.h"
#include "gnunet_signatures.h"
#include "gnunet_hello_uri_lib.h"
@@ -96,13 +97,13 @@ main (int argc,
&priv,
NULL,
&block_size,
- NULL));
+
GNUNET_TIME_UNIT_FOREVER_REL));
GNUNET_assert (GNUNET_NO ==
GNUNET_HELLO_builder_to_block (b,
&priv,
NULL,
&block_size,
- NULL));
+
GNUNET_TIME_UNIT_FOREVER_REL));
GNUNET_assert (0 != block_size);
block = GNUNET_malloc (block_size);
GNUNET_assert (GNUNET_OK ==
@@ -110,7 +111,7 @@ main (int argc,
&priv,
block,
&block_size,
- NULL));
+
GNUNET_TIME_UNIT_FOREVER_REL));
b2 = GNUNET_HELLO_builder_from_block (block,
block_size);
GNUNET_free (block);
@@ -158,7 +159,7 @@ main (int argc,
env = GNUNET_HELLO_builder_to_env (b,
&priv,
- NULL);
+ GNUNET_TIME_UNIT_FOREVER_REL);
b2 = GNUNET_HELLO_builder_from_msg (GNUNET_MQ_env_get_msg (env));
GNUNET_free (env);
GNUNET_assert (NULL != b2);
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnunet] branch master updated: HELLO: Fixup missing tests,
gnunet <=