diff options
author | Christian Grothoff <christian@grothoff.org> | 2023-01-12 13:46:15 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2023-01-12 13:46:15 +0100 |
commit | 07289fd919aa7886627ef515a92123cf35908ade (patch) | |
tree | 66a9c8c454f9fd7ff52cdd1f1c7bc3f911f30211 /src | |
parent | c6876bfb4fbe7430a396d09be4227948a1d54d4c (diff) | |
download | exchange-07289fd919aa7886627ef515a92123cf35908ade.tar.xz |
-remove duplicate definitions
Diffstat (limited to 'src')
-rwxr-xr-x | src/auditor/generate-auditor-basedb.sh | 25 | ||||
-rw-r--r-- | src/exchangedb/Makefile.am | 20 |
2 files changed, 12 insertions, 33 deletions
diff --git a/src/auditor/generate-auditor-basedb.sh b/src/auditor/generate-auditor-basedb.sh index c1d806e6e..1d69edec2 100755 --- a/src/auditor/generate-auditor-basedb.sh +++ b/src/auditor/generate-auditor-basedb.sh @@ -151,19 +151,12 @@ libeufin-sandbox serve --port "1${BANK_PORT}" \ echo $! > ${MY_TMP_DIR}/libeufin-sandbox.pid cd $ORIGIN export LIBEUFIN_SANDBOX_URL="http://localhost:1${BANK_PORT}" -echo $LIBEUFIN_SANDBOX_URL set +e echo -n "Waiting for Sandbox..." OK=0 for n in `seq 1 100`; do echo -n "." sleep 1 - echo wget --timeout=1 \ - --user admin --password secret \ - --tries=3 --waitretry=0 \ - -o /dev/null -O /dev/null \ - ${LIBEUFIN_SANDBOX_URL}; - if wget --timeout=1 \ --user admin --password secret --auth-no-challenge \ --tries=3 --waitretry=0 \ @@ -325,7 +318,12 @@ taler-exchange-httpd -c $CONF 2> ${MY_TMP_DIR}/taler-exchange-httpd.log & taler-merchant-httpd -c $CONF -L INFO 2> ${MY_TMP_DIR}/taler-merchant-httpd.log & taler-exchange-wirewatch -c $CONF 2> ${MY_TMP_DIR}/taler-exchange-wirewatch.log & taler-auditor-httpd -L INFO -c $CONF 2> ${MY_TMP_DIR}/taler-auditor-httpd.log & +export BANK_PORT +export EXCHANGE_URL +export MERCHANT_URL +export AUDITOR_URL +echo -n "Waiting for services to be available " # Wait for all bank to be available (usually the slowest) for n in `seq 1 50` do @@ -333,14 +331,14 @@ do sleep 0.2 OK=0 # bank - wget http://localhost:8082/ -o /dev/null -O /dev/null >/dev/null || continue + wget http://localhost:${BANK_PORT}/ -o /dev/null -O /dev/null >/dev/null || continue OK=1 break done if [ 1 != $OK ] then - exit_skip "Failed to launch services" + exit_skip "Failed to launch services (bank)" fi # Wait for all services to be available @@ -350,18 +348,19 @@ do sleep 0.1 OK=0 # exchange - wget http://localhost:8081/seed -o /dev/null -O /dev/null >/dev/null || continue + wget ${EXCHANGE_URL}seed -o /dev/null -O /dev/null >/dev/null || continue # merchant - wget http://localhost:9966/ -o /dev/null -O /dev/null >/dev/null || continue + wget ${MERCHANT_URL} -o /dev/null -O /dev/null >/dev/null || continue # Auditor - wget http://localhost:8083/ -o /dev/null -O /dev/null >/dev/null || continue + wget ${AUDITOR_URL} -o /dev/null -O /dev/null >/dev/null || continue OK=1 break done if [ 1 != $OK ] then - exit_skip "Failed to launch services" + bash + exit_skip "Failed to launch services (Taler)" fi echo -n "Setting up keys" taler-exchange-offline -c $CONF \ diff --git a/src/exchangedb/Makefile.am b/src/exchangedb/Makefile.am index 40607af68..feeb09cd1 100644 --- a/src/exchangedb/Makefile.am +++ b/src/exchangedb/Makefile.am @@ -382,16 +382,6 @@ test_exchangedb_populate_table_postgres_LDADD = \ -lm \ $(XLIB) -bench_db_postgres_SOURCES = \ - bench_db.c -bench_db_postgres_LDADD = \ - libtalerexchangedb.la \ - $(top_builddir)/src/util/libtalerutil.la \ - $(top_builddir)/src/pq/libtalerpq.la \ - -lgnunetpq \ - -lgnunetutil \ - $(XLIB) - test_exchangedb_populate_link_data_postgres_SOURCES = \ test_exchangedb_populate_link_data.c test_exchangedb_populate_link_data_postgres_LDADD = \ @@ -405,16 +395,6 @@ test_exchangedb_populate_link_data_postgres_LDADD = \ -lm \ $(XLIB) -bench_db_postgres_SOURCES = \ - bench_db.c -bench_db_postgres_LDADD = \ - libtalerexchangedb.la \ - $(top_builddir)/src/util/libtalerutil.la \ - $(top_builddir)/src/pq/libtalerpq.la \ - -lgnunetpq \ - -lgnunetutil \ - $(XLIB) - test_exchangedb_populate_ready_deposit_postgres_SOURCES = \ test_exchangedb_populate_ready_deposit.c test_exchangedb_populate_ready_deposit_postgres_LDADD = \ |