repo: ngircd
action: commit
revision: 
path_from: 
revision_from: 7b7ee6a3ca54bf0c8442a1e990dd1e230783c2e6:
path_to: 
revision_to: 
git.thebackupbox.net
ngircd
git clone git://git.thebackupbox.net/ngircd
commit 7b7ee6a3ca54bf0c8442a1e990dd1e230783c2e6
Author: Alexander Barton 
Date:   Sat Dec 19 17:27:27 2015 +0100

    contrib/platformtest.sh: Warn when external tools are missing

diff --git a/contrib/platformtest.sh b/contrib/platformtest.sh
index 46b3ef6a7d3fe3a74216c538ecf79511fc936625..
index ..3b022283cff1e2c8fdf0f7c28c424c81d319cdbe 100755
--- a/contrib/platformtest.sh
+++ b/contrib/platformtest.sh
@@ -55,6 +55,11 @@ while [ $# -gt 0 ]; do
 	shift
 done

+for cmd in telnet expect; do
+	command -v "$cmd" >/dev/null 2>&1 \
+		|| echo "$NAME: WARNING: $cmd(1) not found, \"make check\" won't run all tests!"
+done
+
 echo "$NAME: Checking ngIRCd base source directory ..."
 grep "ngIRCd" "$SRC_D/ChangeLog" >/dev/null 2>&1
 if [ $? -ne 0 ]; then
@@ -206,6 +211,6 @@ else
 fi
 echo
 if [ "$R_CHECK_Y" = "y" ]; then
-	echo "$NAME: Warning: Some tests have been skipped!"
+	echo "$NAME: WARNING: Some tests have been skipped!"
 	echo
 fi

-----END OF PAGE-----