From 17edb09f384689da5923689dfe4b6d071797091c Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 11 Nov 2018 16:45:09 +0100 Subject: extend testing logic to setup handle for the auditor --- src/include/taler_testing_lib.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'src/include/taler_testing_lib.h') diff --git a/src/include/taler_testing_lib.h b/src/include/taler_testing_lib.h index cbc28f535..9ea10f7e7 100644 --- a/src/include/taler_testing_lib.h +++ b/src/include/taler_testing_lib.h @@ -280,6 +280,11 @@ struct TALER_TESTING_Interpreter */ struct GNUNET_CURL_Context *ctx; + /** + * Our configuration. + */ + const struct GNUNET_CONFIGURATION_Handle *cfg; + /** * Context for running the CURL event loop. */ @@ -296,6 +301,16 @@ struct TALER_TESTING_Interpreter */ struct GNUNET_SCHEDULER_Task *timeout_task; + /** + * Function to call for cleanup at the end. Can be NULL. + */ + GNUNET_SCHEDULER_TaskCallback final_cleanup_cb; + + /** + * Closure for #final_cleanup_cb(). + */ + void *final_cleanup_cb_cls; + /** * Instruction pointer. Tells #interpreter_run() which * instruction to run next. Need (signed) int because @@ -314,6 +329,13 @@ struct TALER_TESTING_Interpreter */ struct TALER_EXCHANGE_Handle *exchange; + /** + * Handle to the auditor. NULL unless specifically initialized + * as part of libtalertestingauditor's + * #TALER_TESTING_AUDITOR_main_wrapper(). + */ + struct TALER_AUDITOR_Handle *auditor; + /** * Handle to exchange process; some commands need it * to send signals. E.g. to trigger the key state reload. @@ -333,6 +355,12 @@ struct TALER_TESTING_Interpreter */ int working; + /** + * Is the auditor running (#GNUNET_YES) or waiting + * for /version (#GNUNET_NO)? + */ + int auditor_working; + /** * How often have we gotten a /keys response so far? */ -- cgit v1.2.3