From 40a9839aa6fd8cd3fbc0e8d180e78fd4ff067fea Mon Sep 17 00:00:00 2001
From: Fabian Keil <fk@fabiankeil.de>
Date: Sat, 17 Nov 2012 11:42:52 +0100
Subject: [PATCH 2/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 7d90aa1..b8ec7f9 100755
--- a/tests/runtests.pl
+++ b/tests/runtests.pl
@@ -4728,6 +4728,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;
@@ -4815,6 +4819,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
   -n       no valgrind
-- 
1.9.0


