diff options
author | Ben Greear <greearb@candelatech.com> | 2010-03-28 07:50:07 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2010-03-28 22:57:52 +0200 |
commit | 302507d5dce5afb93363b42b2aff940297644e1f (patch) | |
tree | a79369537a599f2ccb3c6c4f4dce2a5eda4317f5 /tests/testcurl.pl | |
parent | 7784e3309dd027bd1dc049cfaf42a0885a093ea2 (diff) | |
download | curl-302507d5dce5afb93363b42b2aff940297644e1f.tar.gz |
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 <greearb@candelatech.com>
Diffstat (limited to 'tests/testcurl.pl')
-rwxr-xr-x | tests/testcurl.pl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/testcurl.pl b/tests/testcurl.pl index b48c2842e..c55dcaeef 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]) { |