From a3af7211c33d6f54d3b72c37c1abe28dad89667f Mon Sep 17 00:00:00 2001 From: Tristan Schwieren Date: Wed, 25 May 2022 14:07:03 +0200 Subject: - init did test --- src/reclaim/Makefile.am | 12 ++++++++++-- src/reclaim/test_did_helper.c | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+), 2 deletions(-) create mode 100644 src/reclaim/test_did_helper.c (limited to 'src/reclaim') diff --git a/src/reclaim/Makefile.am b/src/reclaim/Makefile.am index 7b73f35f2..912f4a92f 100644 --- a/src/reclaim/Makefile.am +++ b/src/reclaim/Makefile.am @@ -206,6 +206,11 @@ test_w3c_ed25519_2020_SOURCES = \ test_w3c_ed25519_2020_LDADD = \ $(top_builddir)/src/util/libgnunetutil.la +test_did_helper_SOURCES = \ + test_did_helper.c +test_did_helper_LDADD = \ + $(top_builddir)/src/util/libgnunetutil.la + check_SCRIPTS = \ test_reclaim_attribute.sh \ test_reclaim_issue.sh \ @@ -213,9 +218,12 @@ check_SCRIPTS = \ check_PROGRAMS = \ test_reclaim_attribute \ - test_w3c_ed25519_2020 + test_w3c_ed25519_2020 \ + test_did_helper 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_SCRIPTS) + TESTS = \ + $(check_SCRIPTS) \ + $(check_PROGRAMS) endif diff --git a/src/reclaim/test_did_helper.c b/src/reclaim/test_did_helper.c new file mode 100644 index 000000000..2c3ce0dce --- /dev/null +++ b/src/reclaim/test_did_helper.c @@ -0,0 +1,35 @@ +/* + This file is part of GNUnet + Copyright (C) 2010-2015 GNUnet e.V. + + GNUnet is free software: you can redistribute it and/or modify it + under the terms of the GNU Affero General Public License as published + by the Free Software Foundation, either version 3 of the License, + or (at your option) any later version. + + GNUnet is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . + + SPDX-License-Identifier: AGPL3.0-or-later + */ + +/** + * @file reclaim/test_did_helper.c + * @brief Unit tests for the helper library for DID related functions + * @author Tristan Schwieren + */ + +#include "platform.h" +#include "gnunet_common.h" + +int +main() +{ + GNUNET_assert(0 == 1); + return 0; +} \ No newline at end of file -- cgit v1.2.3