Skip to content

Commit 7170fe2

Browse files
ShahanaFarooquirustyrussell
authored andcommitted
tests: check openssl version compatibility for fuzz tests
This check will exclude fuzz tests for Ubuntu Focal as it supports OpenSSL v1.1.1f while CLN requires ≥ v3.0.
1 parent 4f9e13c commit 7170fe2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,12 @@ include cln-grpc/Makefile
392392
endif
393393
include plugins/Makefile
394394
include tests/plugins/Makefile
395+
396+
# Only include fuzz tests if OpenSSL >= 3.0, will be disabled on ubuntu focal
397+
OPENSSL_VERSION := $(shell openssl version | sed -n 's/OpenSSL \([0-9]\+\)\..*/\1/p')
398+
ifneq ($(shell test $(OPENSSL_VERSION) -ge 3 && echo yes),)
395399
include tests/fuzz/Makefile
400+
endif
396401

397402
ifneq ($V,1)
398403
MSGGEN_ARGS := -s

0 commit comments

Comments
 (0)