libeufin

Integration and sandbox testing for FinTech APIs and data formats
Log | Files | Refs | Submodules | README | LICENSE

commit 247de271c87fe20ed417b4446a636154aac0c164
parent c3e97528d8680b784da9690b5d13095803e165e9
Author: MS <ms@taler.net>
Date:   Thu,  5 Jan 2023 17:18:14 +0100

CLI test: preliminary checks for tools.

Diffstat:
MMakefile | 1+
Mcli/bin/circuit_test.sh | 5+++++
2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile @@ -35,6 +35,7 @@ assemble: .PHONY: check check: @./gradlew check + @cd ./cli/bin && ./circuit_test.sh .PHONY: parse diff --git a/cli/bin/circuit_test.sh b/cli/bin/circuit_test.sh @@ -5,10 +5,15 @@ set -eu +jq --version &> /dev/null || (echo "'jq' command not found"; exit 77) +curl --version &> /dev/null || (echo "'curl' command not found"; exit 77) + DB_PATH=/tmp/circuit-test.sqlite3 export LIBEUFIN_SANDBOX_DB_CONNECTION=jdbc:sqlite:$DB_PATH export LIBEUFIN_CASHOUT_TEST_TAN=secret-tan +echo TESTING THE CLI SIDE OF THE CIRCUIT API + echo -n Delete previous data.. rm -f $DB_PATH echo DONE