From a82a0e9035cdf72d69fb1a4a8e50bc72be887429 Mon Sep 17 00:00:00 2001 From: Denis 'GNUtoo' Carikli Date: Mon, 7 Jun 2021 21:01:50 +0200 Subject: Makefile: Add test target to test matterbridge.toml locally Signed-off-by: Denis 'GNUtoo' Carikli --- Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3