X-Git-Url: http://git.bitcoin.ninja/index.cgi?p=ldk-c-bindings;a=blobdiff_plain;f=genbindings.sh;fp=genbindings.sh;h=20748715be3f60009a95626ae5a04fbdf23bcdf6;hp=bdf3794410655601b6d8ac23b9928dd82795c17e;hb=09b9f4778e94e1396be3c36c6a9bee94d35d0f8c;hpb=0ba47de779032dfb5d6a3587a17fcc31e1e659f9 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