summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-12-11 23:48:21 +0100
committerChristian Grothoff <christian@grothoff.org>2020-12-11 23:48:21 +0100
commitbff2a8b7a3c21ecdc5f522a89f62e85fd8ba9d78 (patch)
tree8e9dff8c7b40699e89fc154800a8b85abf7b7b3f
parent219e4be1e65ca30eec5546679161e59d5087d65f (diff)
downloadsync-bff2a8b7a3c21ecdc5f522a89f62e85fd8ba9d78.tar.gz
sync-bff2a8b7a3c21ecdc5f522a89f62e85fd8ba9d78.tar.bz2
sync-bff2a8b7a3c21ecdc5f522a89f62e85fd8ba9d78.zip
add setup steps to tests
-rw-r--r--src/sync/sync-httpd.c3
-rw-r--r--src/testing/.gitignore5
-rw-r--r--src/testing/test_sync_api.c13
3 files changed, 19 insertions, 2 deletions
diff --git a/src/sync/sync-httpd.c b/src/sync/sync-httpd.c
index f6d7693..87cf07a 100644
--- a/src/sync/sync-httpd.c
+++ b/src/sync/sync-httpd.c
@@ -325,8 +325,7 @@ url_handler (void *cls,
/**
- * Shutdown task (magically invoked when the application is being
- * quit)
+ * Shutdown task. Invoked when the application is being terminated.
*
* @param cls NULL
*/
diff --git a/src/testing/.gitignore b/src/testing/.gitignore
index b3ffea1..c306e26 100644
--- a/src/testing/.gitignore
+++ b/src/testing/.gitignore
@@ -1,3 +1,8 @@
test_sync_api
auditor.in
test_sync_api_home/.local/share/taler/exchange/live-keys/
+test_sync_api_home/.local/share/taler/crypto-eddsa/
+test_sync_api_home/.local/share/taler/crypto-rsa/
+test_sync_api_home/.local/share/taler/exchange/offline-keys/secm_tofus.priv
+test_sync_api_home/.local/share/taler/taler-helper-crypto-eddsa/
+test_sync_api_home/.local/share/taler/taler-helper-crypto-rsa/
diff --git a/src/testing/test_sync_api.c b/src/testing/test_sync_api.c
index 8c38a44..0bfc940 100644
--- a/src/testing/test_sync_api.c
+++ b/src/testing/test_sync_api.c
@@ -152,6 +152,19 @@ run (void *cls,
struct TALER_TESTING_Interpreter *is)
{
struct TALER_TESTING_Command commands[] = {
+ /* general setup */
+ TALER_TESTING_cmd_auditor_add ("add-auditor-OK",
+ MHD_HTTP_NO_CONTENT,
+ false),
+ TALER_TESTING_cmd_wire_add ("add-wire-account",
+ "payto://x-taler-bank/localhost/2",
+ MHD_HTTP_NO_CONTENT,
+ false),
+ TALER_TESTING_cmd_exec_offline_sign_keys ("offline-sign-future-keys",
+ CONFIG_FILE),
+ TALER_TESTING_cmd_check_keys_pull_all_keys ("refetch /keys",
+ 1,
+ 20 /* FIXME: wrong number... */),
TALER_TESTING_cmd_merchant_post_instances ("instance-create-default",
merchant_url,
"default",