[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-donau] branch master updated: [header] testing
From: |
gnunet |
Subject: |
[taler-donau] branch master updated: [header] testing |
Date: |
Tue, 09 Jan 2024 10:08:25 +0100 |
This is an automated email from the git hooks/post-receive script.
lukas-matyja pushed a commit to branch master
in repository donau.
The following commit(s) were added to refs/heads/master by this push:
new a953722 [header] testing
a953722 is described below
commit a953722238bb97470deb674355e73fe629a772af
Author: Matyja Lukas Adam <lukas.matyja@students.bfh.ch>
AuthorDate: Tue Jan 9 10:09:17 2024 +0100
[header] testing
---
src/include/Makefile.am | 4 ++-
src/include/donau_testing_lib.h | 74 +++++++++++++++++++++++++++++++++++++++++
2 files changed, 77 insertions(+), 1 deletion(-)
diff --git a/src/include/Makefile.am b/src/include/Makefile.am
index 426bd74..caf16d5 100644
--- a/src/include/Makefile.am
+++ b/src/include/Makefile.am
@@ -5,5 +5,7 @@ talerinclude_HEADERS = \
donau_service.h \
donau_signatures.h \
donaudb_lib.h \
- donaudb_plugin.h
+ donaudb_plugin.h \
+ donau_testing_lib.h \
+ donau_json_lib.h
diff --git a/src/include/donau_testing_lib.h b/src/include/donau_testing_lib.h
new file mode 100644
index 0000000..cffb6a8
--- /dev/null
+++ b/src/include/donau_testing_lib.h
@@ -0,0 +1,74 @@
+/*
+ This file is part of TALER
+ (C) 2018-2023 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 include/donau_testing_lib.h
+ * @brief API for writing an interpreter to test Taler components
+ * @author Christian Grothoff <christian@grothoff.org>
+ * @author Marcello Stanisci
+ *
+ */
+#ifndef TALER_TESTING_LIB_H
+#define TALER_TESTING_LIB_H
+
+#include "taler/taler_util.h"
+#include <microhttpd.h>
+#include <gnunet/gnunet_json_lib.h>
+#include "taler/taler_json_lib.h"
+#include "donau_service.h"
+#include "taler/taler_testing_lib.h"
+
+
+
+/**
+ * Connects to the exchange.
+ *
+ * @param label command label
+ * @param cfg configuration to use
+ * @param last_keys_ref reference to command with prior /keys response, NULL
for none
+ * @param wait_for_keys block until we got /keys
+ * @param load_private_key obtain private key from file indicated in @a cfg
+ * @return the command.
+ */
+struct TALER_TESTING_Command
+TALER_TESTING_cmd_get_donau (
+ const char *label,
+ const struct GNUNET_CONFIGURATION_Handle *cfg,
+ //const char *last_keys_ref,
+ bool wait_for_keys,
+ bool load_private_key);
+
+ /**
+ * Convenience function to run a test.
+ *
+ * @param argv command-line arguments given
+ * @param loglevel log level to use
+ * @param cfg_file configuration file to use
+ * @param[in,out] cred global credentials to initialize
+ * @param main_cb main test function to run
+ * @param main_cb_cls closure for @a main_cb
+ * @return 0 on success, 77 on setup trouble, non-zero process status code
otherwise
+ */
+int
+DONAU_TESTING_main (char *const *argv,
+ const char *loglevel,
+ const char *cfg_file,
+ struct TALER_TESTING_Credentials *cred,
+ TALER_TESTING_Main main_cb,
+ void *main_cb_cls);
\ No newline at end of file
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-donau] branch master updated: [header] testing,
gnunet <=