summary refs log tree commit diff
path: root/contrib/platformtest.sh
diff options
context:
space:
mode:
authorAlexander Barton <alex@barton.de>2015-12-19 17:27:27 +0100
committerAlexander Barton <alex@barton.de>2015-12-19 17:27:27 +0100
commit7b7ee6a3ca54bf0c8442a1e990dd1e230783c2e6 (patch)
tree648a3a25d5ca21cf1caceab39c6f8217fbbcda89 /contrib/platformtest.sh
parent46838510ab53889a05eececd5fc0bb6b38ce95cb (diff)
downloadngircd-7b7ee6a3ca54bf0c8442a1e990dd1e230783c2e6.tar.gz
ngircd-7b7ee6a3ca54bf0c8442a1e990dd1e230783c2e6.zip
contrib/platformtest.sh: Warn when external tools are missing
Diffstat (limited to 'contrib/platformtest.sh')
-rwxr-xr-xcontrib/platformtest.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/contrib/platformtest.sh b/contrib/platformtest.sh
index 46b3ef6a..3b022283 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