From: Ben Greear Date: Sun, 28 Mar 2010 05:50:07 +0000 (+0200) Subject: Allow running ./tests/testcurl.pl from within git repo. X-Git-Tag: curl-7_20_1~40 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=302507d5dce5afb93363b42b2aff940297644e1f;p=thirdparty%2Fcurl.git Allow running ./tests/testcurl.pl from within git repo. My first instinct was to run the test script within the checked out repository. This small change to the script allows that to work as expected. Signed-off-by: Ben Greear --- diff --git a/tests/testcurl.pl b/tests/testcurl.pl index b48c2842e0..c55dcaeef6 100755 --- a/tests/testcurl.pl +++ b/tests/testcurl.pl @@ -78,6 +78,10 @@ $fixed=0; # Determine if we're running from git or a canned copy of curl, # or if we got a specific target option or setup file option. $CURLDIR="curl"; +if (-f ".git/config") { + $CURLDIR = "./"; +} + $git=1; $setupfile = 'setup'; while ($ARGV[0]) {