commit 2b9be6158086e96e410ff515f03e361afd4086d7
parent 3de06e7344521e2a238eff5cc99554813b13515b
Author: Matyja Lukas Adam <lukas.matyja@students.bfh.ch>
Date: Fri, 12 Jan 2024 17:05:36 +0100
[testing] traits
Diffstat:
2 files changed, 37 insertions(+), 1 deletion(-)
diff --git 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
@@ -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 */