#!/usr/bin/make -f # Start the Mosquitto broker the test suite talks to before running the tests # and stop it again afterwards. pybuild honours these environment variables for # both the build-time test run and the autopkgtest-pkg-pybuild run, so a single # declaration covers both cases. export PYBUILD_BEFORE_TEST = debian/tests/mosquitto-start.sh export PYBUILD_AFTER_TEST = debian/tests/mosquitto-stop.sh # Only Mosquitto is available as a Debian package. The other brokers exercised # upstream (ActiveMQ Artemis, HiveMQ, NanoMQ and EMQX) only run under Docker, # which is not available during package builds, so their tests are skipped. export PYBUILD_TEST_ARGS = --ignore=tests/test_brokers/test_artemis.py \ --ignore=tests/test_brokers/test_hivemq.py \ --ignore=tests/test_brokers/test_nanomq.py \ --ignore=tests/test_brokers/test_emqx.py %: dh $@ --buildsystem=pybuild