1
0
mirror of https://github.com/eclipse/mosquitto.git synced 2025-10-14 02:48:40 +08:00

t/Makefile: Generate test certs if not present in sources

Since generated keys have expiration date,
it means that the tests are not reproductible over time.
Integrator may be tempted to not rely on upstream files
and generate them on the fly at built time.

If need files are present this rule will be skip.

This change was motivated for maintenance of 2.0.11
in Debian 12 (stable).

I noticed that upstream regerated certs in master branch since,
but still they will expire in future.

Origin: https://github.com/eclipse-mosquitto/mosquitto/pull/3234
Relate-to: https://salsa.debian.org/debian-iot-team/mosquitto/-/merge_requests/21
Signed-off-by: Philippe Coval <rzr@users.sf.net>
This commit is contained in:
Philippe Coval
2025-03-11 21:05:11 +01:00
committed by Roger Light
parent 89c52f9e6f
commit 733720fd20

View File

@@ -1,17 +1,23 @@
include ../config.mk
.PHONY: all check test ptest clean
.PHONY: all check test ptest clean ssl
all :
check : test
test : utest
ssl: ssl/all-ca.crt
ssl/all-ca.crt: ssl/gen.sh
cd "${<D}" && "${CURDIR}/${<}"
test -e "$@"
test : utest ssl
$(MAKE) -C broker test
$(MAKE) -C lib test
$(MAKE) -C client test
ptest : utest
ptest : utest ssl
$(MAKE) -C broker ptest
$(MAKE) -C lib ptest
$(MAKE) -C client test