You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mosquitto/test/broker
Kai Buschulte a883bda9c1 Add CMake test target
Use `ctest` or `make test` to run all tests.
With this it's also possible to run tests on a Mac.

Relative paths used in tests become absolute ones to make tests
executable from any build folder.

Also fixed race condition in
  test/broker/11-persistent-subscription-no-local.py

Signed-off-by: Kai Buschulte <kai.buschulte@cedalo.com>
3 years ago
..
c Add CMake test target 3 years ago
data Merge branch 'master' into develop 4 years ago
01-connect-575314.py Fix test 4 years ago
01-connect-accept-protocol.py Fix option name. 4 years ago
01-connect-allow-anonymous.py No need to set keepalive in most tests. 4 years ago
01-connect-disconnect-v5.py No need to set keepalive in most tests. 4 years ago
01-connect-global-max-clients.py throw BrokenPipeError if nothing received on sock 3 years ago
01-connect-global-max-connections.py throw BrokenPipeError if nothing received on sock 3 years ago
01-connect-max-connections.py throw BrokenPipeError if nothing received on sock 3 years ago
01-connect-max-keepalive.py Apply max_keepalive to MQTT v3.1.1 and v3.1 clients. 4 years ago
01-connect-take-over.py Send DISCONNECT With session-takeover return code. 4 years ago
01-connect-uname-no-password-denied.pwfile Initial contribution. 12 years ago
01-connect-uname-no-password-denied.py Add CMake test target 3 years ago
01-connect-uname-or-anon.pwfile Breaking: allow_anonymous defaults to false. 5 years ago
01-connect-uname-or-anon.py Add CMake test target 3 years ago
01-connect-uname-password-denied-no-will.py No need to set keepalive in most tests. 4 years ago
01-connect-uname-password-denied.pwfile Initial contribution. 12 years ago
01-connect-uname-password-denied.py Add CMake test target 3 years ago
01-connect-uname-password-success-no-tls.pwfile [457373] Fix tests when compiled with WITH_TLS=no. 11 years ago
01-connect-uname-password-success-no-tls.py Add CMake test target 3 years ago
01-connect-unix-socket.py Add CMake test target 3 years ago
01-connect-windows-line-endings.py No need to set keepalive in most tests. 4 years ago
01-connect-zero-length-id.py No need to set keepalive in most tests. 4 years ago
02-shared-nolocal.py No need to set keepalive in most tests. 4 years ago
02-shared-qos0-v5.py No need to set keepalive in most tests. 4 years ago
02-subhier-crash.py No need to set keepalive in most tests. 4 years ago
02-subpub-b2c-topic-alias.py No need to set keepalive in most tests. 4 years ago
02-subpub-qos0-long-topic.py throw BrokenPipeError if nothing received on sock 3 years ago
02-subpub-qos0-oversize-payload.py No need to set keepalive in most tests. 4 years ago
02-subpub-qos0-queued-bytes.py No need to set keepalive in most tests. 4 years ago
02-subpub-qos0-retain-as-publish.py No need to set keepalive in most tests. 4 years ago
02-subpub-qos0-send-retain.py No need to set keepalive in most tests. 4 years ago
02-subpub-qos0-subscription-id.py No need to set keepalive in most tests. 4 years ago
02-subpub-qos0-topic-alias-unknown.py No need to set keepalive in most tests. 4 years ago
02-subpub-qos0-topic-alias.py No need to set keepalive in most tests. 4 years ago
02-subpub-qos1-message-expiry-retain.py No need to set keepalive in most tests. 4 years ago
02-subpub-qos1-message-expiry-will.py No need to set keepalive in most tests. 4 years ago
02-subpub-qos1-message-expiry.py No need to set keepalive in most tests. 4 years ago
02-subpub-qos1-nolocal.py No need to set keepalive in most tests. 4 years ago
02-subpub-qos1-oversize-payload.py No need to set keepalive in most tests. 4 years ago
02-subpub-qos1.py No need to set keepalive in most tests. 4 years ago
02-subpub-qos2-1322.py No need to set keepalive in most tests. 4 years ago
02-subpub-qos2-max-inflight-bytes.py No need to set keepalive in most tests. 4 years ago
02-subpub-qos2-pubrec-error.py No need to set keepalive in most tests. 4 years ago
02-subpub-qos2-receive-maximum-1.py No need to set keepalive in most tests. 4 years ago
02-subpub-qos2-receive-maximum-2.py No need to set keepalive in most tests. 4 years ago
02-subpub-qos2.py No need to set keepalive in most tests. 4 years ago
02-subpub-recover-subscriptions.py Fix $share subscriptions not being recovered for durable clients. 4 years ago
02-subscribe-dollar-v5.py No need to set keepalive in most tests. 4 years ago
02-subscribe-invalid-utf8.py throw BrokenPipeError if nothing received on sock 3 years ago
02-subscribe-long-topic.py throw BrokenPipeError if nothing received on sock 3 years ago
02-subscribe-persistence-flipflop.py No need to set keepalive in most tests. 4 years ago
03-pattern-matching.py No need to set keepalive in most tests. 4 years ago
03-publish-b2c-disconnect-qos1.py No need to set keepalive in most tests. 4 years ago
03-publish-b2c-disconnect-qos2.py No need to set keepalive in most tests. 4 years ago
03-publish-b2c-qos1-len.py No need to set keepalive in most tests. 4 years ago
03-publish-b2c-qos2-len.py No need to set keepalive in most tests. 4 years ago
03-publish-c2b-disconnect-qos2.py No need to set keepalive in most tests. 4 years ago
03-publish-c2b-qos2-len.py No need to set keepalive in most tests. 4 years ago
03-publish-dollar-v5.py No need to set keepalive in most tests. 4 years ago
03-publish-dollar.py No need to set keepalive in most tests. 4 years ago
03-publish-invalid-utf8.py throw BrokenPipeError if nothing received on sock 3 years ago
03-publish-long-topic.py throw BrokenPipeError if nothing received on sock 3 years ago
03-publish-qos1-max-inflight-expire.py No need to set keepalive in most tests. 4 years ago
03-publish-qos1-max-inflight.py No need to set keepalive in most tests. 4 years ago
03-publish-qos1-no-subscribers-v5.py No need to set keepalive in most tests. 4 years ago
03-publish-qos1-queued-bytes.conf broker: support byte based queueing 9 years ago
03-publish-qos1-queued-bytes.py Simplify "expect_packet" tests. 5 years ago
03-publish-qos1-retain-disabled.py No need to set keepalive in most tests. 4 years ago
03-publish-qos1.py No need to set keepalive in most tests. 4 years ago
03-publish-qos2-max-inflight-exceeded.py throw BrokenPipeError if nothing received on sock 3 years ago
03-publish-qos2-max-inflight.py No need to set keepalive in most tests. 4 years ago
03-publish-qos2-reuse-mid.py MID reuse test. 4 years ago
03-publish-qos2.py No need to set keepalive in most tests. 4 years ago
04-retain-check-source-persist-diff-port.py No need to set keepalive in most tests. 4 years ago
04-retain-check-source-persist.py No need to set keepalive in most tests. 4 years ago
04-retain-check-source.py No need to set keepalive in most tests. 4 years ago
04-retain-qos0-clear.py No need to set keepalive in most tests. 4 years ago
04-retain-qos0-fresh.py No need to set keepalive in most tests. 4 years ago
04-retain-qos0-repeated.py No need to set keepalive in most tests. 4 years ago
04-retain-qos0.py No need to set keepalive in most tests. 4 years ago
04-retain-qos1-qos0.py No need to set keepalive in most tests. 4 years ago
04-retain-upgrade-outgoing-qos.py No need to set keepalive in most tests. 4 years ago
05-clean-session-qos1.py No need to set keepalive in most tests. 4 years ago
05-session-expiry-v5.py No need to set keepalive in most tests. 4 years ago
06-bridge-b2br-disconnect-qos1.py Add CMake test target 3 years ago
06-bridge-b2br-disconnect-qos2.py No need to set keepalive in most tests. 4 years ago
06-bridge-b2br-late-connection-retain.py No need to set keepalive in most tests. 4 years ago
06-bridge-b2br-late-connection.py No need to set keepalive in most tests. 4 years ago
06-bridge-b2br-remapping.py No need to set keepalive in most tests. 4 years ago
06-bridge-br2b-disconnect-qos1.py No need to set keepalive in most tests. 4 years ago
06-bridge-br2b-disconnect-qos2.py No need to set keepalive in most tests. 4 years ago
06-bridge-br2b-remapping.py No need to set keepalive in most tests. 4 years ago
06-bridge-clean-session-core.py No need to set keepalive in most tests. 4 years ago
06-bridge-clean-session-csF-lcsF.py Add CMake test target 3 years ago
06-bridge-clean-session-csF-lcsN.py Add CMake test target 3 years ago
06-bridge-clean-session-csF-lcsT.py Add CMake test target 3 years ago
06-bridge-clean-session-csT-lcsF.py Add CMake test target 3 years ago
06-bridge-clean-session-csT-lcsN.py Add CMake test target 3 years ago
06-bridge-clean-session-csT-lcsT.py Add CMake test target 3 years ago
06-bridge-config-reload.py No need to set keepalive in most tests. 4 years ago
06-bridge-fail-persist-resend-qos1.py No need to set keepalive in most tests. 4 years ago
06-bridge-fail-persist-resend-qos2.py No need to set keepalive in most tests. 4 years ago
06-bridge-no-local.py No need to set keepalive in most tests. 4 years ago
06-bridge-outgoing-retain.py No need to set keepalive in most tests. 4 years ago
06-bridge-per-listener-settings.py No need to set keepalive in most tests. 4 years ago
06-bridge-reconnect-local-out.py Add CMake test target 3 years ago
07-will-delay-invalid-573191.py throw BrokenPipeError if nothing received on sock 3 years ago
07-will-delay-reconnect.py No need to set keepalive in most tests. 4 years ago
07-will-delay-recover.py No need to set keepalive in most tests. 4 years ago
07-will-delay-session-expiry.py No need to set keepalive in most tests. 4 years ago
07-will-delay-session-expiry2.py No need to set keepalive in most tests. 4 years ago
07-will-delay.py No need to set keepalive in most tests. 4 years ago
07-will-disconnect-with-will.py No need to set keepalive in most tests. 4 years ago
07-will-invalid-utf8.py throw BrokenPipeError if nothing received on sock 3 years ago
07-will-no-flag.py throw BrokenPipeError if nothing received on sock 3 years ago
07-will-null-topic.py throw BrokenPipeError if nothing received on sock 3 years ago
07-will-null.py No need to set keepalive in most tests. 4 years ago
07-will-oversize-payload.py No need to set keepalive in most tests. 4 years ago
07-will-per-listener.py Fix LWT messages not being delivered if `per_listener_settings` was set to true 4 years ago
07-will-properties.py No need to set keepalive in most tests. 4 years ago
07-will-qos0.py No need to set keepalive in most tests. 4 years ago
07-will-reconnect-1273.py No need to set keepalive in most tests. 4 years ago
07-will-takeover.py No need to set keepalive in most tests. 4 years ago
08-ssl-bridge-helper.py No need to set keepalive in most tests. 4 years ago
08-ssl-bridge.py Add CMake test target 3 years ago
08-ssl-connect-cert-auth-crl.py Add CMake test target 3 years ago
08-ssl-connect-cert-auth-expired-allowed.py Add CMake test target 3 years ago
08-ssl-connect-cert-auth-expired.py Add CMake test target 3 years ago
08-ssl-connect-cert-auth-revoked.py Add CMake test target 3 years ago
08-ssl-connect-cert-auth-without.py Add CMake test target 3 years ago
08-ssl-connect-cert-auth.py Add CMake test target 3 years ago
08-ssl-connect-identity.py Add CMake test target 3 years ago
08-ssl-connect-no-auth-wrong-ca.py Add CMake test target 3 years ago
08-ssl-connect-no-auth.py Add CMake test target 3 years ago
08-ssl-connect-no-identity.py Add CMake test target 3 years ago
08-ssl-hup-disconnect.py Add CMake test target 3 years ago
08-tls-psk-bridge.psk Initial contribution. 12 years ago
08-tls-psk-bridge.py Add CMake test target 3 years ago
08-tls-psk-pub.psk Initial contribution. 12 years ago
08-tls-psk-pub.py Add CMake test target 3 years ago
09-acl-access-variants.py No need to set keepalive in most tests. 4 years ago
09-acl-change.py No need to set keepalive in most tests. 4 years ago
09-acl-empty-file.py No need to set keepalive in most tests. 4 years ago
09-auth-bad-method.py No need to set keepalive in most tests. 4 years ago
09-extended-auth-change-username.py No need to set keepalive in most tests. 4 years ago
09-extended-auth-multistep-reauth.py No need to set keepalive in most tests. 4 years ago
09-extended-auth-multistep.py No need to set keepalive in most tests. 4 years ago
09-extended-auth-reauth.py No need to set keepalive in most tests. 4 years ago
09-extended-auth-single.py throw BrokenPipeError if nothing received on sock 3 years ago
09-extended-auth-single2.py Add CMake test target 3 years ago
09-plugin-acl-change.py Fix for #575314. 4 years ago
09-plugin-auth-acl-pub.py Auth plugin v2, v3 testings. 4 years ago
09-plugin-auth-acl-sub-denied.py No need to set keepalive in most tests. 4 years ago
09-plugin-auth-acl-sub.py Auth plugin v2, v3 testings. 4 years ago
09-plugin-auth-context-params.py Tests should typically use `listener` instead of `port`. 4 years ago
09-plugin-auth-defer-unpwd-fail.py No need to set keepalive in most tests. 4 years ago
09-plugin-auth-defer-unpwd-success.py No need to set keepalive in most tests. 4 years ago
09-plugin-auth-msg-params.py No need to set keepalive in most tests. 4 years ago
09-plugin-auth-unpwd-fail.py No need to set keepalive in most tests. 4 years ago
09-plugin-auth-unpwd-success.py No need to set keepalive in most tests. 4 years ago
09-plugin-auth-v2-unpwd-fail.py No need to set keepalive in most tests. 4 years ago
09-plugin-auth-v2-unpwd-success.py No need to set keepalive in most tests. 4 years ago
09-plugin-auth-v3-unpwd-fail.py No need to set keepalive in most tests. 4 years ago
09-plugin-auth-v3-unpwd-success.py No need to set keepalive in most tests. 4 years ago
09-plugin-auth-v4-unpwd-fail.py No need to set keepalive in most tests. 4 years ago
09-plugin-auth-v4-unpwd-success.py No need to set keepalive in most tests. 4 years ago
09-plugin-auth-v5-unpwd-fail.py No need to set keepalive in most tests. 4 years ago
09-plugin-auth-v5-unpwd-success.py No need to set keepalive in most tests. 4 years ago
09-plugin-change-id.py Update changelog, fix usage of m_set_clientid(), add test. 4 years ago
09-plugin-delayed-auth.py No need to set keepalive in most tests. 4 years ago
09-plugin-publish.py No need to set keepalive in most tests. 4 years ago
09-pwfile-parse-invalid.py No need to set keepalive in most tests. 4 years ago
10-listener-mount-point.py No need to set keepalive in most tests. 4 years ago
11-message-expiry.py No need to set keepalive in most tests. 4 years ago
11-persistent-subscription-no-local.py Fixed race condition in test/broker/11-persistent-subscription-no-local.py 3 years ago
11-persistent-subscription-v5.py No need to set keepalive in most tests. 4 years ago
11-persistent-subscription.py No need to set keepalive in most tests. 4 years ago
11-pub-props.py No need to set keepalive in most tests. 4 years ago
11-subscription-id.py No need to set keepalive in most tests. 4 years ago
12-prop-assigned-client-identifier.py No need to set keepalive in most tests. 4 years ago
12-prop-maximum-packet-size-broker.py No need to set keepalive in most tests. 4 years ago
12-prop-maximum-packet-size-publish-qos1.py No need to set keepalive in most tests. 4 years ago
12-prop-maximum-packet-size-publish-qos2.py No need to set keepalive in most tests. 4 years ago
12-prop-response-topic-correlation-data.py No need to set keepalive in most tests. 4 years ago
12-prop-response-topic.py No need to set keepalive in most tests. 4 years ago
12-prop-server-keepalive.py Merge branch 'master' into develop 4 years ago
12-prop-subpub-content-type.py Strict protocol compliance fixes, and extensive test suite. 4 years ago
12-prop-subpub-payload-format.py Merge branch 'master' into develop 4 years ago
13-malformed-publish-v5.py No need to set keepalive in most tests. 4 years ago
13-malformed-subscribe-v5.py No need to set keepalive in most tests. 4 years ago
13-malformed-unsubscribe-v5.py No need to set keepalive in most tests. 4 years ago
14-dynsec-acl.py Add CMake test target 3 years ago
14-dynsec-allow-wildcard.py Add CMake test target 3 years ago
14-dynsec-anon-group.py Add CMake test target 3 years ago
14-dynsec-auth.py Add CMake test target 3 years ago
14-dynsec-client-invalid.py Add CMake test target 3 years ago
14-dynsec-client.py Add CMake test target 3 years ago
14-dynsec-config-init-env.py Add dynsec init by simple file. 3 years ago
14-dynsec-config-init-file.py Add dynsec init by simple file. 3 years ago
14-dynsec-config-init-random.py Add dynsec init by simple file. 3 years ago
14-dynsec-default-access.py Add CMake test target 3 years ago
14-dynsec-disable-client.py Add CMake test target 3 years ago
14-dynsec-group-invalid.py Add CMake test target 3 years ago
14-dynsec-group.py Add CMake test target 3 years ago
14-dynsec-modify-client.py Add CMake test target 3 years ago
14-dynsec-modify-group.py Add CMake test target 3 years ago
14-dynsec-modify-role.py Add CMake test target 3 years ago
14-dynsec-plugin-invalid.py Add CMake test target 3 years ago
14-dynsec-role-invalid.py Add CMake test target 3 years ago
14-dynsec-role.py Add CMake test target 3 years ago
15-persist-client-msg-in-v3-1-1.py Plugin interface interface and test improvements. 4 years ago
15-persist-client-msg-in-v5-0.py Plugin interface interface and test improvements. 4 years ago
15-persist-client-msg-out-queue-v3-1-1.py Plugin interface interface and test improvements. 4 years ago
15-persist-client-msg-out-v3-1-1.py No need to set keepalive in most tests. 4 years ago
15-persist-client-msg-out-v5-0.py Plugin interface interface and test improvements. 4 years ago
15-persist-client-v3-1-1.conf Plugin interface interface and test improvements. 4 years ago
15-persist-client-v3-1-1.py No need to set keepalive in most tests. 4 years ago
15-persist-client-v5-0.py Add CMake test target 3 years ago
15-persist-publish-properties-v5-0.py Plugin interface interface and test improvements. 4 years ago
15-persist-retain-v3-1-1.py No need to set keepalive in most tests. 4 years ago
15-persist-retain-v5-0.py Plugin interface interface and test improvements. 4 years ago
15-persist-subscription-v3-1-1.py Plugin interface interface and test improvements. 4 years ago
15-persist-subscription-v5-0.py Plugin interface interface and test improvements. 4 years ago
15-sqlite-clean-shutdown.py Sqlite persistence plugin. 4 years ago
15-sqlite-client-message-in-v3-1-1.py Sqlite persistence plugin. 4 years ago
15-sqlite-client-message-out-dup-v3-1-1.py Fix sqlite test 4 years ago
15-sqlite-client-message-out-v3-1-1.py Rename of mosquitto_msg_store struct. 4 years ago
15-sqlite-client-msg-in-v5-0.py Sqlite persistence plugin. 4 years ago
15-sqlite-client-msg-out-queue-v3-1-1.py Sqlite persistence plugin. 4 years ago
15-sqlite-client-msg-out-v3-1-1.py Sqlite persistence plugin. 4 years ago
15-sqlite-client-msg-out-v5-0.py Sqlite persistence plugin. 4 years ago
15-sqlite-client-v3-1-1.py Sqlite persistence plugin. 4 years ago
15-sqlite-client-v5-0.py Rename of mosquitto_msg_store struct. 4 years ago
15-sqlite-client-v5.0.py Sqlite persistence plugin. 4 years ago
15-sqlite-publish-properties-v5-0.py Sqlite persistence plugin. 4 years ago
15-sqlite-retain-clear-v5-0.py Add CMake test target 3 years ago
15-sqlite-retain-v3-1-1.py Sqlite persistence plugin. 4 years ago
15-sqlite-retain-v5-0.py Sqlite persistence plugin. 4 years ago
15-sqlite-subscription-v3-1-1.py Sqlite persistence plugin. 4 years ago
15-sqlite-subscription-v5-0.py Sqlite persistence plugin. 4 years ago
16-cmd-args.py Add CMake test target 3 years ago
16-config-includedir.py include_dir test. 4 years ago
16-config-parse-errors.py Add CMake test target 3 years ago
17-control-list-listeners.py Add CMake test target 3 years ago
17-control-list-plugins.py listPlugins command, and test. 4 years ago
CMakeLists.txt Add CMake test target 3 years ago
Makefile Add dynsec init by simple file. 3 years ago
dynamic-security-init.json Fix basic dynsec tests. 5 years ago
mosq_test_helper.py Add CMake test target 3 years ago
msg_sequence_test.py Add CMake test target 3 years ago
ntest.py Merge branch 'master' into develop 4 years ago
persist_help.py Plugin persistence interface. 4 years ago
prop_subpub_helper.py No need to set keepalive in most tests. 4 years ago
readme.txt Check for authentication method on CONNECT, and reject. 7 years ago
sqlite_help.py Workaround problem with sqlite3-wal files 3 years ago
test.py Add dynsec init by simple file. 3 years ago

readme.txt

----- Broker Tests -----

This folder contains a number of tests to exercise the functionality of the
broker. Feel free to add more.

Numbering is as follows:

01: Connection tests
02: Subscribe/unsubscribe tests
03: Publish tests
04: Retained message tests
05: Session management tests
06: Bridge tests
07: Will tests
08: TLS tests
09: Auth tests
10: Listener tests
11: Persistence tests
12: Property tests