gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-exchange] branch master updated: skip test if talercheck DB does


From: gnunet
Subject: [taler-exchange] branch master updated: skip test if talercheck DB does not exist
Date: Tue, 24 Dec 2019 22:37:33 +0100

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository exchange.

The following commit(s) were added to refs/heads/master by this push:
     new 296145fb skip test if talercheck DB does not exist
296145fb is described below

commit 296145fb2680b733f204f3396528206a27209e86
Author: Christian Grothoff <address@hidden>
AuthorDate: Tue Dec 24 22:37:31 2019 +0100

    skip test if talercheck DB does not exist
---
 src/exchange/Makefile.am                     |  7 ++++++-
 src/exchange/test_taler_exchange_wirewatch.c | 15 +++++++++++++++
 2 files changed, 21 insertions(+), 1 deletion(-)

diff --git a/src/exchange/Makefile.am b/src/exchange/Makefile.am
index fa359411..3453683a 100644
--- a/src/exchange/Makefile.am
+++ b/src/exchange/Makefile.am
@@ -1,5 +1,9 @@
 # This Makefile.am is in the public domain
-AM_CPPFLAGS = -I$(top_srcdir)/src/include -I$(top_srcdir)/src/bank-lib/
+AM_CPPFLAGS = \
+ -I$(top_srcdir)/src/include \
+ -I$(top_srcdir)/src/bank-lib/ \
+ $(LIBGCRYPT_CFLAGS) \
+ $(POSTGRESQL_CPPFLAGS)
 
 if USE_COVERAGE
   AM_CFLAGS = --coverage -O0
@@ -112,6 +116,7 @@ test_taler_exchange_wirewatch_postgres_LDADD = \
   -lmicrohttpd \
   -lgnunetutil \
   -lgnunetjson \
+  -lgnunetpq \
   -ljansson \
   -lpthread
 
diff --git a/src/exchange/test_taler_exchange_wirewatch.c 
b/src/exchange/test_taler_exchange_wirewatch.c
index da2da615..7632bdfa 100644
--- a/src/exchange/test_taler_exchange_wirewatch.c
+++ b/src/exchange/test_taler_exchange_wirewatch.c
@@ -26,6 +26,7 @@
 #include "platform.h"
 #include "taler_util.h"
 #include <gnunet/gnunet_json_lib.h>
+#include <gnunet/gnunet_pq_lib.h>
 #include "taler_json_lib.h"
 #include <microhttpd.h>
 #include "taler_fakebank_lib.h"
@@ -791,6 +792,20 @@ main (int argc,
   GNUNET_log_setup ("test_taler_exchange_wirewatch",
                     "WARNING",
                     NULL);
+  /* check database is working */
+  {
+    struct GNUNET_PQ_Context *conn;
+    struct GNUNET_PQ_ExecuteStatement es[] = {
+      GNUNET_PQ_EXECUTE_STATEMENT_END
+    };
+
+    conn = GNUNET_PQ_connect ("postgres:///talercheck",
+                              es,
+                              NULL);
+    if (NULL == conn)
+      return 77;
+    GNUNET_PQ_disconnect (conn);
+  }
   proc = GNUNET_OS_start_process (GNUNET_NO,
                                   GNUNET_OS_INHERIT_STD_ALL,
                                   NULL, NULL, NULL,

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]