From 7ff8c44d1e51058c397e19884d101ba1895c5b0c Mon Sep 17 00:00:00 2001
From: Fabian Keil <fk@fabiankeil.de>
Date: Sat, 17 Nov 2012 11:42:52 +0100
Subject: [PATCH 4/4] runtests.pl: Add the -H option to specify a non-default
 IPv4 host IP address

This is useful when testing external proxies with the -P option.
---
 tests/runtests.pl | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/tests/runtests.pl b/tests/runtests.pl
index f24da4f..3a3f44d 100755
--- a/tests/runtests.pl
+++ b/tests/runtests.pl
@@ -4679,6 +4679,10 @@ while(@ARGV) {
         $gdbthis=1;
         $gdbxwin=1;
     }
+    elsif ($ARGV[0] eq "-H") {
+        shift @ARGV;
+        $HOSTIP=$ARGV[0];
+    }
     elsif($ARGV[0] eq "-s") {
         # short output
         $short=1;
@@ -4792,6 +4796,7 @@ Usage: runtests.pl [options] [test selection(s)]
   -g       run the test case with gdb
   -gw      run the test case with gdb as a windowed application
   -h       this help text
+  -H addr  use the specified IPv4 host IP address instead of the default
   -k       keep stdout and stderr files present after tests
   -l       list all test case names/descriptions
   -m file  load the specifed test manifest to decide which tests get executed
-- 
1.9.0


