Skip to content

Commit 09b9f47

Browse files
committed
Move test-skipping effect to be prior to sanity-
checking and running the gcc app.
1 parent 0ba47de commit 09b9f47

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

genbindings.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -261,11 +261,6 @@ else
261261
sed -i '' 's/#include <stdlib.h>/#include "ldk_rust_types.h"/g' include/lightning.h
262262
fi
263263

264-
if $SKIP_TESTS; then
265-
echo "Skipping tests!"
266-
exit 0
267-
fi
268-
269264
# Build C++ class methods which call trait methods
270265
echo "Updating C++ header, this may take some time, especially on macOS"
271266
set +x # Echoing every command is very verbose here
@@ -334,6 +329,11 @@ export IFS="$OLD_IFS"
334329
set -x
335330
mv include/lightningpp_new.hpp include/lightningpp.hpp
336331

332+
if $SKIP_TESTS; then
333+
echo "Skipping tests!"
334+
exit 0
335+
fi
336+
337337
# Finally, sanity-check the generated C and C++ bindings with demo apps:
338338
# Naively run the C demo app:
339339
gcc $LOCAL_CFLAGS -Wall -g -pthread demo.c target/debug/libldk.a -ldl -lm

0 commit comments

Comments
 (0)