From 09b9f4778e94e1396be3c36c6a9bee94d35d0f8c Mon Sep 17 00:00:00 2001 From: Arik Sosman Date: Sun, 4 Feb 2024 22:04:56 -0800 Subject: [PATCH] Move test-skipping effect to be prior to sanity- checking and running the gcc app. --- genbindings.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 -- 2.39.5