[exim-cvs] Testsuite: check for conflicting host name

Top Page
Delete this message
Reply to this message
Author: Exim Git Commits Mailing List
Date:  
To: exim-cvs
Subject: [exim-cvs] Testsuite: check for conflicting host name
Gitweb: https://git.exim.org/exim.git/commitdiff/4a7ad62b15ea97dd2de1c98d0cd0219f99233bce
Commit:     4a7ad62b15ea97dd2de1c98d0cd0219f99233bce
Parent:     7434882dd8dae78f598f41c9f9bcd42b2ee7f4a7
Author:     Jeremy Harris <jgh146exb@???>
AuthorDate: Thu Nov 8 12:58:27 2018 +0000
Committer:  Jeremy Harris <jgh146exb@???>
CommitDate: Thu Nov 8 12:58:27 2018 +0000


    Testsuite: check for conflicting host name
---
 test/runtest | 6 ++++++
 1 file changed, 6 insertions(+)


diff --git a/test/runtest b/test/runtest
index 76e1177..d4cf9f9 100755
--- a/test/runtest
+++ b/test/runtest
@@ -3385,6 +3385,12 @@ if ($parm_hostname =~ /[[:upper:]]/)
print "\n*** Host name has upper case characters: this may cause problems ***\n\n";
}

+if ($parm_hostname =~ /\.example\.com$/)
+  {
+  die "\n*** Host name ends in .example.com; this conflicts with the testsuite use of that domain.\n"
+    . "    Please change the host's name (or comment out this check, and fail several testcases)\n";
+  }
+



##################################################