Files
mosquitto/test/Makefile
Philippe Coval 733720fd20 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>
2025-07-11 14:56:11 +01:00

33 lines
484 B
Makefile

include ../config.mk
.PHONY: all check test ptest clean ssl
all :
check : test
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 ssl
$(MAKE) -C broker ptest
$(MAKE) -C lib ptest
$(MAKE) -C client test
utest :
$(MAKE) -C unit test
reallyclean : clean
clean :
$(MAKE) -C lib clean
$(MAKE) -C broker clean
$(MAKE) -C unit clean