From 76c9e44deb1c9d9917d7e1c50a96d97b82d40980 Mon Sep 17 00:00:00 2001 From: "Roger A. Light" Date: Wed, 1 Sep 2021 09:31:17 +0100 Subject: [PATCH] Test config and scripts for example plugins. --- plugins/examples/add-properties/test.conf | 1 + plugins/examples/add-properties/test.sh | 3 +++ plugins/examples/auth-by-ip/test.conf | 3 +++ plugins/examples/auth-by-ip/test.sh | 3 +++ plugins/examples/client-properties/test.conf | 1 + plugins/examples/client-properties/test.sh | 3 +++ plugins/examples/connection-state/test.conf | 1 + plugins/examples/connection-state/test.sh | 3 +++ plugins/examples/delayed-auth/test.sh | 2 +- plugins/examples/message-timestamp/test.conf | 1 + plugins/examples/message-timestamp/test.sh | 3 +++ plugins/examples/payload-modification/test.conf | 1 + plugins/examples/payload-modification/test.sh | 3 +++ plugins/examples/print-ip-on-publish/test.conf | 3 --- 14 files changed, 27 insertions(+), 4 deletions(-) create mode 100644 plugins/examples/add-properties/test.conf create mode 100755 plugins/examples/add-properties/test.sh create mode 100644 plugins/examples/auth-by-ip/test.conf create mode 100755 plugins/examples/auth-by-ip/test.sh create mode 100644 plugins/examples/client-properties/test.conf create mode 100755 plugins/examples/client-properties/test.sh create mode 100644 plugins/examples/connection-state/test.conf create mode 100755 plugins/examples/connection-state/test.sh create mode 100644 plugins/examples/message-timestamp/test.conf create mode 100755 plugins/examples/message-timestamp/test.sh create mode 100644 plugins/examples/payload-modification/test.conf create mode 100755 plugins/examples/payload-modification/test.sh diff --git a/plugins/examples/add-properties/test.conf b/plugins/examples/add-properties/test.conf new file mode 100644 index 00000000..ca0bfdc7 --- /dev/null +++ b/plugins/examples/add-properties/test.conf @@ -0,0 +1 @@ +plugin ./mosquitto_add_properties.so diff --git a/plugins/examples/add-properties/test.sh b/plugins/examples/add-properties/test.sh new file mode 100755 index 00000000..8589ba43 --- /dev/null +++ b/plugins/examples/add-properties/test.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +../../../src/mosquitto -c test.conf -v diff --git a/plugins/examples/auth-by-ip/test.conf b/plugins/examples/auth-by-ip/test.conf new file mode 100644 index 00000000..72835349 --- /dev/null +++ b/plugins/examples/auth-by-ip/test.conf @@ -0,0 +1,3 @@ +listener 1883 + +plugin ./mosquitto_auth_by_ip.so diff --git a/plugins/examples/auth-by-ip/test.sh b/plugins/examples/auth-by-ip/test.sh new file mode 100755 index 00000000..8589ba43 --- /dev/null +++ b/plugins/examples/auth-by-ip/test.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +../../../src/mosquitto -c test.conf -v diff --git a/plugins/examples/client-properties/test.conf b/plugins/examples/client-properties/test.conf new file mode 100644 index 00000000..dfc51b88 --- /dev/null +++ b/plugins/examples/client-properties/test.conf @@ -0,0 +1 @@ +plugin ./mosquitto_client_properties.so diff --git a/plugins/examples/client-properties/test.sh b/plugins/examples/client-properties/test.sh new file mode 100755 index 00000000..8589ba43 --- /dev/null +++ b/plugins/examples/client-properties/test.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +../../../src/mosquitto -c test.conf -v diff --git a/plugins/examples/connection-state/test.conf b/plugins/examples/connection-state/test.conf new file mode 100644 index 00000000..9a50bae3 --- /dev/null +++ b/plugins/examples/connection-state/test.conf @@ -0,0 +1 @@ +plugin ./mosquitto_connection_state.so diff --git a/plugins/examples/connection-state/test.sh b/plugins/examples/connection-state/test.sh new file mode 100755 index 00000000..8589ba43 --- /dev/null +++ b/plugins/examples/connection-state/test.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +../../../src/mosquitto -c test.conf -v diff --git a/plugins/examples/delayed-auth/test.sh b/plugins/examples/delayed-auth/test.sh index 75a50f90..8589ba43 100755 --- a/plugins/examples/delayed-auth/test.sh +++ b/plugins/examples/delayed-auth/test.sh @@ -1,3 +1,3 @@ #!/bin/sh -../../src/mosquitto -c test.conf -v +../../../src/mosquitto -c test.conf -v diff --git a/plugins/examples/message-timestamp/test.conf b/plugins/examples/message-timestamp/test.conf new file mode 100644 index 00000000..6f4d2cac --- /dev/null +++ b/plugins/examples/message-timestamp/test.conf @@ -0,0 +1 @@ +plugin ./mosquitto_message_timestamp.so diff --git a/plugins/examples/message-timestamp/test.sh b/plugins/examples/message-timestamp/test.sh new file mode 100755 index 00000000..8589ba43 --- /dev/null +++ b/plugins/examples/message-timestamp/test.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +../../../src/mosquitto -c test.conf -v diff --git a/plugins/examples/payload-modification/test.conf b/plugins/examples/payload-modification/test.conf new file mode 100644 index 00000000..c8c71326 --- /dev/null +++ b/plugins/examples/payload-modification/test.conf @@ -0,0 +1 @@ +plugin ./mosquitto_payload_modification.so diff --git a/plugins/examples/payload-modification/test.sh b/plugins/examples/payload-modification/test.sh new file mode 100755 index 00000000..8589ba43 --- /dev/null +++ b/plugins/examples/payload-modification/test.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +../../../src/mosquitto -c test.conf -v diff --git a/plugins/examples/print-ip-on-publish/test.conf b/plugins/examples/print-ip-on-publish/test.conf index 1c8088a3..7422cbbb 100644 --- a/plugins/examples/print-ip-on-publish/test.conf +++ b/plugins/examples/print-ip-on-publish/test.conf @@ -1,4 +1 @@ -listener 1883 -allow_anonymous true - plugin ./mosquitto_print_ip_on_publish.so