diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-11-25 15:53:39 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-11-25 15:53:39 +0100 |
commit | cbd5fbd796b18916ea032021661397369fbcbd22 (patch) | |
tree | ba2adec8b27a7257ab958190a757d5ec47b4cbee | |
parent | 44c31640ea5d46446fa4425179a76a367264be97 (diff) | |
download | sync-cbd5fbd796b18916ea032021661397369fbcbd22.tar.gz sync-cbd5fbd796b18916ea032021661397369fbcbd22.tar.bz2 sync-cbd5fbd796b18916ea032021661397369fbcbd22.zip |
ign
-rw-r--r-- | src/lib/.gitignore | 1 | ||||
-rw-r--r-- | src/lib/Makefile.am | 24 | ||||
-rw-r--r-- | src/lib/test_sync_api.c | 1 | ||||
-rw-r--r-- | src/lib/test_sync_api.conf | 9 |
4 files changed, 35 insertions, 0 deletions
diff --git a/src/lib/.gitignore b/src/lib/.gitignore new file mode 100644 index 0000000..998875a --- /dev/null +++ b/src/lib/.gitignore @@ -0,0 +1 @@ +test_sync_api diff --git a/src/lib/Makefile.am b/src/lib/Makefile.am index 1462eb5..fa160a6 100644 --- a/src/lib/Makefile.am +++ b/src/lib/Makefile.am @@ -45,6 +45,30 @@ libsynctesting_la_LIBADD = \ -ltalertesting \ $(XLIB) +check_PROGRAMS = \ + test_sync_api + +TESTS = \ + $(check_PROGRAMS) + +test_sync_api_SOURCES = \ + test_sync_api.c +test_sync_api_LDADD = \ + libsync.la \ + libsynctesting.la \ + -ltalertesting \ + -ltalermerchanttesting \ + -ltalerfakebank \ + -ltalerbank \ + -ltalerexchange \ + -ltalermerchant \ + -ltalerjson \ + -ltalerutil \ + -lgnunetjson \ + -lgnunetcurl \ + -lgnunetutil \ + -ljansson + if HAVE_LIBCURL libsync_la_LIBADD += -lcurl else diff --git a/src/lib/test_sync_api.c b/src/lib/test_sync_api.c index 854e7b1..3403127 100644 --- a/src/lib/test_sync_api.c +++ b/src/lib/test_sync_api.c @@ -31,6 +31,7 @@ #include <taler/taler_bank_service.h> #include <taler/taler_fakebank_lib.h> #include <taler/taler_testing_lib.h> +#include <taler/taler_merchant_testing_lib.h> #include <taler/taler_error_codes.h> #include "sync_service.h" #include "sync_testing_lib.h" diff --git a/src/lib/test_sync_api.conf b/src/lib/test_sync_api.conf index c8e206e..057420d 100644 --- a/src/lib/test_sync_api.conf +++ b/src/lib/test_sync_api.conf @@ -9,6 +9,15 @@ TALER_TEST_HOME = test_sync_api_home/ # What currency do we use? CURRENCY = EUR +# Sync config + +[sync] +# Which port do we run the backend on? (HTTP server) +PORT = 8084 + +[syncdb-postgres] +CONFIG = postgres:///synccheck + ########################################## # Configuration for the merchant backend # ########################################## |