donau

Donation authority for GNU Taler (experimental)
Log | Files | Refs | Submodules | README | LICENSE

commit 2d39996e24f220d2376580db98e3f0f91a6363c4
parent e89bd765d1b37cf72abce161d174fca7325a0679
Author: Matyja Lukas Adam <lukas.matyja@students.bfh.ch>
Date:   Fri, 12 Jan 2024 17:12:35 +0100

[testing] traits

Diffstat:
Msrc/Makefile.am | 2+-
Msrc/include/donau_testing_lib.h | 12+++---------
Msrc/testing/test_api_cmd_get_donau.c | 2+-
3 files changed, 5 insertions(+), 11 deletions(-)

diff --git a/src/Makefile.am b/src/Makefile.am @@ -20,4 +20,4 @@ SUBDIRS = \ donau \ lib \ donau-tools \ - # testing + testing diff --git a/src/include/donau_testing_lib.h b/src/include/donau_testing_lib.h @@ -22,17 +22,14 @@ * @brief API for writing an interpreter to test Taler components * @author Christian Grothoff <christian@grothoff.org> * @author Marcello Stanisci + * @author Lukas Matyja * */ #ifndef DONAU_TESTING_LIB_H #define DONAU_TESTING_LIB_H -#include "taler/taler_util.h" -#include <microhttpd.h> -#include <gnunet/gnunet_json_lib.h> -#include "taler/taler_json_lib.h" +#include <taler/taler_testing_lib.h> #include "donau_service.h" -#include "taler/taler_testing_lib.h" @@ -82,8 +79,7 @@ DONAU_TESTING_main (char *const *argv, */ #define DONAU_TESTING_SIMPLE_TRAITS(op) \ op (donau_url, const char) \ - op (keys, struct TALER_EXCHANGE_Keys) \ - op (process, struct GNUNET_OS_Process *) + op (donau_keys, struct DONAU_Keys) /** @@ -91,11 +87,9 @@ DONAU_TESTING_main (char *const *argv, */ #define DONAU_TESTING_INDEXED_TRAITS(op) \ op (donation_unit_pub, const struct DONAU_DonationUnitInformation) \ - op (amounts, const struct TALER_Amount) \ op (donau_pub, const struct TALER_ExchangePublicKeyP) DONAU_TESTING_SIMPLE_TRAITS (TALER_TESTING_MAKE_DECL_SIMPLE_TRAIT) - DONAU_TESTING_INDEXED_TRAITS (TALER_TESTING_MAKE_DECL_INDEXED_TRAIT) #endif \ No newline at end of file diff --git a/src/testing/test_api_cmd_get_donau.c b/src/testing/test_api_cmd_get_donau.c @@ -25,7 +25,7 @@ #include "taler/platform.h" #include "taler/taler_json_lib.h" #include <gnunet/gnunet_curl_lib.h> -#include "taler/taler_testing_lib.h" +#include <taler/taler_testing_lib.h> #include "donau_testing_lib.h" #include "donau_service.h"