aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2021-06-07 21:01:50 +0200
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2021-06-07 21:01:50 +0200
commita82a0e9035cdf72d69fb1a4a8e50bc72be887429 (patch)
tree0bbf865e63b665d4a93d09005f8725dcafbbe704
parent0fae9a5e9b5acac1b2ea28a9e5e77efadf0dbddc (diff)
downloadmatterbridge-a82a0e9035cdf72d69fb1a4a8e50bc72be887429.tar.gz
matterbridge-a82a0e9035cdf72d69fb1a4a8e50bc72be887429.tar.bz2
matterbridge-a82a0e9035cdf72d69fb1a4a8e50bc72be887429.zip
Makefile: Add test target to test matterbridge.toml locally
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
-rw-r--r--Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 00601fe..b2cc1ed 100644
--- a/Makefile
+++ b/Makefile
@@ -1,16 +1,21 @@
-.PHONY: all matterbridge.tar.xz sync
+.PHONY: all matterbridge.tar.xz sync test
all: help
help:
@echo "Available commands:"
+
@echo -en "\tmake matterbridge.tar.xz"
@echo -n " # Create a tarball with the matterbridge binary and service"
@echo " file"
+
@echo -en "\tmake matterbridge.toml "
@echo -n " # Create the matterbridge configuration."
@echo " Requires credentials .netrc"
+ @echo -en "\tmake test "
+ @echo "# Test the matterbridge.toml configuration locally"
+
matterbridge.tar.xz:
rm -f $@
rm -f matterbridge.tar
@@ -31,3 +36,6 @@ matterbridge.toml: matterbridge.toml.example generate-matterbridge-config.py
sync: matterbridge.toml
rsync matterbridge.toml root@git.replicant.us:/etc/
+
+test: matterbridge.toml
+ matterbridge -conf matterbridge.toml