From f348dd0c2c2f64f592781a97e88854ecd42ef5f6 Mon Sep 17 00:00:00 2001
From: Fabian Keil <fk@fabiankeil.de>
Date: Sun, 15 Jun 2014 17:19:58 +0200
Subject: [PATCH 1/3] Allow to overwrite $TESTDIR with the environment variable
 CURL_TESTDIR

This makes it more convenient to execute custom tests that
aren't relevant for curl itself and thus not upstreamed.
---
 tests/runtests.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/runtests.pl b/tests/runtests.pl
index 1264c48..f761f34 100755
--- a/tests/runtests.pl
+++ b/tests/runtests.pl
@@ -153,7 +153,7 @@ my $VCURL=$CURL;   # what curl binary to use to verify the servers with
                    # just built hangs or crashes and thus prevent verification
 my $DBGCURL=$CURL; #"../src/.libs/curl";  # alternative for debugging
 my $LOGDIR="log";
-my $TESTDIR="$srcdir/data";
+my $TESTDIR = $ENV{'CURL_TESTDIR'} || "$srcdir/data";
 my $LIBDIR="./libtest";
 my $UNITDIR="./unit";
 # TODO: change this to use server_inputfilename()
-- 
1.9.0


