From: Arik Sosman Date: Mon, 5 Feb 2024 06:04:56 +0000 (-0800) Subject: Move test-skipping effect to be prior to sanity- X-Git-Tag: v0.0.121.2^2~1 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=09b9f4778e94e1396be3c36c6a9bee94d35d0f8c;p=ldk-c-bindings Move test-skipping effect to be prior to sanity- checking and running the gcc app. --- diff --git a/genbindings.sh b/genbindings.sh index bdf3794..2074871 100755 --- a/genbindings.sh +++ b/genbindings.sh @@ -261,11 +261,6 @@ else sed -i '' 's/#include /#include "ldk_rust_types.h"/g' include/lightning.h fi -if $SKIP_TESTS; then - echo "Skipping tests!" - exit 0 -fi - # Build C++ class methods which call trait methods echo "Updating C++ header, this may take some time, especially on macOS" set +x # Echoing every command is very verbose here @@ -334,6 +329,11 @@ export IFS="$OLD_IFS" set -x mv include/lightningpp_new.hpp include/lightningpp.hpp +if $SKIP_TESTS; then + echo "Skipping tests!" + exit 0 +fi + # Finally, sanity-check the generated C and C++ bindings with demo apps: # Naively run the C demo app: gcc $LOCAL_CFLAGS -Wall -g -pthread demo.c target/debug/libldk.a -ldl -lm