File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,18 @@ if [ ! -d "$1/lightning" -o "$2" != "true" -a "$2" != "false" ]; then
9
9
exit 1
10
10
fi
11
11
12
+ SKIP_TESTS_ARGUMENT=$3
13
+ SKIP_TESTS=false
14
+
15
+ if [ ! -z " $SKIP_TESTS_ARGUMENT " ]; then
16
+ if [ " $SKIP_TESTS_ARGUMENT " != " skip-tests" ]; then
17
+ echo " To skip tests, usage must be: $0 path-to-rust-lightning allow-std skip-tests"
18
+ exit 1
19
+ else
20
+ SKIP_TESTS=true
21
+ fi
22
+ fi
23
+
12
24
export LC_ALL=C
13
25
14
26
# On reasonable systems, we can use realpath here, but OSX is a diva with 20-year-old software.
@@ -249,6 +261,11 @@ else
249
261
sed -i ' ' ' s/#include <stdlib.h>/#include "ldk_rust_types.h"/g' include/lightning.h
250
262
fi
251
263
264
+ if $SKIP_TESTS ; then
265
+ echo " Skipping tests!"
266
+ exit 0
267
+ fi
268
+
252
269
# Build C++ class methods which call trait methods
253
270
echo " Updating C++ header, this may take some time, especially on macOS"
254
271
set +x # Echoing every command is very verbose here
You can’t perform that action at this time.
0 commit comments