From f012db9be9faf5e172474a021acb53b8a10d5d0a Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Tue, 28 May 2019 13:21:02 +0100 Subject: [PATCH] Add regress for conf files. --- regress/conf-syntax.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 regress/conf-syntax.sh diff --git a/regress/conf-syntax.sh b/regress/conf-syntax.sh new file mode 100644 index 00000000..96d35140 --- /dev/null +++ b/regress/conf-syntax.sh @@ -0,0 +1,14 @@ +#!/bin/sh + +PATH=/bin:/usr/bin +TERM=screen + +[ -z "$TEST_TMUX" ] && TEST_TMUX=$(readlink -f ../tmux) +TMUX="$TEST_TMUX -Ltest" +$TMUX kill-server 2>/dev/null + +for i in conf/*.conf; do + $TMUX -f/dev/null start \; source -n $i || exit 1 +done + +exit 0