aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Schwieren <tristan.schwieren@tum.de>2022-05-25 14:07:03 +0200
committerTristan Schwieren <tristan.schwieren@tum.de>2022-05-25 14:07:03 +0200
commita3af7211c33d6f54d3b72c37c1abe28dad89667f (patch)
tree698c8c9546273f6116057d9be46a54dcb90f2a11
parent87e8f46b7d2eefe77c5ee43e554184b1c57a36e6 (diff)
downloadgnunet-a3af7211c33d6f54d3b72c37c1abe28dad89667f.tar.gz
gnunet-a3af7211c33d6f54d3b72c37c1abe28dad89667f.zip
- init did test
-rw-r--r--src/reclaim/Makefile.am12
-rw-r--r--src/reclaim/test_did_helper.c35
2 files changed, 45 insertions, 2 deletions
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 = \
206test_w3c_ed25519_2020_LDADD = \ 206test_w3c_ed25519_2020_LDADD = \
207 $(top_builddir)/src/util/libgnunetutil.la 207 $(top_builddir)/src/util/libgnunetutil.la
208 208
209test_did_helper_SOURCES = \
210 test_did_helper.c
211test_did_helper_LDADD = \
212 $(top_builddir)/src/util/libgnunetutil.la
213
209check_SCRIPTS = \ 214check_SCRIPTS = \
210 test_reclaim_attribute.sh \ 215 test_reclaim_attribute.sh \
211 test_reclaim_issue.sh \ 216 test_reclaim_issue.sh \
@@ -213,9 +218,12 @@ check_SCRIPTS = \
213 218
214check_PROGRAMS = \ 219check_PROGRAMS = \
215 test_reclaim_attribute \ 220 test_reclaim_attribute \
216 test_w3c_ed25519_2020 221 test_w3c_ed25519_2020 \
222 test_did_helper
217 223
218if ENABLE_TEST_RUN 224if ENABLE_TEST_RUN
219 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME; 225 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
220 TESTS = $(check_SCRIPTS) 226 TESTS = \
227 $(check_SCRIPTS) \
228 $(check_PROGRAMS)
221endif 229endif
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 @@
1/*
2 This file is part of GNUnet
3 Copyright (C) 2010-2015 GNUnet e.V.
4
5 GNUnet is free software: you can redistribute it and/or modify it
6 under the terms of the GNU Affero General Public License as published
7 by the Free Software Foundation, either version 3 of the License,
8 or (at your option) any later version.
9
10 GNUnet is distributed in the hope that it will be useful, but
11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Affero General Public License for more details.
14
15 You should have received a copy of the GNU Affero General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>.
17
18 SPDX-License-Identifier: AGPL3.0-or-later
19 */
20
21/**
22 * @file reclaim/test_did_helper.c
23 * @brief Unit tests for the helper library for DID related functions
24 * @author Tristan Schwieren
25 */
26
27#include "platform.h"
28#include "gnunet_common.h"
29
30int
31main()
32{
33 GNUNET_assert(0 == 1);
34 return 0;
35} \ No newline at end of file