[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-donau] 01/03: [testing] traits
From: |
gnunet |
Subject: |
[taler-donau] 01/03: [testing] traits |
Date: |
Fri, 12 Jan 2024 17:05:19 +0100 |
This is an automated email from the git hooks/post-receive script.
lukas-matyja pushed a commit to branch master
in repository donau.
commit 2b9be6158086e96e410ff515f03e361afd4086d7
Author: Matyja Lukas Adam <lukas.matyja@students.bfh.ch>
AuthorDate: Fri Jan 12 17:05:36 2024 +0100
[testing] traits
---
src/testing/Makefile.am | 4 +++-
src/testing/testing_api_traits.c | 34 ++++++++++++++++++++++++++++++++++
2 files changed, 37 insertions(+), 1 deletion(-)
diff --git a/src/testing/Makefile.am b/src/testing/Makefile.am
index bdb21b5..4ec4ccf 100644
--- a/src/testing/Makefile.am
+++ b/src/testing/Makefile.am
@@ -20,7 +20,8 @@ libdonautesting_la_LDFLAGS = \
-version-info 0:0:0 \
-no-undefined
libdonautesting_la_SOURCES = \
- test_api_cmd_get_donau.c
+ test_api_cmd_get_donau.c \
+ testing_api_traits.c
AM_TESTS_ENVIRONMENT=export DONAU_PREFIX=$${DONAU_PREFIX:-@libdir@};export
PATH=$${DONAU_PREFIX:-@prefix@}/bin:$$PATH;
@@ -36,6 +37,7 @@ TESTS = \
test_donau_api_cs_SOURCES = \
test_donau_api.c
+
test_donau_api_cs_LDADD = \
libdonautesting.la \
$(top_builddir)/src/lib/libdonau.la \
diff --git a/src/testing/testing_api_traits.c b/src/testing/testing_api_traits.c
new file mode 100644
index 0000000..f175ea5
--- /dev/null
+++ b/src/testing/testing_api_traits.c
@@ -0,0 +1,34 @@
+/*
+ This file is part of TALER
+ Copyright (C) 2024 Taler Systems SA
+
+ TALER is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as
+ published by the Free Software Foundation; either version 3, or
+ (at your option) any later version.
+
+ TALER 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 General Public License for more details.
+
+ You should have received a copy of the GNU General Public
+ License along with TALER; see the file COPYING. If not, see
+ <http://www.gnu.org/licenses/>
+*/
+/**
+ * @file testing/testing_api_traits.c
+ * @brief loop for trait resolution
+ * @author Christian Grothoff
+ * @author Marcello Stanisci
+ */
+#include "taler/platform.h"
+#include "donau_testing_lib.h"
+
+
+DONAU_TESTING_SIMPLE_TRAITS (TALER_TESTING_MAKE_IMPL_SIMPLE_TRAIT)
+
+DONAU_TESTING_INDEXED_TRAITS (TALER_TESTING_MAKE_IMPL_INDEXED_TRAIT)
+
+
+/* end of testing_api_traits.c */
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.